Interface RandomAccessReader.MultiFetch
-
- Enclosing interface:
- RandomAccessReader
public static interface RandomAccessReader.MultiFetch
A facade for fetching multipleKeyValues
in single request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fetch(Consumer<Pair<RandomAccessReader.GetRequest<?>,java.util.Optional<KeyValue<?>>>> consumer)
Perform the multi fetch and pass results through the provided consumer<T> RandomAccessReader.MultiFetch
get(RandomAccessReader.GetRequest<T> request)
Add newRandomAccessReader.GetRequest
to the multi fetch.
-
-
-
Method Detail
-
get
<T> RandomAccessReader.MultiFetch get(RandomAccessReader.GetRequest<T> request)
Add newRandomAccessReader.GetRequest
to the multi fetch.- Type Parameters:
T
- type of attribute- Parameters:
request
- the request to add- Returns:
- this
-
fetch
void fetch(Consumer<Pair<RandomAccessReader.GetRequest<?>,java.util.Optional<KeyValue<?>>>> consumer)
Perform the multi fetch and pass results through the provided consumer- Parameters:
consumer
- consumer to receive results of the multifetch
-
-