@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, getAllJoinChains
create, describe, drop, getSingleObjectName, showAll, update
afterReturningInvocation, 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") public String createDimension(@CliOption(key={"","path"},mandatory=true,help=" ")@NonNull File path)
path
- the dimension spec@CliCommand(value="describe dimension", help="describe dimension") public String describeDimension(@CliOption(key={"","name"},mandatory=true,help=" ") String name)
name
- the dimension name@CliCommand(value="update dimension", help="update dimension, taking spec from ") public String updateDimension(@CliOption(key={"","name"},mandatory=true,help=" ") String name, @CliOption(key={"","path"},mandatory=true,help=" ")@NonNull File path)
name
- the dimension to be updatedpath
- path to spec fild@CliCommand(value="drop dimension", help="drop dimension") public String dropDimension(@CliOption(key={"","name"},mandatory=true,help=" ") String name)
name
- the dimension@CliCommand(value="dimension show fields", help="Show queryable fields of the given dimension. Optionally specify to include chained fields") public String showQueryableFields(@CliOption(key={"","name"},mandatory=true,help=" ") String table, @CliOption(key="flattened",mandatory=false,unspecifiedDefaultValue="false",specifiedDefaultValue="true",help=" ") boolean flattened)
@CliCommand(value="dimension show joinchains", help="Show joinchains of the given dimension. ") public String showJoinChains(@CliOption(key={"","name"},mandatory=true,help=" ") 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–2016 Apache Software Foundation. All rights reserved.