Class SingleDimensionPartitionsSpec
java.lang.Object
org.apache.druid.indexer.partitions.DimensionRangePartitionsSpec
org.apache.druid.indexer.partitions.SingleDimensionPartitionsSpec
- All Implemented Interfaces:
DimensionBasedPartitionsSpec,PartitionsSpec
Partition a segment by a single dimension.
-
Field Summary
FieldsFields inherited from interface org.apache.druid.indexer.partitions.DimensionBasedPartitionsSpec
ASSUME_GROUPED, FORCE_GUARANTEED_ROLLUP_COMPATIBLE, MAX_PARTITION_SIZE, PARTITION_DIMENSIONS, TARGET_PARTITION_SIZE, TARGET_ROWS_PER_SEGMENTFields inherited from interface org.apache.druid.indexer.partitions.PartitionsSpec
DEFAULT_MAX_ROWS_PER_SEGMENT, HISTORICAL_NULL, MAX_ROWS_PER_SEGMENT -
Constructor Summary
ConstructorsConstructorDescriptionSingleDimensionPartitionsSpec(Integer targetRowsPerSegment, Integer maxRowsPerSegment, String partitionDimension, boolean assumeGrouped) SingleDimensionPartitionsSpec(Integer targetRowsPerSegment, Integer maxRowsPerSegment, String partitionDimension, boolean assumeGrouped, Integer targetPartitionSize, Integer maxPartitionSize) -
Method Summary
Methods inherited from class org.apache.druid.indexer.partitions.DimensionRangePartitionsSpec
getMaxRowsPerSegment, getMaxRowsPerSegmentForJson, getPartitionDimensions, getTargetRowsPerSegment, getType, isAssumeGrouped, needsDeterminePartitionsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.indexer.partitions.PartitionsSpec
isForceGuaranteedRollupCompatible, isForceGuaranteedRollupCompatibleType
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
SingleDimensionPartitionsSpec
public SingleDimensionPartitionsSpec(@Nullable Integer targetRowsPerSegment, @Nullable Integer maxRowsPerSegment, @Nullable String partitionDimension, boolean assumeGrouped, @Deprecated @Nullable Integer targetPartitionSize, @Deprecated @Nullable Integer maxPartitionSize) -
SingleDimensionPartitionsSpec
-
-
Method Details
-
getPartitionDimension
-
getSerializableObject
Returns a Map to be used for serializing objects of this class. This is to ensure that a new field added inDimensionRangePartitionsSpecdoes not get serialized when serializing aSingleDimensionPartitionsSpec.- Returns:
- A map containing only the keys
"partitionDimension","targetRowsPerSegment","maxRowsPerSegments"and"assumeGrouped".
-
getForceGuaranteedRollupIncompatiblityReason
- Specified by:
getForceGuaranteedRollupIncompatiblityReasonin interfacePartitionsSpec- Overrides:
getForceGuaranteedRollupIncompatiblityReasonin classDimensionRangePartitionsSpec- Returns:
- Message describing why this partitionSpec is incompatible with forceGuaranteedRollup=true. Empty string if the partitionSpec is compatible.
-
equals
- Overrides:
equalsin classDimensionRangePartitionsSpec
-
hashCode
public int hashCode()- Overrides:
hashCodein classDimensionRangePartitionsSpec
-
toString
- Overrides:
toStringin classDimensionRangePartitionsSpec
-