public class KafkaDataSourceMetadata extends Object implements DataSourceMetadata
| Constructor and Description |
|---|
KafkaDataSourceMetadata(KafkaPartitions kafkaPartitions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
KafkaPartitions |
getKafkaPartitions() |
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 KafkaDataSourceMetadata(KafkaPartitions kafkaPartitions)
public KafkaPartitions getKafkaPartitions()
public boolean isValidStart()
DataSourceMetadataisValidStart 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–2017. All rights reserved.