public interface DataSourceMetadata
IndexerMetadataStorageCoordinator.announceHistoricalSegments(Set, Set, DataSourceMetadata, DataSourceMetadata)
to provide metadata transactions for segment inserts.
Two metadata instances can be added together, and any conflicts are resolved in favor of the right-hand side.
This means metadata can be partitioned.| Modifier and Type | Method and Description |
|---|---|
DataSourceMetadata |
asStartMetadata()
As in
IndexerMetadataStorageCoordinator.announceHistoricalSegments(java.util.Set<org.apache.druid.timeline.DataSegment>), this class can represent start and
end of a sequence. |
boolean |
isValidStart()
Returns true if this instance should be considered a valid starting point for a new dataSource that has
no existing metadata.
|
boolean |
matches(DataSourceMetadata other)
Returns true if any information present in this instance matches analogous information from "other" and
so they are conflict-free.
|
DataSourceMetadata |
minus(DataSourceMetadata other)
Returns a copy of this instance with "other" subtracted.
|
DataSourceMetadata |
plus(DataSourceMetadata other)
Returns a copy of this instance with "other" merged in.
|
boolean isValidStart()
DataSourceMetadata asStartMetadata()
IndexerMetadataStorageCoordinator.announceHistoricalSegments(java.util.Set<org.apache.druid.timeline.DataSegment>), this class can represent start and
end of a sequence.
This method converts itself into the one for start of a sequence. Most implementations can simply return
this.boolean matches(DataSourceMetadata other)
other - another instanceDataSourceMetadata plus(DataSourceMetadata other)
other - another instanceDataSourceMetadata minus(DataSourceMetadata other)
other - another instanceCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.