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.Object
Iterator State.
-
-
Field Summary
Fields Modifier and Type Field Description static HashTableIteratorItem.State
EMPTY
No state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
static HashTableIteratorItem.State
copyOf(HashTableIteratorItem.State source)
Creates a newHashTableIteratorItem.State
which is a copy of the givenHashTableIteratorItem.State
.boolean
equals(java.lang.Object o)
static HashTableIteratorItem.State
fromBytes(io.netty.buffer.ByteBuf serializedState)
Deserializes theHashTableIteratorItem.State
from its serialized form obtained from callinggetToken()
.static HashTableIteratorItem.State
fromBytes(java.nio.ByteBuffer serializedState)
Deserializes the IteratorState from its serialized form obtained from callingtoBytes()
.io.netty.buffer.ByteBuf
getToken()
int
hashCode()
boolean
isEmpty()
Gets a value indicating whether thisHashTableIteratorItem.State
is empty (no state) or not.java.nio.ByteBuffer
toBytes()
Serializes thisHashTableIteratorItem.State
into 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.State
into aByteBuffer
.- Returns:
- A
ByteBuffer
representing the contents of this state.
-
isEmpty
public boolean isEmpty()
Gets a value indicating whether thisHashTableIteratorItem.State
is 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.State
from 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.State
which is a copy of the givenHashTableIteratorItem.State
.- Parameters:
source
- TheHashTableIteratorItem.State
to copy.- Returns:
- The copy.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getToken
public io.netty.buffer.ByteBuf getToken()
-
-