backtype.storm.tuple
Class MessageId
java.lang.Object
backtype.storm.tuple.MessageId
public class MessageId
- extends Object
MessageId
protected MessageId(Map<Long,Long> anchorsToIds)
generateId
public static long generateId(Random rand)
makeUnanchored
public static MessageId makeUnanchored()
makeId
public static MessageId makeId(Map<Long,Long> anchorsToIds)
makeRootId
public static MessageId makeRootId(long id,
long val)
getAnchorsToIds
public Map<Long,Long> getAnchorsToIds()
getAnchors
public Set<Long> getAnchors()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
serialize
public void serialize(com.esotericsoftware.kryo.io.Output out)
throws IOException
- Throws:
IOException
deserialize
public static MessageId deserialize(com.esotericsoftware.kryo.io.Input in)
throws IOException
- Throws:
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.