Package io.pravega.client.tables.impl
Class HashTableIteratorItem.State
- java.lang.Object
-
- io.pravega.client.tables.impl.HashTableIteratorItem.State
-
- Enclosing class:
- HashTableIteratorItem<T>
public static class HashTableIteratorItem.State extends java.lang.ObjectIterator State.
-
-
Field Summary
Fields Modifier and Type Field Description static HashTableIteratorItem.StateEMPTYNo state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)static HashTableIteratorItem.StatecopyOf(HashTableIteratorItem.State source)Creates a newHashTableIteratorItem.Statewhich is a copy of the givenHashTableIteratorItem.State.booleanequals(java.lang.Object o)static HashTableIteratorItem.StatefromBytes(io.netty.buffer.ByteBuf serializedState)Deserializes theHashTableIteratorItem.Statefrom its serialized form obtained from callinggetToken().static HashTableIteratorItem.StatefromBytes(java.nio.ByteBuffer serializedState)Deserializes the IteratorState from its serialized form obtained from callingtoBytes().io.netty.buffer.ByteBufgetToken()inthashCode()booleanisEmpty()Gets a value indicating whether thisHashTableIteratorItem.Stateis empty (no state) or not.java.nio.ByteBuffertoBytes()Serializes thisHashTableIteratorItem.Stateinto aByteBuffer.
-
-
-
Field Detail
-
EMPTY
public static final HashTableIteratorItem.State EMPTY
No state. Providing this value will result in an iterator that starts from the beginning (i.e., not resuming an existing iteration).
-
-
Method Detail
-
toBytes
public java.nio.ByteBuffer toBytes()
Serializes thisHashTableIteratorItem.Stateinto aByteBuffer.- Returns:
- A
ByteBufferrepresenting the contents of this state.
-
isEmpty
public boolean isEmpty()
Gets a value indicating whether thisHashTableIteratorItem.Stateis empty (no state) or not.- Returns:
- True if empty (no state), false otherwise.
-
fromBytes
public static HashTableIteratorItem.State fromBytes(io.netty.buffer.ByteBuf serializedState)
Deserializes theHashTableIteratorItem.Statefrom its serialized form obtained from callinggetToken().- Parameters:
serializedState- A serializedHashTableIteratorItem.State.- Returns:
- The IteratorState object.
-
fromBytes
public static HashTableIteratorItem.State fromBytes(java.nio.ByteBuffer serializedState)
Deserializes the IteratorState from its serialized form obtained from callingtoBytes().- Parameters:
serializedState- A serializedHashTableIteratorItem.State.- Returns:
- The IteratorState object.
-
copyOf
public static HashTableIteratorItem.State copyOf(HashTableIteratorItem.State source)
Creates a newHashTableIteratorItem.Statewhich is a copy of the givenHashTableIteratorItem.State.- Parameters:
source- TheHashTableIteratorItem.Stateto copy.- Returns:
- The copy.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getToken
public io.netty.buffer.ByteBuf getToken()
-
-