Package org.apache.druid.segment
Class SegmentSchemaMapping
java.lang.Object
org.apache.druid.segment.SegmentSchemaMapping
Compact representation of segment schema for multiple segments. Note, that this is a mutable class.
-
Constructor Summary
ConstructorsConstructorDescriptionSegmentSchemaMapping(int schemaVersion) SegmentSchemaMapping(Map<String, SegmentMetadata> segmentIdToMetadataMap, Map<String, SchemaPayload> schemaFingerprintToPayloadMap, int schemaVersion) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSchema(SegmentId segmentId, SchemaPayloadPlus schemaPayloadPlus, String fingerprint) Add schema information for the segment.booleanintintinthashCode()booleanvoidmerge(SegmentSchemaMapping other) Merge with another instance.toString()
-
Constructor Details
-
SegmentSchemaMapping
public SegmentSchemaMapping(Map<String, SegmentMetadata> segmentIdToMetadataMap, Map<String, SchemaPayload> schemaFingerprintToPayloadMap, int schemaVersion) -
SegmentSchemaMapping
public SegmentSchemaMapping(int schemaVersion)
-
-
Method Details
-
getSegmentIdToMetadataMap
-
getSchemaFingerprintToPayloadMap
-
getSchemaVersion
public int getSchemaVersion() -
isNonEmpty
public boolean isNonEmpty() -
addSchema
Add schema information for the segment. -
merge
Merge with another instance. -
getSchemaCount
public int getSchemaCount() -
equals
-
hashCode
public int hashCode() -
toString
-