Package com.mapr.db.shell.commands
Class SessionCommnds
- java.lang.Object
-
- com.mapr.db.shell.commands.ShellCommands
-
- com.mapr.db.shell.commands.SessionCommnds
-
- All Implemented Interfaces:
org.springframework.shell.core.CommandMarker,org.springframework.shell.core.ExecutionProcessor
@Component public class SessionCommnds extends ShellCommands
-
-
Field Summary
-
Fields inherited from class com.mapr.db.shell.commands.ShellCommands
session_
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSessionCommnds()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanavailable()voidclasspath(java.lang.Boolean list)voiddebug(java.lang.String mode, java.lang.Boolean rawStream)voidjsonoption(java.lang.Boolean pretty, java.lang.Boolean withTags)voidmode(java.lang.String mode)booleanmodeAvailable()voidtableoption(java.lang.Boolean bufferwrite, java.lang.Boolean excludeId, java.lang.Boolean insertionOrder)voidwhoami()-
Methods inherited from class com.mapr.db.shell.commands.ShellCommands
afterReturningInvocation, afterThrowingInvocation, beforeInvocation, getCmdJsonOptions
-
-
-
-
Method Detail
-
available
@CliAvailabilityIndicator("debug") public boolean available()
-
modeAvailable
@CliAvailabilityIndicator("mode") public boolean modeAvailable()
-
debug
@CliCommand(value="debug", help="Sets/shows the debug mode.") public void debug(@CliOption(key="",help="Set the debug mode to on/off") java.lang.String mode, @CliOption(key="rawstream",unspecifiedDefaultValue="true",hidden=true) java.lang.Boolean rawStream) throws java.io.IOException- Throws:
java.io.IOException
-
mode
public void mode(@CliOption(key="",help="Sets/shows the active mode (global|files|tables|stream) of the session.") java.lang.String mode) throws java.io.IOException- Throws:
java.io.IOException
-
jsonoption
@CliCommand(value="jsonoptions", help="Sets/shows the Json output options.") public void jsonoption(@CliOption(key="pretty",help="Sets/clears the pretty printing mode.",unspecifiedDefaultValue="true") java.lang.Boolean pretty, @CliOption(key={"withtags","withTags"},help="Enables/disables printing with extended Type Tags.",unspecifiedDefaultValue="true") java.lang.Boolean withTags) throws java.io.IOException- Throws:
java.io.IOException
-
tableoption
@CliCommand(value="tableoptions", help="Sets/shows the MapR-DB Table access options.") public void tableoption(@CliOption(key={"bufferwrite","bufferWrite"},help="Sets/clears the buffered write mode when inserting documents.",unspecifiedDefaultValue="false") java.lang.Boolean bufferwrite, @CliOption(key={"excludeid","excludeId"},help="Enables/disables exclusion of \'_id\' field when printing documents(deprecated as of v6.0)") java.lang.Boolean excludeId, @CliOption(key={"insertionorder","insertionOrder"},help="Enables/disables insertion order when printing documents(deprecated as of v6.0)") java.lang.Boolean insertionOrder) throws java.io.IOException- Throws:
java.io.IOException
-
classpath
@CliCommand(value="classpath", help="Prints MapR-DB Shell classpath.", hidden=true) public void classpath(@CliOption(key={"l","list"},help="List classpath URLs instead of printing in classpath format.",unspecifiedDefaultValue="false",specifiedDefaultValue="true") java.lang.Boolean list) throws java.io.IOException- Throws:
java.io.IOException
-
whoami
@CliCommand(value="whoami", help="Prints the current MapR-DB Shell user.") public void whoami() throws java.io.IOException- Throws:
java.io.IOException
-
-