@Component public class SessionCommnds extends ShellCommands
session_| Modifier | Constructor and Description |
|---|---|
protected |
SessionCommnds() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
available() |
String |
debug(String mode,
Boolean rawStream) |
String |
jsonoption(Boolean pretty,
Boolean withTags) |
String |
mode(String mode) |
boolean |
modeAvailable() |
String |
tableoption(Boolean bufferwrite,
Boolean excludeId,
Boolean insertionOrder) |
afterReturningInvocation, afterThrowingInvocation, beforeInvocation, getCmdJsonOptionsprotected SessionCommnds()
throws IOException
IOException@CliAvailabilityIndicator(value="debug") public boolean available()
@CliAvailabilityIndicator(value="mode") public boolean modeAvailable()
@CliCommand(value="debug",
help="Sets/shows the debug mode.")
public String debug(@CliOption(key="",help="Set the debug mode to on/off")
String mode,
@CliOption(key="rawstream",specifiedDefaultValue="true",hidden=true)
Boolean rawStream)
throws IOException
IOExceptionpublic String mode(@CliOption(key="",help="Sets/shows the active mode (global|files|tables|stream) of the session.") String mode) throws IOException
IOException@CliCommand(value="jsonoptions",
help="Sets/shows the Json output options.")
public String jsonoption(@CliOption(key="pretty",help="Sets/clears the pretty printing mode.",specifiedDefaultValue="true")
Boolean pretty,
@CliOption(key={"withtags","withTags"},help="Enables/disables printing with extended Type Tags.",specifiedDefaultValue="true")
Boolean withTags)
throws IOException
IOException@CliCommand(value="tableoptions",
help="Sets/shows the MapR-DB Table access options.")
public String tableoption(@CliOption(key={"bufferwrite","bufferWrite"},help="Sets/clears the buffered write mode when inserting documents.",specifiedDefaultValue="false")
Boolean bufferwrite,
@CliOption(key={"excludeid","excludeId"},help="Enables/disables exclusion of \'_id\' field when printing documents.",specifiedDefaultValue="false")
Boolean excludeId,
@CliOption(key={"insertionorder","insertionOrder"},help="Enables/disables insertion order when printing documents.",specifiedDefaultValue="true")
Boolean insertionOrder)
throws IOException
IOExceptionCopyright © 2018 Mapr Technologies, Inc.. All rights reserved.