@Component @UserDocumentation(title="Commands for Native Table Management", description="Read operations on native tables") public class LensNativeTableCommands extends LensCRUDCommand<org.apache.lens.api.metastore.XNativeTable>
DATE_FMT, DATE_PARSER, isConnectionActive, mapper, pp| Constructor and Description |
|---|
LensNativeTableCommands() |
| Modifier and Type | Method and Description |
|---|---|
String |
describeNativeTable(String name)
Describe native table.
|
protected org.apache.lens.api.APIResult |
doCreate(String path,
boolean ignoreIfExists) |
protected org.apache.lens.api.APIResult |
doDelete(String name,
boolean cascade) |
protected org.apache.lens.api.metastore.XNativeTable |
doRead(String name) |
org.apache.lens.api.APIResult |
doUpdate(String name,
String path) |
List<String> |
getAll() |
String |
showNativeTables()
Show native tables.
|
create, describe, drop, getSingleObjectName, showAll, updateafterReturningInvocation, afterThrowingInvocation, beforeInvocation, closeClientConnection, formatDate, formatJson, getClient, getClientWrapper, getOrDefaultQueryHandleString, 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<org.apache.lens.api.metastore.XNativeTable>protected org.apache.lens.api.APIResult doCreate(String path, boolean ignoreIfExists)
doCreate in class LensCRUDCommand<org.apache.lens.api.metastore.XNativeTable>protected org.apache.lens.api.metastore.XNativeTable doRead(String name)
doRead in class LensCRUDCommand<org.apache.lens.api.metastore.XNativeTable>public org.apache.lens.api.APIResult doUpdate(String name, String path)
doUpdate in class LensCRUDCommand<org.apache.lens.api.metastore.XNativeTable>protected org.apache.lens.api.APIResult doDelete(String name, boolean cascade)
doDelete in class LensCRUDCommand<org.apache.lens.api.metastore.XNativeTable>Copyright © 2014–2016 Apache Software Foundation. All rights reserved.