Package com.linkedin.venice.writer
Class LeaderMetadataWrapper
java.lang.Object
com.linkedin.venice.writer.LeaderMetadataWrapper
This is a simple container class to hold Leader metadata related fields together to be passed on to the Put and Delete api in VeniceWriter
Caller should construct an instance of this object by properly filling up all the fields of this object.
-
Constructor Summary
ConstructorsConstructorDescriptionLeaderMetadataWrapper
(PubSubPosition upstreamPosition, int upstreamKafkaClusterId, long termId) LeaderMetadataWrapper
(PubSubPosition upstreamPosition, int upstreamKafkaClusterId, long termId, Map<String, Set<Integer>> viewPartitionMap) -
Method Summary
Modifier and TypeMethodDescriptionlong
int
-
Constructor Details
-
LeaderMetadataWrapper
public LeaderMetadataWrapper(PubSubPosition upstreamPosition, int upstreamKafkaClusterId, long termId) -
LeaderMetadataWrapper
public LeaderMetadataWrapper(PubSubPosition upstreamPosition, int upstreamKafkaClusterId, long termId, Map<String, Set<Integer>> viewPartitionMap)
-
-
Method Details
-
getUpstreamPosition
-
getUpstreamKafkaClusterId
public int getUpstreamKafkaClusterId() -
getViewPartitionMap
-
getTermId
public long getTermId()
-