@Component @UserDocumentation(title="Commands for Dimension Management", description="These commands provide CRUD for Dimensions") public class LensDimensionCommands extends ConceptualTableCrudCommand<XDimension>
DATE_FMT, DATE_PARSER| Constructor and Description |
|---|
LensDimensionCommands() |
| Modifier and Type | Method and Description |
|---|---|
String |
createDimension(File path)
Creates the dimension.
|
String |
describeDimension(String name)
Describe dimension.
|
APIResult |
doUpdate(String name,
String path) |
String |
dropDimension(String name)
Drop dimension.
|
List<String> |
getAll() |
String |
showDimensions()
Show dimensions.
|
String |
showJoinChains(String table) |
String |
showQueryableFields(String table,
boolean flattened) |
String |
updateDimension(String name,
File path)
Update dimension.
|
getAllFields, getAllJoinChainscreate, describe, drop, getSingleObjectName, showAll, updateafterReturningInvocation, afterThrowingInvocation, beforeInvocation, formatDate, formatJson, getClient, getClientWrapper, getOrDefaultQueryHandleString, getValidPath, removePrefixBeforeURI, setClient@CliCommand(value="show dimensions",
help="show list of all dimensions in current database")
public String showDimensions()
@CliCommand(value="create dimension",
help="Create a new Dimension, taking spec from <path-to-dimension-spec file>")
public String createDimension(@CliOption(key={"","path"},mandatory=true,help="<path-to-dimension-spec file>") @NonNull
File path)
path - the dimension spec@CliCommand(value="describe dimension",
help="describe dimension <dimension_name>")
public String describeDimension(@CliOption(key={"","name"},mandatory=true,help="<dimension_name>")
String name)
name - the dimension name@CliCommand(value="update dimension",
help="update dimension <dimension_name>, taking spec from <path-to-dimension-spec file>")
public String updateDimension(@CliOption(key={"","name"},mandatory=true,help="<dimension_name>")
String name,
@CliOption(key={"","path"},mandatory=true,help="<path-to-dimension-spec-file>") @NonNull
File path)
name - the dimension to be updatedpath - path to spec fild@CliCommand(value="drop dimension",
help="drop dimension <dimension_name>")
public String dropDimension(@CliOption(key={"","name"},mandatory=true,help="<dimension_name>")
String name)
name - the dimension@CliCommand(value="dimension show fields",
help="Show queryable fields of the given dimension <dimension_name>. Optionally specify <flattened> to include chained fields")
public String showQueryableFields(@CliOption(key={"","name"},mandatory=true,help="<dimension_name>")
String table,
@CliOption(key="flattened",mandatory=false,unspecifiedDefaultValue="false",specifiedDefaultValue="true",help="<flattened>")
boolean flattened)
@CliCommand(value="dimension show joinchains",
help="Show joinchains of the given dimension <dimension_name>. ")
public String showJoinChains(@CliOption(key={"","name"},mandatory=true,help="<dimension_name>")
String table)
public List<String> getAll()
getAll in class LensCRUDCommand<XDimension>public APIResult doUpdate(String name, String path)
doUpdate in class LensCRUDCommand<XDimension>Copyright © 2014–2018 Apache Software Foundation. All rights reserved.