Class KafkaTridentSpoutBatchMetadata
java.lang.Object
org.apache.storm.kafka.spout.trident.KafkaTridentSpoutBatchMetadata
- All Implemented Interfaces:
Serializable
Wraps transaction batch information.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionKafkaTridentSpoutBatchMetadata
(long firstOffset, long lastOffset, String topologyId) Builds a metadata object. -
Method Summary
-
Field Details
-
FIRST_OFFSET_KEY
- See Also:
-
LAST_OFFSET_KEY
- See Also:
-
TOPOLOGY_ID_KEY
- See Also:
-
-
Constructor Details
-
KafkaTridentSpoutBatchMetadata
Builds a metadata object.- Parameters:
firstOffset
- The first offset for the batchlastOffset
- The last offset for the batch
-
-
Method Details
-
getFirstOffset
public long getFirstOffset() -
getLastOffset
public long getLastOffset() -
getTopologyId
-
fromMap
Constructs a metadata object from a Map in the format produced bytoMap()
.- Parameters:
map
- The source map- Returns:
- A new metadata object
-
toMap
Writes this metadata object to a Map so Trident can read/write it to Zookeeper. -
toString
-