Class RealtimeTuningConfig
- java.lang.Object
-
- org.apache.druid.segment.indexing.RealtimeTuningConfig
-
- All Implemented Interfaces:
TuningConfig,AppenderatorConfig
public class RealtimeTuningConfig extends Object implements AppenderatorConfig
-
-
Field Summary
-
Fields inherited from interface org.apache.druid.segment.indexing.TuningConfig
DEFAULT_APPENDABLE_INDEX, DEFAULT_AWAIT_SEGMENT_AVAILABILITY_TIMEOUT_MILLIS, DEFAULT_LOG_PARSE_EXCEPTIONS, DEFAULT_MAX_PARSE_EXCEPTIONS, DEFAULT_MAX_ROWS_IN_MEMORY_BATCH, DEFAULT_MAX_ROWS_IN_MEMORY_REALTIME, DEFAULT_MAX_SAVED_PARSE_EXCEPTIONS, DEFAULT_SKIP_BYTES_IN_MEMORY_OVERHEAD_CHECK
-
-
Constructor Summary
Constructors Constructor Description RealtimeTuningConfig(org.apache.druid.segment.incremental.AppendableIndexSpec appendableIndexSpec, Integer maxRowsInMemory, Long maxBytesInMemory, Boolean skipBytesInMemoryOverheadCheck, org.joda.time.Period intermediatePersistPeriod, org.joda.time.Period windowPeriod, File basePersistDirectory, VersioningPolicy versioningPolicy, RejectionPolicyFactory rejectionPolicyFactory, Integer maxPendingPersists, org.apache.druid.timeline.partition.ShardSpec shardSpec, org.apache.druid.segment.IndexSpec indexSpec, org.apache.druid.segment.IndexSpec indexSpecForIntermediatePersists, int persistThreadPriority, int mergeThreadPriority, Boolean reportParseExceptions, Long handoffConditionTimeout, Long alertTimeout, org.apache.druid.segment.writeout.SegmentWriteOutMediumFactory segmentWriteOutMediumFactory, String dedupColumn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAlertTimeout()org.apache.druid.segment.incremental.AppendableIndexSpecgetAppendableIndexSpec()The incremental index implementation to useFilegetBasePersistDirectory()StringgetDedupColumn()longgetHandoffConditionTimeout()org.apache.druid.segment.IndexSpecgetIndexSpec()org.apache.druid.segment.IndexSpecgetIndexSpecForIntermediatePersists()org.joda.time.PeriodgetIntermediatePersistPeriod()Period that sets frequency to persist to local storage if no other thresholds are metlonggetMaxBytesInMemory()Maximum number of bytes (estimated) to store in memory before persisting to local storageintgetMaxPendingPersists()intgetMaxRowsInMemory()Maximum number of rows in memory before persisting to local storageintgetMergeThreadPriority()org.apache.druid.indexer.partitions.PartitionsSpecgetPartitionsSpec()intgetPersistThreadPriority()RejectionPolicyFactorygetRejectionPolicyFactory()org.apache.druid.segment.writeout.SegmentWriteOutMediumFactorygetSegmentWriteOutMediumFactory()org.apache.druid.timeline.partition.ShardSpecgetShardSpec()VersioningPolicygetVersioningPolicy()org.joda.time.PeriodgetWindowPeriod()booleanisReportParseExceptions()booleanisSkipBytesInMemoryOverheadCheck()static RealtimeTuningConfigmakeDefaultTuningConfig(File basePersistDirectory)RealtimeTuningConfigwithBasePersistDirectory(File dir)RealtimeTuningConfigwithVersioningPolicy(VersioningPolicy policy)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.segment.realtime.appenderator.AppenderatorConfig
getMaxColumnsToMerge, getMaxRowsPerSegment, getMaxTotalRows
-
Methods inherited from interface org.apache.druid.segment.indexing.TuningConfig
getMaxBytesInMemoryOrDefault
-
-
-
-
Constructor Detail
-
RealtimeTuningConfig
public RealtimeTuningConfig(@Nullable org.apache.druid.segment.incremental.AppendableIndexSpec appendableIndexSpec, Integer maxRowsInMemory, Long maxBytesInMemory, @Nullable Boolean skipBytesInMemoryOverheadCheck, org.joda.time.Period intermediatePersistPeriod, org.joda.time.Period windowPeriod, File basePersistDirectory, VersioningPolicy versioningPolicy, RejectionPolicyFactory rejectionPolicyFactory, Integer maxPendingPersists, org.apache.druid.timeline.partition.ShardSpec shardSpec, org.apache.druid.segment.IndexSpec indexSpec, @Nullable org.apache.druid.segment.IndexSpec indexSpecForIntermediatePersists, int persistThreadPriority, int mergeThreadPriority, Boolean reportParseExceptions, Long handoffConditionTimeout, Long alertTimeout, @Nullable org.apache.druid.segment.writeout.SegmentWriteOutMediumFactory segmentWriteOutMediumFactory, @Nullable String dedupColumn)
-
-
Method Detail
-
makeDefaultTuningConfig
public static RealtimeTuningConfig makeDefaultTuningConfig(@Nullable File basePersistDirectory)
-
getAppendableIndexSpec
public org.apache.druid.segment.incremental.AppendableIndexSpec getAppendableIndexSpec()
Description copied from interface:TuningConfigThe incremental index implementation to use- Specified by:
getAppendableIndexSpecin interfaceTuningConfig
-
getMaxRowsInMemory
public int getMaxRowsInMemory()
Description copied from interface:TuningConfigMaximum number of rows in memory before persisting to local storage- Specified by:
getMaxRowsInMemoryin interfaceTuningConfig
-
getMaxBytesInMemory
public long getMaxBytesInMemory()
Description copied from interface:TuningConfigMaximum number of bytes (estimated) to store in memory before persisting to local storage- Specified by:
getMaxBytesInMemoryin interfaceTuningConfig
-
isSkipBytesInMemoryOverheadCheck
public boolean isSkipBytesInMemoryOverheadCheck()
- Specified by:
isSkipBytesInMemoryOverheadCheckin interfaceAppenderatorConfig
-
getIntermediatePersistPeriod
public org.joda.time.Period getIntermediatePersistPeriod()
Description copied from interface:AppenderatorConfigPeriod that sets frequency to persist to local storage if no other thresholds are met- Specified by:
getIntermediatePersistPeriodin interfaceAppenderatorConfig
-
getWindowPeriod
public org.joda.time.Period getWindowPeriod()
-
getBasePersistDirectory
public File getBasePersistDirectory()
- Specified by:
getBasePersistDirectoryin interfaceAppenderatorConfig
-
getVersioningPolicy
public VersioningPolicy getVersioningPolicy()
-
getRejectionPolicyFactory
public RejectionPolicyFactory getRejectionPolicyFactory()
-
getMaxPendingPersists
public int getMaxPendingPersists()
- Specified by:
getMaxPendingPersistsin interfaceAppenderatorConfig
-
getPartitionsSpec
public org.apache.druid.indexer.partitions.PartitionsSpec getPartitionsSpec()
- Specified by:
getPartitionsSpecin interfaceTuningConfig
-
getShardSpec
public org.apache.druid.timeline.partition.ShardSpec getShardSpec()
-
getIndexSpec
public org.apache.druid.segment.IndexSpec getIndexSpec()
- Specified by:
getIndexSpecin interfaceTuningConfig
-
getIndexSpecForIntermediatePersists
public org.apache.druid.segment.IndexSpec getIndexSpecForIntermediatePersists()
- Specified by:
getIndexSpecForIntermediatePersistsin interfaceTuningConfig
-
getPersistThreadPriority
public int getPersistThreadPriority()
-
getMergeThreadPriority
public int getMergeThreadPriority()
-
isReportParseExceptions
public boolean isReportParseExceptions()
- Specified by:
isReportParseExceptionsin interfaceAppenderatorConfig
-
getHandoffConditionTimeout
public long getHandoffConditionTimeout()
-
getAlertTimeout
public long getAlertTimeout()
-
getSegmentWriteOutMediumFactory
@Nullable public org.apache.druid.segment.writeout.SegmentWriteOutMediumFactory getSegmentWriteOutMediumFactory()
- Specified by:
getSegmentWriteOutMediumFactoryin interfaceAppenderatorConfig
-
withVersioningPolicy
public RealtimeTuningConfig withVersioningPolicy(VersioningPolicy policy)
-
withBasePersistDirectory
public RealtimeTuningConfig withBasePersistDirectory(File dir)
- Specified by:
withBasePersistDirectoryin interfaceAppenderatorConfig
-
-