public final class ObjectMetadata extends Object implements DataSourceMetadata
| Constructor and Description |
|---|
ObjectMetadata(Object theObject) |
| 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 |
equals(Object o) |
Object |
getObject() |
int |
hashCode() |
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.
|
String |
toString() |
public ObjectMetadata(Object theObject)
public Object getObject()
public boolean isValidStart()
DataSourceMetadataisValidStart in interface DataSourceMetadatapublic DataSourceMetadata asStartMetadata()
DataSourceMetadataIndexerMetadataStorageCoordinator.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.asStartMetadata in interface DataSourceMetadatapublic boolean matches(DataSourceMetadata other)
DataSourceMetadatamatches in interface DataSourceMetadataother - another instancepublic DataSourceMetadata plus(DataSourceMetadata other)
DataSourceMetadataplus in interface DataSourceMetadataother - another instancepublic DataSourceMetadata minus(DataSourceMetadata other)
DataSourceMetadataminus in interface DataSourceMetadataother - another instanceCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.