Interface RandomAccessReader.MultiFetch
-
- Enclosing interface:
- RandomAccessReader
public static interface RandomAccessReader.MultiFetchA facade for fetching multipleKeyValuesin single request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfetch(Consumer<Pair<RandomAccessReader.GetRequest<?>,java.util.Optional<KeyValue<?>>>> consumer)Perform the multi fetch and pass results through the provided consumer<T> RandomAccessReader.MultiFetchget(RandomAccessReader.GetRequest<T> request)Add newRandomAccessReader.GetRequestto the multi fetch.
-
-
-
Method Detail
-
get
<T> RandomAccessReader.MultiFetch get(RandomAccessReader.GetRequest<T> request)
Add newRandomAccessReader.GetRequestto 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
-
-