Class CreateSegmentCommand
- java.lang.Object
-
- org.apache.pinot.tools.AbstractBaseCommand
-
- org.apache.pinot.tools.admin.command.AbstractBaseAdminCommand
-
- org.apache.pinot.tools.admin.command.CreateSegmentCommand
-
public class CreateSegmentCommand extends AbstractBaseAdminCommand implements Command
Class to implement CreateSegment command.
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.tools.AbstractBaseCommand
DEFAULT_CLUSTER_NAME, DEFAULT_ZK_ADDRESS
-
-
Constructor Summary
Constructors Constructor Description CreateSegmentCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()booleanexecute()booleangetHelp()StringgetName()CreateSegmentCommandsetDataDir(String dataDir)CreateSegmentCommandsetFailOnEmptySegment(boolean failOnEmptySegment)CreateSegmentCommandsetFormat(org.apache.pinot.spi.data.readers.FileFormat format)CreateSegmentCommandsetNumThreads(int numThreads)CreateSegmentCommandsetOutDir(String outDir)CreateSegmentCommandsetOverwrite(boolean overwrite)CreateSegmentCommandsetPostCreationVerification(boolean postCreationVerification)CreateSegmentCommandsetReaderConfigFile(String readerConfigFile)CreateSegmentCommandsetRetry(int retry)CreateSegmentCommandsetSchemaFile(String schemaFile)CreateSegmentCommandsetTableConfigFile(String tableConfigFile)StringtoString()-
Methods inherited from class org.apache.pinot.tools.admin.command.AbstractBaseAdminCommand
getPID, savePID, sendDeleteRequest, sendPostRequest, sendRequest, sendRequest
-
Methods inherited from class org.apache.pinot.tools.AbstractBaseCommand
cleanup, printExamples, printUsage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.tools.Command
call, printUsage
-
-
-
-
Method Detail
-
setDataDir
public CreateSegmentCommand setDataDir(String dataDir)
-
setFormat
public CreateSegmentCommand setFormat(org.apache.pinot.spi.data.readers.FileFormat format)
-
setOutDir
public CreateSegmentCommand setOutDir(String outDir)
-
setOverwrite
public CreateSegmentCommand setOverwrite(boolean overwrite)
-
setTableConfigFile
public CreateSegmentCommand setTableConfigFile(String tableConfigFile)
-
setSchemaFile
public CreateSegmentCommand setSchemaFile(String schemaFile)
-
setReaderConfigFile
public CreateSegmentCommand setReaderConfigFile(String readerConfigFile)
-
setRetry
public CreateSegmentCommand setRetry(int retry)
-
setFailOnEmptySegment
public CreateSegmentCommand setFailOnEmptySegment(boolean failOnEmptySegment)
-
setPostCreationVerification
public CreateSegmentCommand setPostCreationVerification(boolean postCreationVerification)
-
setNumThreads
public CreateSegmentCommand setNumThreads(int numThreads)
-
getName
public final String getName()
- Overrides:
getNamein classAbstractBaseCommand
-
description
public String description()
- Specified by:
descriptionin interfaceCommand
-
-