@Component @UserDocumentation(title="Commands for Native Table Management", description="Read operations on native tables") public class LensNativeTableCommands extends LensCRUDCommand<XNativeTable>
DATE_FMT, DATE_PARSER
Constructor and Description |
---|
LensNativeTableCommands() |
Modifier and Type | Method and Description |
---|---|
String |
describeNativeTable(String name)
Describe native table.
|
APIResult |
doUpdate(String name,
String path) |
List<String> |
getAll() |
String |
showNativeTables()
Show native tables.
|
create, describe, drop, getSingleObjectName, showAll, update
afterReturningInvocation, afterThrowingInvocation, beforeInvocation, formatDate, formatJson, getClient, getClientWrapper, getValidPath, removePrefixBeforeURI, setClient
@CliCommand(value="show nativetables", help="show list of native tables belonging to current database") public String showNativeTables()
@CliCommand(value="describe nativetable", help="describe nativetable named") public String describeNativeTable(@CliOption(key={"","name"},mandatory=true,help=" ") String name)
name
- the tbl namepublic List<String> getAll()
getAll
in class LensCRUDCommand<XNativeTable>
public APIResult doUpdate(String name, String path)
doUpdate
in class LensCRUDCommand<XNativeTable>
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.