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
-
Field Summary
Fields inherited from class com.mapr.db.shell.commands.ShellCommands
session_ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidvoidjsonoption(Boolean pretty, Boolean withTags) voidbooleanvoidtableoption(Boolean bufferwrite, Boolean excludeId, Boolean insertionOrder) voidwhoami()Methods inherited from class com.mapr.db.shell.commands.ShellCommands
afterReturningInvocation, afterThrowingInvocation, beforeInvocation, getCmdJsonOptions
-
Constructor Details
-
SessionCommnds
- Throws:
IOException
-
-
Method Details
-
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") String mode, @CliOption(key="rawstream",unspecifiedDefaultValue="true",hidden=true) Boolean rawStream) throws IOException - Throws:
IOException
-
mode
public void mode(@CliOption(key="",help="Sets/shows the active mode (global|files|tables|stream) of the session.") String mode) throws IOException - Throws:
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") Boolean pretty, @CliOption(key={"withtags","withTags"},help="Enables/disables printing with extended Type Tags.",unspecifiedDefaultValue="true") Boolean withTags) throws IOException - Throws:
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") Boolean bufferwrite, @CliOption(key={"excludeid","excludeId"},help="Enables/disables exclusion of \'_id\' field when printing documents(deprecated as of v6.0)") Boolean excludeId, @CliOption(key={"insertionorder","insertionOrder"},help="Enables/disables insertion order when printing documents(deprecated as of v6.0)") Boolean insertionOrder) throws IOException - Throws:
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") Boolean list) throws IOException - Throws:
IOException
-
whoami
@CliCommand(value="whoami", help="Prints the current MapR-DB Shell user.") public void whoami() throws IOException- Throws:
IOException
-