Interface FDBLocalityProvider
-
- All Known Implementing Classes:
FDBLocalityUtil
public interface FDBLocalityProvider
An interface containing a set of functions for discovering the location of the keys within a cluster.- See Also:
FDBLocalityUtil
,LocalityUtil
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CloseableAsyncIterator<byte[]>
getBoundaryKeys(Transaction tr, byte[] begin, byte[] end)
Return aCloseableAsyncIterator
of keysk
such thatbegin <= k < end
andk
is located at the start of a contiguous range stored on a single server.
-
-
-
Method Detail
-
getBoundaryKeys
@Nonnull CloseableAsyncIterator<byte[]> getBoundaryKeys(@Nonnull Transaction tr, @Nonnull byte[] begin, @Nonnull byte[] end)
Return aCloseableAsyncIterator
of keysk
such thatbegin <= k < end
andk
is located at the start of a contiguous range stored on a single server.- Parameters:
tr
- the transaction on which to base the querybegin
- the inclusive start of the rangeend
- the exclusive end of the range- Returns:
- a sequence of keys denoting the start of single-server ranges
- See Also:
LocalityUtil.getBoundaryKeys(Transaction, byte[], byte[])
-
-