Interface AbstractSegmentMetadataCache.ColumnTypeMergePolicy
-
- All Known Implementing Classes:
AbstractSegmentMetadataCache.FirstTypeMergePolicy,AbstractSegmentMetadataCache.LeastRestrictiveTypeMergePolicy
- Enclosing class:
- AbstractSegmentMetadataCache<T extends DataSourceInformation>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface AbstractSegmentMetadataCache.ColumnTypeMergePolicy
ColumnTypeMergePolicy defines the rules of which type to use when faced with the possibility of different types for the same column from segment to segment. It is used to help compute aRowSignaturefor a table in Druid based on the segment metadata of all segments, merging the types of each column encountered to end up with a single type to represent it globally.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static AbstractSegmentMetadataCache.ColumnTypeMergePolicyfromString(String type)org.apache.druid.segment.column.ColumnTypemerge(org.apache.druid.segment.column.ColumnType existingType, org.apache.druid.segment.column.ColumnType newType)
-
-
-
Method Detail
-
merge
org.apache.druid.segment.column.ColumnType merge(org.apache.druid.segment.column.ColumnType existingType, org.apache.druid.segment.column.ColumnType newType)
-
fromString
static AbstractSegmentMetadataCache.ColumnTypeMergePolicy fromString(String type)
-
-