Package io.pravega.client.tables
Class IteratorItem<T>
- java.lang.Object
-
- io.pravega.client.tables.IteratorItem<T>
-
- Type Parameters:
T
- Iterator Item type.
public class IteratorItem<T> extends java.lang.Object
An iteration result item returned byAsyncIterator
when invokingKeyValueTable.entryIterator(java.lang.String, int, io.pravega.client.tables.IteratorState)
orKeyValueTable.keyIterator(java.lang.String, int, io.pravega.client.tables.IteratorState)
.
-
-
Constructor Summary
Constructors Constructor Description IteratorItem(IteratorState state, java.util.List<T> items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.List<T>
getItems()
A List of items that are contained in this instance.IteratorState
getState()
Gets anIteratorState
that can be used to reinvokeKeyValueTable.entryIterator(java.lang.String, int, io.pravega.client.tables.IteratorState)
orKeyValueTable.keyIterator(java.lang.String, int, io.pravega.client.tables.IteratorState)
if a previous iteration has been interrupted (by losing the pointer to theAsyncIterator
), system restart, etc.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
IteratorItem
@ConstructorProperties({"state","items"}) public IteratorItem(IteratorState state, java.util.List<T> items)
-
-
Method Detail
-
getState
public IteratorState getState()
Gets anIteratorState
that can be used to reinvokeKeyValueTable.entryIterator(java.lang.String, int, io.pravega.client.tables.IteratorState)
orKeyValueTable.keyIterator(java.lang.String, int, io.pravega.client.tables.IteratorState)
if a previous iteration has been interrupted (by losing the pointer to theAsyncIterator
), system restart, etc.KeyValueTable.keyIterator(java.lang.String, int, io.pravega.client.tables.IteratorState)
if a previous iteration has been interrupted.- Returns:
IteratorState
that can be used to reinvokeKeyValueTable.entryIterator(java.lang.String, int, io.pravega.client.tables.IteratorState)
orKeyValueTable.keyIterator(java.lang.String, int, io.pravega.client.tables.IteratorState)
if a previous iteration has been interrupted
-
getItems
public java.util.List<T> getItems()
A List of items that are contained in this instance.- Returns:
- List of items that are contained in this instance.
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-