@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.
|
showAll
create, describe, drop, getSingleObjectName, showAll, update
afterReturningInvocation, afterThrowingInvocation, beforeInvocation, formatDate, formatJson, getClient, getClientWrapper, getOrDefaultQueryHandleString, getValidPath, removePrefixBeforeURI, setClient
@CliCommand(value="show segmentations", help="display list of segmentations in current database. If optionalis supplied, only segmentations belonging to cube will be displayed") public String showSegmentations(@CliOption(key={"","cube_name"},mandatory=false,help=" ") String cubeName)
@CliCommand(value="create segmentation", help="create a new segmentation, taking spec from") public String createSegmentation(@CliOption(key={"","path"},mandatory=true,help=" ")@NonNull File path)
path
- the segmentation spec@CliCommand(value="describe segmentation", help="describe segmentation") public String describeSegmentation(@CliOption(key={"","name"},mandatory=true,help=" ") String name)
name
- the segmentation name@CliCommand(value="update segmentation", help="update segmentation, taking spec from ") public String updateSegmentation(@CliOption(key={"","name"},mandatory=true,help=" ") String name, @CliOption(key={"","path"},mandatory=true,help=" ")@NonNull File path)
name
- the segmentation to be updatedpath
- path to spec file@CliCommand(value="drop segmentation", help="drop segmentation") public String dropSegmentation(@CliOption(key={"","name"},mandatory=true,help=" ") 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–2016 Apache Software Foundation. All rights reserved.