public class HadoopTuningConfig extends Object implements TuningConfig
Constructor and Description |
---|
HadoopTuningConfig(String workingPath,
String version,
PartitionsSpec partitionsSpec,
Map<org.joda.time.DateTime,List<HadoopyShardSpec>> shardSpecs,
IndexSpec indexSpec,
Integer maxRowsInMemory,
boolean leaveIntermediate,
Boolean cleanupOnFailure,
boolean overwriteFiles,
boolean ignoreInvalidRows,
Map<String,String> jobProperties,
boolean combineText,
boolean persistInHeap,
boolean ingestOffheap,
Integer bufferSize,
Float aggregationBufferRatio,
Boolean useCombiner) |
Modifier and Type | Method and Description |
---|---|
float |
getAggregationBufferRatio() |
int |
getBufferSize() |
IndexSpec |
getIndexSpec() |
Map<String,String> |
getJobProperties() |
PartitionsSpec |
getPartitionsSpec() |
int |
getRowFlushBoundary() |
Map<org.joda.time.DateTime,List<HadoopyShardSpec>> |
getShardSpecs() |
boolean |
getUseCombiner() |
String |
getVersion() |
String |
getWorkingPath() |
Boolean |
isCleanupOnFailure() |
boolean |
isCombineText() |
boolean |
isIgnoreInvalidRows() |
boolean |
isIngestOffheap() |
boolean |
isLeaveIntermediate() |
boolean |
isOverwriteFiles() |
boolean |
isPersistInHeap() |
static HadoopTuningConfig |
makeDefaultTuningConfig() |
HadoopTuningConfig |
withShardSpecs(Map<org.joda.time.DateTime,List<HadoopyShardSpec>> specs) |
HadoopTuningConfig |
withVersion(String ver) |
HadoopTuningConfig |
withWorkingPath(String path) |
public HadoopTuningConfig(String workingPath, String version, PartitionsSpec partitionsSpec, Map<org.joda.time.DateTime,List<HadoopyShardSpec>> shardSpecs, IndexSpec indexSpec, Integer maxRowsInMemory, boolean leaveIntermediate, Boolean cleanupOnFailure, boolean overwriteFiles, boolean ignoreInvalidRows, Map<String,String> jobProperties, boolean combineText, boolean persistInHeap, boolean ingestOffheap, Integer bufferSize, Float aggregationBufferRatio, Boolean useCombiner)
public static HadoopTuningConfig makeDefaultTuningConfig()
public String getWorkingPath()
public String getVersion()
public PartitionsSpec getPartitionsSpec()
public Map<org.joda.time.DateTime,List<HadoopyShardSpec>> getShardSpecs()
public IndexSpec getIndexSpec()
public int getRowFlushBoundary()
public boolean isLeaveIntermediate()
public Boolean isCleanupOnFailure()
public boolean isOverwriteFiles()
public boolean isIgnoreInvalidRows()
public boolean isCombineText()
public boolean isPersistInHeap()
public boolean isIngestOffheap()
public int getBufferSize()
public float getAggregationBufferRatio()
public boolean getUseCombiner()
public HadoopTuningConfig withWorkingPath(String path)
public HadoopTuningConfig withVersion(String ver)
public HadoopTuningConfig withShardSpecs(Map<org.joda.time.DateTime,List<HadoopyShardSpec>> specs)
Copyright © 2011–2015. All rights reserved.