public class InMemoryTableService extends Object
InMemoryTable.| Modifier and Type | Field and Description |
|---|---|
static Comparator<Long> |
VERSIONED_VALUE_MAP_COMPARATOR |
| Constructor and Description |
|---|
InMemoryTableService() |
| Modifier and Type | Method and Description |
|---|---|
static void |
create(String tableName) |
static void |
delete(String tableName,
byte[] rowPrefix) |
static void |
delete(String tableName,
Iterable<byte[]> rows) |
static void |
deleteColumns(String tableName,
byte[] row,
byte[] column) |
static void |
drop(String tableName) |
static boolean |
exists(String tableName) |
static NavigableMap<byte[],NavigableMap<Long,byte[]>> |
get(String tableName,
byte[] row,
Long version) |
static NavigableMap<byte[],NavigableMap<byte[],NavigableMap<Long,byte[]>>> |
getRowRange(String tableName,
byte[] startRow,
byte[] stopRow,
Long version) |
static Map<byte[],Long> |
increment(String tableName,
byte[] row,
Map<byte[],Long> increments)
Deprecated.
|
static Collection<String> |
list() |
static void |
merge(String tableName,
SortedMap<byte[],? extends SortedMap<byte[],? extends Update>> changes,
long version) |
static void |
reset() |
static boolean |
swap(String tableName,
byte[] row,
byte[] column,
byte[] oldValue,
byte[] newValue) |
static void |
truncate(String tableName) |
static void |
undo(String tableName,
NavigableMap<byte[],NavigableMap<byte[],Update>> changes,
long version) |
public static final Comparator<Long> VERSIONED_VALUE_MAP_COMPARATOR
public static boolean exists(String tableName)
public static void create(String tableName)
public static void truncate(String tableName)
public static void drop(String tableName)
public static void reset()
public static void merge(String tableName, SortedMap<byte[],? extends SortedMap<byte[],? extends Update>> changes, long version)
@Deprecated public static Map<byte[],Long> increment(String tableName, byte[] row, Map<byte[],Long> increments)
public static boolean swap(String tableName, byte[] row, byte[] column, byte[] oldValue, byte[] newValue)
public static void undo(String tableName, NavigableMap<byte[],NavigableMap<byte[],Update>> changes, long version)
public static void deleteColumns(String tableName, byte[] row, byte[] column)
public static void delete(String tableName, byte[] rowPrefix)
public static NavigableMap<byte[],NavigableMap<Long,byte[]>> get(String tableName, byte[] row, Long version)
public static NavigableMap<byte[],NavigableMap<byte[],NavigableMap<Long,byte[]>>> getRowRange(String tableName, byte[] startRow, byte[] stopRow, Long version)
public static Collection<String> list()
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.