@Component @UserDocumentation(title="OLAP Data cube metadata management", description="These commands provide CRUD for cubes") public class LensCubeCommands extends LogicalTableCrudCommand<XCube>
DATE_FMT, DATE_PARSER| Constructor and Description | 
|---|
| LensCubeCommands() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | createCube(String path)Creates the cube. | 
| String | describeCube(String name)Describe cube. | 
| APIResult | doUpdate(String name,
        String path) | 
| String | dropCube(String name)Drop cube. | 
| List<String> | getAll() | 
| String | getLatest(String cube,
         String timeDim)Cube latest date | 
| String | showCubes()Show cubes. | 
| String | showJoinChains(String table) | 
| String | showQueryableFields(String table,
                   boolean flattened) | 
| String | updateCube(String name,
          String path)Update cube. | 
getAllFields, getAllJoinChainscreate, describe, drop, getSingleObjectName, showAll, updateafterReturningInvocation, afterThrowingInvocation, beforeInvocation, formatDate, formatJson, getClient, getClientWrapper, getValidPath, setClient@CliCommand(value="show cubes",
            help="show list of cubes in current database")
public String showCubes()
@CliCommand(value="create cube",
            help="Create a new Cube, taking spec from ")
public String createCube(@CliOption(key={"","path"},mandatory=true,help="")
                           String path)  
path - the cube spec@CliCommand(value="describe cube",
            help="describe cube with name ")
public String describeCube(@CliOption(key={"","name"},mandatory=true,help="")
                             String name)  
name - the cube name@CliCommand(value="update cube",
            help="update cube  with spec from ")
public String updateCube(@CliOption(key={"","name"},mandatory=true,help="")
                           String name,
                           @CliOption(key={"","path"},mandatory=true,help="")
                           String path)    
name - cube namepath - path to new spec file@CliCommand(value="drop cube",
            help="drop cube ")
public String dropCube(@CliOption(key={"","name"},mandatory=true,help="")
                         String name)  
name - the cube@CliCommand(value="cube latestdate",
            help="get latest date of data available in cube  for time dimension .  Instead of time dimension, partition column can be directly passed as ")
public String getLatest(@CliOption(key={"","name"},mandatory=true,help="")
                          String cube,
                          @CliOption(key={"","time_dimension"},mandatory=true,help="")
                          String timeDim)     
cube - cube nametimeDim - time dimension name@CliCommand(value="cube show fields",
            help="Show queryable fields of the given cube . 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="cube show joinchains",
            help="Show joinchains of the given cube . ")
public String showJoinChains(@CliOption(key={"","name"},mandatory=true,help="")
                               String table)  
public List<String> getAll()
getAll in class LensCRUDCommand<XCube>Copyright © 2014–2015 Apache Software Foundation. All rights reserved.