@Component @UserDocumentation(title="Commands for Segmentation Management", description="These command provide CRUD for Segmentation") public class LensSegmentationCommands extends BaseTableCrudCommand<XSegmentation>
DATE_FMT, DATE_PARSER| Constructor and Description | 
|---|
LensSegmentationCommands()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
createSegmentation(File path)
Creates the segmentation 
 | 
String | 
describeSegmentation(String name)
Describe segmentation. 
 | 
APIResult | 
doUpdate(String name,
        String path)  | 
String | 
dropSegmentation(String name)
Drop segmentation. 
 | 
List<String> | 
getAll()  | 
String | 
showSegmentations(String cubeName)
Show segmentation 
 | 
String | 
updateSegmentation(String name,
                  File path)
Update segmentation. 
 | 
showAllcreate, describe, drop, getSingleObjectName, showAll, updateafterReturningInvocation, afterThrowingInvocation, beforeInvocation, formatDate, formatJson, getClient, getClientWrapper, getOrDefaultQueryHandleString, getValidPath, removePrefixBeforeURI, setClient@CliCommand(value="show segmentations",
            help="display list of segmentations in current database. If optional <cube_name> is supplied, only segmentations belonging to cube <cube_name> will be displayed")
public String showSegmentations(@CliOption(key={"","cube_name"},mandatory=false,help="<cube_name>")
                                                                                                                                                                                                                                                       String cubeName)
@CliCommand(value="create segmentation",
            help="create a new segmentation, taking spec from <path-to-segmentation-spec file>")
public String createSegmentation(@CliOption(key={"","path"},mandatory=true,help="<path-to-segmentation-spec file>") @NonNull
                                                                                                                                                                           File path)
path - the segmentation spec@CliCommand(value="describe segmentation",
            help="describe segmentation <segmentation_name>")
public String describeSegmentation(@CliOption(key={"","name"},mandatory=true,help="<segmentation_name>")
                                                                                                                                            String name)
name - the segmentation name@CliCommand(value="update segmentation",
            help="update segmentation <segmentation_name>, taking spec from <path-to-segmentation-spec file>")
public String updateSegmentation(@CliOption(key={"","name"},mandatory=true,help="<segmentation_name>")
                                                                                                                                                                                         String name,
                                                                                                                                                                                         @CliOption(key={"","path"},mandatory=true,help="<path-to-segmentation-spec-file>") @NonNull
                                                                                                                                                                                         File path)
name - the segmentation to be updatedpath - path to spec file@CliCommand(value="drop segmentation",
            help="drop segmentation <segmentation_name>")
public String dropSegmentation(@CliOption(key={"","name"},mandatory=true,help="<segmentation_name>")
                                                                                                                                String name)
name - the segmentation to be droppedpublic List<String> getAll()
getAll in class LensCRUDCommand<XSegmentation>public APIResult doUpdate(String name, String path)
doUpdate in class LensCRUDCommand<XSegmentation>Copyright © 2014–2018 Apache Software Foundation. All rights reserved.