Package com.palantir.atlasdb.cell.api
Interface DataKeyValueService
public interface DataKeyValueService
Key-Value API to be used with user data tables.
Close cousin of
KeyValueService
but severely restricts the API available
to transactions.-
Method Summary
Modifier and TypeMethodDescriptiongetAsync
(TableReference tableRef, Map<Cell, Long> timestampByCell) Map<RangeRequest,
com.palantir.util.paging.TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstBatchForRanges
(TableReference tableRef, Iterable<RangeRequest> rangeRequests, long timestamp) getLatestTimestamps
(TableReference tableRef, Map<Cell, Long> timestampByCell) getRange
(TableReference tableRef, RangeRequest rangeRequest, long timestamp) getRows
(TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp) Map<byte[],
RowColumnRangeIterator> getRowsColumnRange
(TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection batchColumnRangeSelection, long timestamp) getRowsColumnRange
(TableReference tableRef, Iterable<byte[]> rows, ColumnRangeSelection columnRangeSelection, int cellBatchHint, long timestamp) boolean
isValid
(long timestamp) Returns whether this transaction key value service is guaranteed to be a source of truth for the broader system at the given timestamp.void
multiPut
(Map<TableReference, ? extends Map<Cell, byte[]>> valuesByTable, long timestamp)
-
Method Details
-
getFirstBatchForRanges
Map<RangeRequest,com.palantir.util.paging.TokenBackedBasicResultsPage<RowResult<Value>, getFirstBatchForRangesbyte[]>> (TableReference tableRef, Iterable<RangeRequest> rangeRequests, long timestamp) -
getRows
Map<Cell,Value> getRows(TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp) -
getRowsColumnRange
Map<byte[],RowColumnRangeIterator> getRowsColumnRange(TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection batchColumnRangeSelection, long timestamp) -
getRowsColumnRange
RowColumnRangeIterator getRowsColumnRange(TableReference tableRef, Iterable<byte[]> rows, ColumnRangeSelection columnRangeSelection, int cellBatchHint, long timestamp) -
getRange
@MustBeClosed com.palantir.common.base.ClosableIterator<RowResult<Value>> getRange(TableReference tableRef, RangeRequest rangeRequest, long timestamp) -
getAsync
-
getLatestTimestamps
-
multiPut
void multiPut(Map<TableReference, ? extends Map<Cell, throws KeyAlreadyExistsExceptionbyte[]>> valuesByTable, long timestamp) - Throws:
KeyAlreadyExistsException
-
isValid
boolean isValid(long timestamp) Returns whether this transaction key value service is guaranteed to be a source of truth for the broader system at the given timestamp.
-