public interface DataSourceMetadata
IndexerMetadataStorageCoordinator.announceHistoricalSegments(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 |
|---|---|
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()
boolean matches(DataSourceMetadata other)
other - another instanceDataSourceMetadata plus(DataSourceMetadata other)
other - another instanceDataSourceMetadata minus(DataSourceMetadata other)
other - another instanceCopyright © 2011–2017. All rights reserved.