public class LevelDBTableCore extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
DELETE_MARKER |
| Constructor and Description |
|---|
LevelDBTableCore(String tableName,
LevelDBTableService service) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteColumn(byte[] row,
byte[] column) |
void |
deleteRange(byte[] startRow,
byte[] stopRow,
FuzzyRowFilter filter,
byte[][] columns) |
void |
deleteRows(byte[] prefix) |
void |
deleteRows(Collection<byte[]> toDelete)
Delete a list of rows from the table entirely, disregarding transactions.
|
NavigableMap<byte[],byte[]> |
getRow(byte[] row,
byte[][] columns,
byte[] startCol,
byte[] stopCol,
int limit,
co.cask.tephra.Transaction tx)
if columns are not null, then limit param is ignored and limit is columns.length
|
Map<byte[],Long> |
increment(byte[] row,
Map<byte[],Long> increments) |
void |
increment(NavigableMap<byte[],NavigableMap<byte[],Long>> updates) |
void |
persist(Map<byte[],? extends Map<byte[],byte[]>> changes,
long version) |
void |
put(byte[] row,
byte[] column,
byte[] value,
long version) |
co.cask.cdap.api.dataset.table.Scanner |
scan(byte[] startRow,
byte[] stopRow,
FuzzyRowFilter filter,
byte[][] columns,
co.cask.tephra.Transaction tx) |
boolean |
swap(byte[] row,
byte[] column,
byte[] oldValue,
byte[] newValue) |
void |
undo(Map<byte[],? extends Map<byte[],?>> persisted,
long version) |
public LevelDBTableCore(String tableName, LevelDBTableService service) throws IOException
IOExceptionpublic boolean swap(byte[] row,
byte[] column,
byte[] oldValue,
byte[] newValue)
throws IOException
IOExceptionpublic Map<byte[],Long> increment(byte[] row, Map<byte[],Long> increments) throws IOException
IOExceptionpublic void increment(NavigableMap<byte[],NavigableMap<byte[],Long>> updates) throws IOException
IOExceptionpublic void persist(Map<byte[],? extends Map<byte[],byte[]>> changes, long version) throws IOException
IOExceptionpublic void put(byte[] row,
byte[] column,
byte[] value,
long version)
throws IOException
IOExceptionpublic void undo(Map<byte[],? extends Map<byte[],?>> persisted, long version) throws IOException
IOExceptionpublic co.cask.cdap.api.dataset.table.Scanner scan(byte[] startRow,
byte[] stopRow,
@Nullable
FuzzyRowFilter filter,
@Nullable
byte[][] columns,
@Nullable
co.cask.tephra.Transaction tx)
throws IOException
IOExceptionpublic NavigableMap<byte[],byte[]> getRow(byte[] row, @Nullable byte[][] columns, byte[] startCol, byte[] stopCol, int limit, co.cask.tephra.Transaction tx) throws IOException
IOExceptionpublic void deleteRows(byte[] prefix)
throws IOException
IOExceptionpublic void deleteRows(Collection<byte[]> toDelete) throws IOException
toDelete - the row keys to deleteIOExceptionpublic void deleteRange(byte[] startRow,
byte[] stopRow,
@Nullable
FuzzyRowFilter filter,
@Nullable
byte[][] columns)
throws IOException
IOExceptionpublic void deleteColumn(byte[] row,
byte[] column)
throws IOException
IOExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.