@API.Internal public class MapRDBTableImpl extends Object implements Table
| Modifier and Type | Class and Description |
|---|---|
static class |
MapRDBTableImpl.TablePrivateOption |
Table.TableOption| Modifier and Type | Field and Description |
|---|---|
static String |
DECOMPRESS_STR |
static String |
EXCLUDE_EMBEDDEDFAMILY_STR |
static String |
GET_DELETES_STR |
static String |
PRESERVE_TS_STR |
int |
testMulitOpExIdx |
| Constructor and Description |
|---|
MapRDBTableImpl(org.apache.hadoop.fs.Path tablePath,
org.apache.hadoop.conf.Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAndDelete(ByteBuffer id,
org.ojai.store.QueryCondition condition) |
boolean |
checkAndDelete(String id,
org.ojai.store.QueryCondition condition)
Atomically evaluates the condition on a given row and if the
condition holds true for the row then it is atomically deleted.
|
boolean |
checkAndDelete(org.ojai.Value id,
org.ojai.store.QueryCondition condition) |
boolean |
checkAndMutate(ByteBuffer id,
org.ojai.store.QueryCondition condition,
org.ojai.store.DocumentMutation m) |
boolean |
checkAndMutate(String id,
org.ojai.store.QueryCondition condition,
org.ojai.store.DocumentMutation m)
Atomically evaluates the condition on a given row and if the condition
holds true for the row then the mutation is applied on the row.
|
boolean |
checkAndMutate(org.ojai.Value id,
org.ojai.store.QueryCondition condition,
org.ojai.store.DocumentMutation m) |
boolean |
checkAndReplace(ByteBuffer id,
org.ojai.store.QueryCondition condition,
org.ojai.Document r) |
boolean |
checkAndReplace(String id,
org.ojai.store.QueryCondition condition,
org.ojai.Document r)
Atomically evaluates the condition on a given row on the server and if the
condition holds true for the row then it atomically replaces the row
with the given record.
|
boolean |
checkAndReplace(org.ojai.Value id,
org.ojai.store.QueryCondition condition,
org.ojai.Document r) |
void |
close()
Overrides
AutoCloseable.close() to avoid declaring a checked exception. |
boolean |
decodeTimestamp() |
void |
delete(ByteBuffer id) |
void |
delete(org.ojai.Document r) |
void |
delete(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey) |
void |
delete(org.ojai.DocumentStream rs)
Deletes a set of documents from the table represented by the DocumentStream.
|
void |
delete(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey) |
void |
delete(org.ojai.DocumentStream rs,
String fieldAsKey) |
void |
delete(org.ojai.Document r,
String fieldAsKey) |
void |
delete(String id)
Deletes a row with the given rowkey.
|
void |
delete(org.ojai.Value id) |
boolean |
excludeEmbeddedFamily() |
org.ojai.DocumentStream |
find()
Returns a record stream for all the rows in the table.
|
org.ojai.DocumentStream |
find(org.ojai.FieldPath... fields) |
org.ojai.DocumentStream |
find(org.ojai.store.QueryCondition c)
Returns a record stream for all the rows in the table that match the
condition.
|
org.ojai.DocumentStream |
find(org.ojai.store.QueryCondition c,
org.ojai.FieldPath... fields) |
org.ojai.DocumentStream |
find(org.ojai.store.QueryCondition c,
String... paths)
Returns a record stream for all the rows in the table that match the
condition.
|
org.ojai.DocumentStream |
find(String... paths)
Returns a record stream for all the rows in the table.
|
org.ojai.Document |
findById(ByteBuffer id) |
org.ojai.Document |
findById(ByteBuffer id,
org.ojai.FieldPath... fields) |
org.ojai.Document |
findById(ByteBuffer id,
org.ojai.store.QueryCondition c) |
org.ojai.Document |
findById(ByteBuffer id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... fields) |
org.ojai.Document |
findById(ByteBuffer id,
org.ojai.store.QueryCondition c,
String... paths) |
org.ojai.Document |
findById(ByteBuffer id,
String... paths) |
void |
findById(org.ojai.store.OpListener listener,
ByteBuffer id) |
void |
findById(org.ojai.store.OpListener listener,
ByteBuffer id,
org.ojai.FieldPath... fields) |
void |
findById(org.ojai.store.OpListener listener,
ByteBuffer id,
org.ojai.store.QueryCondition c) |
void |
findById(org.ojai.store.OpListener listener,
ByteBuffer id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... fields) |
void |
findById(org.ojai.store.OpListener listener,
ByteBuffer id,
org.ojai.store.QueryCondition c,
String... paths) |
void |
findById(org.ojai.store.OpListener listener,
ByteBuffer id,
String... paths) |
void |
findById(org.ojai.store.OpListener listener,
String id)
Non-blocking read operations.
|
void |
findById(org.ojai.store.OpListener listener,
String id,
org.ojai.FieldPath... fields) |
void |
findById(org.ojai.store.OpListener listener,
String id,
org.ojai.store.QueryCondition c)
Non-blocking read operation that gets called back on the listener object
on success or failure.
|
void |
findById(org.ojai.store.OpListener listener,
String id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... fields) |
void |
findById(org.ojai.store.OpListener listener,
String id,
org.ojai.store.QueryCondition c,
String... paths) |
void |
findById(org.ojai.store.OpListener listener,
String id,
String... paths)
Non-blocking read operation which gets called back on the listener object
on success or failure.
|
void |
findById(org.ojai.store.OpListener listener,
org.ojai.Value id) |
void |
findById(org.ojai.store.OpListener listener,
org.ojai.Value id,
org.ojai.FieldPath... fields) |
void |
findById(org.ojai.store.OpListener listener,
org.ojai.Value id,
org.ojai.store.QueryCondition c) |
void |
findById(org.ojai.store.OpListener listener,
org.ojai.Value id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... fields) |
void |
findById(org.ojai.store.OpListener listener,
org.ojai.Value id,
org.ojai.store.QueryCondition c,
String... paths) |
void |
findById(org.ojai.store.OpListener listener,
org.ojai.Value id,
String... paths) |
org.ojai.Document |
findById(String id)
Reads a single full record identified by the id.
|
org.ojai.Document |
findById(String id,
org.ojai.FieldPath... fields) |
org.ojai.Document |
findById(String id,
org.ojai.store.QueryCondition c)
Reads the row parts that match the condition and projects only the
field paths requested.
|
org.ojai.Document |
findById(String id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... fields) |
org.ojai.Document |
findById(String id,
org.ojai.store.QueryCondition c,
String... paths) |
org.ojai.Document |
findById(String id,
String... paths)
Reads the row and projects only the field paths requested.
|
org.ojai.Document |
findById(org.ojai.Value id) |
org.ojai.Document |
findById(org.ojai.Value id,
org.ojai.FieldPath... fields) |
org.ojai.Document |
findById(org.ojai.Value id,
org.ojai.store.QueryCondition c) |
org.ojai.Document |
findById(org.ojai.Value id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... fields) |
org.ojai.Document |
findById(org.ojai.Value id,
org.ojai.store.QueryCondition c,
String... paths) |
org.ojai.Document |
findById(org.ojai.Value id,
String... paths) |
void |
flush()
Flushes all the buffered update operations on the client.
|
boolean |
getDeletes() |
String |
getName()
Returns just the name of the table (not the full path).
|
org.ojai.Value |
getOption(Table.TableOption option) |
org.apache.hadoop.fs.Path |
getPath()
Returns the full path of the table.
|
boolean |
getPrivateOption(MapRDBTableImpl.TablePrivateOption option) |
TableDescriptor |
getTableDescriptor() |
TabletInfo |
getTabletInfo(ByteBuffer _id) |
TabletInfo |
getTabletInfo(String _id) |
TabletInfo |
getTabletInfo(org.ojai.Value _id) |
TabletInfo[] |
getTabletInfos() |
TabletInfo[] |
getTabletInfos(org.ojai.store.QueryCondition condition) |
com.google.common.collect.BiMap<org.ojai.FieldPath,Integer> |
idPathMap() |
Map<Integer,String> |
idToCFNameMap() |
void |
increment(ByteBuffer id,
String field,
BigDecimal inc) |
void |
increment(ByteBuffer id,
String field,
byte inc) |
void |
increment(ByteBuffer id,
String field,
double inc) |
void |
increment(ByteBuffer id,
String field,
float inc) |
void |
increment(ByteBuffer id,
String field,
int inc) |
void |
increment(ByteBuffer id,
String field,
long inc) |
void |
increment(ByteBuffer id,
String field,
short inc) |
void |
increment(String id,
String field,
BigDecimal inc) |
void |
increment(String id,
String field,
byte inc)
Atomically applies an increment to a given field (in dot-separated notation)
of the given row id.
|
void |
increment(String id,
String field,
double inc) |
void |
increment(String id,
String field,
float inc) |
void |
increment(String id,
String field,
int inc) |
void |
increment(String id,
String field,
long inc) |
void |
increment(String id,
String field,
short inc) |
void |
increment(org.ojai.Value id,
String field,
BigDecimal inc) |
void |
increment(org.ojai.Value id,
String field,
byte inc) |
void |
increment(org.ojai.Value id,
String field,
double inc) |
void |
increment(org.ojai.Value id,
String field,
float inc) |
void |
increment(org.ojai.Value id,
String field,
int inc) |
void |
increment(org.ojai.Value id,
String field,
long inc) |
void |
increment(org.ojai.Value id,
String field,
short inc) |
void |
insert(ByteBuffer id,
org.ojai.Document r) |
void |
insert(org.ojai.Document r) |
void |
insert(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey) |
void |
insert(org.ojai.DocumentStream rs)
Inserts a set of documents represented by the DocumentStream into the table.
|
void |
insert(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey) |
void |
insert(org.ojai.DocumentStream rs,
String fieldAsKey) |
void |
insert(org.ojai.Document r,
String fieldAsKey) |
void |
insert(String id,
org.ojai.Document r)
Inserts a row with the given rowkey.
|
void |
insert(org.ojai.Value id,
org.ojai.Document r) |
void |
insertOrReplace(ByteBuffer id,
org.ojai.Document r) |
void |
insertOrReplace(org.ojai.Document r)
Inserts a new record in the table.
|
void |
insertOrReplace(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey) |
void |
insertOrReplace(org.ojai.DocumentStream rs)
Inserts a set of documents represented by the DocumentStream into the table.
|
void |
insertOrReplace(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey) |
void |
insertOrReplace(org.ojai.DocumentStream rs,
String fieldAsKey)
Internally this API will get a number of records from the stream and
write them to the table.
|
void |
insertOrReplace(org.ojai.Document r,
String fieldAsKey) |
void |
insertOrReplace(String id,
org.ojai.Document r) |
void |
insertOrReplace(org.ojai.Value id,
org.ojai.Document r) |
boolean |
isKeepInsertionOrder() |
boolean |
isPreserveTS() |
boolean |
isReadOnly() |
com.mapr.fs.MapRHTable |
maprTable() |
void |
replace(ByteBuffer id,
org.ojai.Document r) |
void |
replace(org.ojai.Document r) |
void |
replace(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey) |
void |
replace(org.ojai.DocumentStream rs)
Replaces a set of documents represented by the DocumentStream into the table.
|
void |
replace(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey) |
void |
replace(org.ojai.DocumentStream rs,
String fieldAsKey) |
void |
replace(org.ojai.Document r,
String fieldAsKey) |
void |
replace(String id,
org.ojai.Document r)
Replaces a document in the table.
|
void |
replace(org.ojai.Value id,
org.ojai.Document r) |
org.ojai.DocumentStream |
segmentKeyScan() |
void |
setExcludeEmbeddedFamily(boolean v) |
Table |
setOption(Table.TableOption option,
boolean value) |
MapRDBTableImpl |
setPrivateOption(MapRDBTableImpl.TablePrivateOption option,
boolean value) |
boolean |
shouldDecompress() |
Map<org.ojai.FieldPath,Integer> |
sortedByPath() |
void |
update(ByteBuffer id,
org.ojai.store.DocumentMutation m) |
void |
update(String id,
org.ojai.store.DocumentMutation m)
Applies a row mutation on the row identified by the row id.
|
void |
update(org.ojai.Value id,
org.ojai.store.DocumentMutation m) |
void |
updateSchema() |
public static final String PRESERVE_TS_STR
public static final String GET_DELETES_STR
public static final String EXCLUDE_EMBEDDEDFAMILY_STR
public static final String DECOMPRESS_STR
public int testMulitOpExIdx
public MapRDBTableImpl(org.apache.hadoop.fs.Path tablePath,
org.apache.hadoop.conf.Configuration config)
throws DBException,
TableNotFoundException
DBExceptionTableNotFoundExceptionpublic com.mapr.fs.MapRHTable maprTable()
public com.google.common.collect.BiMap<org.ojai.FieldPath,Integer> idPathMap()
public Table setOption(Table.TableOption option, boolean value)
public boolean isKeepInsertionOrder()
public boolean getDeletes()
public boolean isPreserveTS()
public boolean shouldDecompress()
public boolean decodeTimestamp()
public void setExcludeEmbeddedFamily(boolean v)
public boolean excludeEmbeddedFamily()
public org.ojai.Value getOption(Table.TableOption option)
public MapRDBTableImpl setPrivateOption(MapRDBTableImpl.TablePrivateOption option, boolean value)
public boolean getPrivateOption(MapRDBTableImpl.TablePrivateOption option)
public String getName()
public org.apache.hadoop.fs.Path getPath()
public TableDescriptor getTableDescriptor()
getTableDescriptor in interface Tablepublic void flush()
throws DBException
flush in interface Tableflush in interface org.ojai.store.DocumentStoreDBException - if the flush failed or the flush of any buffered
operation resulted in an errorpublic org.ojai.Document findById(String id) throws DBException
findById in interface Tableid - row keyTableNotFoundException - when the table from which to get
the row does not existDBExceptionpublic org.ojai.Document findById(ByteBuffer id) throws DBException
findById in interface TableDBExceptionpublic org.ojai.Document findById(org.ojai.Value id)
throws DBException
findById in interface TableDBExceptionpublic org.ojai.Document findById(String id, org.ojai.FieldPath... fields) throws DBException
findById in interface TableDBExceptionpublic org.ojai.Document findById(String id, String... paths) throws DBException
TablefindById in interface Tableid - document idpaths - list of fields that should be returned in the read documentDBExceptionpublic org.ojai.Document findById(ByteBuffer id, org.ojai.FieldPath... fields) throws DBException
findById in interface TableDBExceptionpublic org.ojai.Document findById(ByteBuffer id, String... paths) throws DBException
findById in interface TableDBExceptionpublic org.ojai.Document findById(org.ojai.Value id,
org.ojai.FieldPath... fields)
throws DBException
DBExceptionpublic org.ojai.Document findById(org.ojai.Value id,
String... paths)
throws DBException
DBExceptionpublic org.ojai.Document findById(String id, org.ojai.store.QueryCondition c) throws DBException
TablefindById in interface Tableid - document idc - condition to check for the queryDBExceptionpublic org.ojai.Document findById(ByteBuffer id, org.ojai.store.QueryCondition c) throws DBException
findById in interface TableDBExceptionpublic org.ojai.Document findById(org.ojai.Value id,
org.ojai.store.QueryCondition c)
throws DBException
DBExceptionpublic org.ojai.Document findById(String id, org.ojai.store.QueryCondition c, org.ojai.FieldPath... fields) throws DBException
findById in interface TableDBExceptionpublic org.ojai.Document findById(String id, org.ojai.store.QueryCondition c, String... paths) throws DBException
findById in interface TableDBExceptionpublic org.ojai.Document findById(ByteBuffer id, org.ojai.store.QueryCondition c, org.ojai.FieldPath... fields) throws DBException
findById in interface TableDBExceptionpublic org.ojai.Document findById(ByteBuffer id, org.ojai.store.QueryCondition c, String... paths) throws DBException
findById in interface TableDBExceptionpublic org.ojai.Document findById(org.ojai.Value id,
org.ojai.store.QueryCondition c,
String... paths)
throws DBException
DBExceptionpublic org.ojai.Document findById(org.ojai.Value id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... fields)
throws DBException
DBExceptionpublic void findById(org.ojai.store.OpListener listener,
String id)
public void findById(org.ojai.store.OpListener listener,
ByteBuffer id)
public void findById(org.ojai.store.OpListener listener,
org.ojai.Value id)
public void findById(org.ojai.store.OpListener listener,
String id,
org.ojai.FieldPath... fields)
public void findById(org.ojai.store.OpListener listener,
String id,
String... paths)
Tablepublic void findById(org.ojai.store.OpListener listener,
ByteBuffer id,
org.ojai.FieldPath... fields)
public void findById(org.ojai.store.OpListener listener,
ByteBuffer id,
String... paths)
public void findById(org.ojai.store.OpListener listener,
org.ojai.Value id,
String... paths)
public void findById(org.ojai.store.OpListener listener,
org.ojai.Value id,
org.ojai.FieldPath... fields)
public void findById(org.ojai.store.OpListener listener,
String id,
org.ojai.store.QueryCondition c)
Tablepublic void findById(org.ojai.store.OpListener listener,
ByteBuffer id,
org.ojai.store.QueryCondition c)
public void findById(org.ojai.store.OpListener listener,
org.ojai.Value id,
org.ojai.store.QueryCondition c)
public void findById(org.ojai.store.OpListener listener,
String id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... fields)
public void findById(org.ojai.store.OpListener listener,
String id,
org.ojai.store.QueryCondition c,
String... paths)
public void findById(org.ojai.store.OpListener listener,
ByteBuffer id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... fields)
public void findById(org.ojai.store.OpListener listener,
ByteBuffer id,
org.ojai.store.QueryCondition c,
String... paths)
public void findById(org.ojai.store.OpListener listener,
org.ojai.Value id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... fields)
public void findById(org.ojai.store.OpListener listener,
org.ojai.Value id,
org.ojai.store.QueryCondition c,
String... paths)
public org.ojai.DocumentStream find()
throws DBException
find in interface Tablefind in interface org.ojai.store.DocumentStoreTableNotFoundException - when the table from which to get any row
does not existDBExceptionpublic org.ojai.DocumentStream find(String... paths) throws DBException
find in interface Tablefind in interface org.ojai.store.DocumentStorepaths - list of fields that should be returned in the read documentTableNotFoundException - when the table from which to get any row
does not existDBExceptionpublic org.ojai.DocumentStream find(org.ojai.FieldPath... fields)
throws DBException
find in interface Tablefind in interface org.ojai.store.DocumentStoreDBExceptionpublic org.ojai.DocumentStream find(org.ojai.store.QueryCondition c)
throws DBException
find in interface Tablefind in interface org.ojai.store.DocumentStorec - condition to check for the queryTableNotFoundException - when the table from which to get any row
does not existDBExceptionpublic org.ojai.DocumentStream find(org.ojai.store.QueryCondition c,
String... paths)
throws DBException
find in interface Tablefind in interface org.ojai.store.DocumentStorec - condition to check for the querypaths - list of fields that should be returned in the read documentTableNotFoundException - when the table from which to get any row
does not existDBExceptionpublic org.ojai.DocumentStream find(org.ojai.store.QueryCondition c,
org.ojai.FieldPath... fields)
throws DBException
find in interface Tablefind in interface org.ojai.store.DocumentStoreDBExceptionpublic void insertOrReplace(org.ojai.Document r)
throws DBException
insertOrReplace in interface TableinsertOrReplace in interface org.ojai.store.DocumentStorer - JSON record as the new value for the given rowTableNotFoundException - when table does not exist to add this rowAccessDeniedException - user credentials mismatchReadOnlyException - when the table is not accepting writesOpNotPermittedException - server returned EPERMDBExceptionpublic void insertOrReplace(String id, org.ojai.Document r) throws DBException
insertOrReplace in interface TableDBExceptionpublic void insertOrReplace(ByteBuffer id, org.ojai.Document r) throws DBException
insertOrReplace in interface TableDBExceptionpublic void insertOrReplace(org.ojai.Value id,
org.ojai.Document r)
throws DBException
insertOrReplace in interface org.ojai.store.DocumentStoreDBExceptionpublic void insertOrReplace(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
throws DBException
insertOrReplace in interface TableinsertOrReplace in interface org.ojai.store.DocumentStoreDBExceptionpublic void insertOrReplace(org.ojai.Document r,
String fieldAsKey)
throws DBException
insertOrReplace in interface TableinsertOrReplace in interface org.ojai.store.DocumentStoreDBExceptionpublic void insertOrReplace(org.ojai.DocumentStream rs)
throws org.ojai.store.exceptions.MultiOpException
TableinsertOrReplace in interface TableinsertOrReplace in interface org.ojai.store.DocumentStorers - DocumentStreamorg.ojai.store.exceptions.MultiOpException - that has a list of write-failed documents and
their errorspublic void insertOrReplace(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
insertOrReplace in interface TableinsertOrReplace in interface org.ojai.store.DocumentStoreorg.ojai.store.exceptions.MultiOpExceptionpublic void insertOrReplace(org.ojai.DocumentStream rs,
String fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
insertOrReplace in interface TableinsertOrReplace in interface org.ojai.store.DocumentStoreorg.ojai.store.exceptions.MultiOpExceptionpublic void update(String id, org.ojai.store.DocumentMutation m) throws DBException
update in interface Tableid - row idm - mutation object specifying the operation on fields of a rowTableNotFoundException - when the table does not exist to add this rowAccessDeniedException - user credentials mismatchReadOnlyException - when the table is not accepting writesDBExceptionpublic void update(ByteBuffer id, org.ojai.store.DocumentMutation m) throws DBException
update in interface TableDBExceptionpublic void update(org.ojai.Value id,
org.ojai.store.DocumentMutation m)
throws DBException
update in interface org.ojai.store.DocumentStoreDBExceptionpublic void delete(String id) throws DBException
delete in interface Tableid - row idTableNotFoundException - when a table does not exist to add this rowAccessDeniedException - on a user credentials mismatchReadOnlyException - when a table is not accepting writesDBExceptionpublic void delete(ByteBuffer id) throws DBException
delete in interface TableDBExceptionpublic void delete(org.ojai.Value id)
throws DBException
delete in interface org.ojai.store.DocumentStoreDBExceptionpublic void delete(org.ojai.Document r)
throws DBException
delete in interface Tabledelete in interface org.ojai.store.DocumentStoreDBExceptionpublic void delete(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
throws DBException
delete in interface Tabledelete in interface org.ojai.store.DocumentStoreDBExceptionpublic void delete(org.ojai.Document r,
String fieldAsKey)
throws DBException
delete in interface Tabledelete in interface org.ojai.store.DocumentStoreDBExceptionpublic void delete(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
public void delete(org.ojai.DocumentStream rs)
throws org.ojai.store.exceptions.MultiOpException
Tablepublic void delete(org.ojai.DocumentStream rs,
String fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
public void increment(String id, String field, long inc) throws DBException
increment in interface TableDBExceptionpublic void increment(ByteBuffer id, String field, long inc) throws DBException
increment in interface TableDBExceptionpublic void increment(org.ojai.Value id,
String field,
long inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreDBExceptionpublic void increment(String id, String field, float inc) throws DBException
increment in interface TableDBExceptionpublic void increment(ByteBuffer id, String field, float inc) throws DBException
increment in interface TableDBExceptionpublic void increment(org.ojai.Value id,
String field,
float inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreDBExceptionpublic void increment(String id, String field, double inc) throws DBException
increment in interface TableDBExceptionpublic void increment(ByteBuffer id, String field, double inc) throws DBException
increment in interface TableDBExceptionpublic void increment(org.ojai.Value id,
String field,
double inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreDBExceptionpublic void increment(String id, String field, BigDecimal inc) throws DBException
increment in interface TableDBExceptionpublic void increment(ByteBuffer id, String field, BigDecimal inc) throws DBException
increment in interface TableDBExceptionpublic void increment(org.ojai.Value id,
String field,
BigDecimal inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreDBExceptionpublic void increment(String id, String field, byte inc) throws DBException
Tableincrement in interface Tableid - document idfield - the field name in dot separated notationinc - increment to apply to a field. Can be positive or negative.DBExceptionpublic void increment(ByteBuffer id, String field, byte inc) throws DBException
increment in interface TableDBExceptionpublic void increment(org.ojai.Value id,
String field,
byte inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreDBExceptionpublic void increment(String id, String field, short inc) throws DBException
increment in interface TableDBExceptionpublic void increment(ByteBuffer id, String field, short inc) throws DBException
increment in interface TableDBExceptionpublic void increment(org.ojai.Value id,
String field,
short inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreDBExceptionpublic void increment(String id, String field, int inc) throws DBException
increment in interface TableDBExceptionpublic void increment(ByteBuffer id, String field, int inc) throws DBException
increment in interface TableDBExceptionpublic void increment(org.ojai.Value id,
String field,
int inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreDBExceptionpublic void insert(String id, org.ojai.Document r) throws DBException
Tableinsert in interface Tableid - to be used as the key for the documentr - JSON document as the new value for the given rowTableNotFoundException - when a table does not exist to add this rowAccessDeniedException - when user credentials are a mismatchReadOnlyException - when a table is not accepting writesOpNotPermittedException - when the server returned EPERMDBExceptionpublic void insert(ByteBuffer id, org.ojai.Document r) throws DBException
insert in interface TableDBExceptionpublic void insert(org.ojai.Value id,
org.ojai.Document r)
throws DBException
insert in interface org.ojai.store.DocumentStoreDBExceptionpublic void insert(org.ojai.Document r)
throws DBException
insert in interface Tableinsert in interface org.ojai.store.DocumentStoreDBExceptionpublic void insert(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
throws DBException
insert in interface Tableinsert in interface org.ojai.store.DocumentStoreDBExceptionpublic void insert(org.ojai.Document r,
String fieldAsKey)
throws DBException
insert in interface Tableinsert in interface org.ojai.store.DocumentStoreDBExceptionpublic void insert(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
public void insert(org.ojai.DocumentStream rs)
throws org.ojai.store.exceptions.MultiOpException
Tablepublic void insert(org.ojai.DocumentStream rs,
String fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
public void replace(String id, org.ojai.Document r) throws DBException
Tablereplace in interface Tableid - to be used as the key for the documentr - JSON document as the new value for the given rowTableNotFoundException - when a table does not exist to add this rowAccessDeniedException - when user credentials are a mismatchReadOnlyException - when a table is not accepting writesOpNotPermittedException - when the server returns EPERMDBExceptionpublic void replace(ByteBuffer id, org.ojai.Document r) throws DBException
replace in interface TableDBExceptionpublic void replace(org.ojai.Value id,
org.ojai.Document r)
throws DBException
replace in interface org.ojai.store.DocumentStoreDBExceptionpublic void replace(org.ojai.Document r)
throws DBException
replace in interface Tablereplace in interface org.ojai.store.DocumentStoreDBExceptionpublic void replace(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
throws DBException
replace in interface Tablereplace in interface org.ojai.store.DocumentStoreDBExceptionpublic void replace(org.ojai.Document r,
String fieldAsKey)
throws DBException
replace in interface Tablereplace in interface org.ojai.store.DocumentStoreDBExceptionpublic void replace(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
public void replace(org.ojai.DocumentStream rs)
throws org.ojai.store.exceptions.MultiOpException
Tablepublic void replace(org.ojai.DocumentStream rs,
String fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
public boolean checkAndMutate(String id, org.ojai.store.QueryCondition condition, org.ojai.store.DocumentMutation m) throws DBException
checkAndMutate in interface Tableid - row idcondition - the condition to evaluate on the rowm - the mutation to apply on the rowDBExceptionpublic boolean checkAndMutate(ByteBuffer id, org.ojai.store.QueryCondition condition, org.ojai.store.DocumentMutation m) throws DBException
checkAndMutate in interface TableDBExceptionpublic boolean checkAndMutate(org.ojai.Value id,
org.ojai.store.QueryCondition condition,
org.ojai.store.DocumentMutation m)
throws DBException
checkAndMutate in interface org.ojai.store.DocumentStoreDBExceptionpublic boolean checkAndDelete(String id, org.ojai.store.QueryCondition condition) throws DBException
checkAndDelete in interface Tableid - row idcondition - the condition to evaluate on the rowDBExceptionpublic boolean checkAndDelete(ByteBuffer id, org.ojai.store.QueryCondition condition) throws DBException
checkAndDelete in interface TableDBExceptionpublic boolean checkAndDelete(org.ojai.Value id,
org.ojai.store.QueryCondition condition)
throws DBException
checkAndDelete in interface org.ojai.store.DocumentStoreDBExceptionpublic boolean checkAndReplace(String id, org.ojai.store.QueryCondition condition, org.ojai.Document r) throws DBException
checkAndReplace in interface Tableid - row idcondition - the condition to evaluate on the rowr - record to replaceDBExceptionpublic boolean checkAndReplace(ByteBuffer id, org.ojai.store.QueryCondition condition, org.ojai.Document r) throws DBException
checkAndReplace in interface TableDBExceptionpublic boolean checkAndReplace(org.ojai.Value id,
org.ojai.store.QueryCondition condition,
org.ojai.Document r)
throws DBException
checkAndReplace in interface org.ojai.store.DocumentStoreDBExceptionpublic void close()
throws DBException
TableAutoCloseable.close() to avoid declaring a checked exception.close in interface Tableclose in interface AutoCloseableclose in interface org.ojai.store.DocumentStoreDBExceptionpublic TabletInfo getTabletInfo(String _id) throws DBException
getTabletInfo in interface Table_id - the document id for which the TabletInfo is requiredTabletInfo for the tablet of this table
to which the specified key belongsDBExceptionpublic TabletInfo getTabletInfo(ByteBuffer _id) throws DBException
getTabletInfo in interface Table_id - the document id for which the TabletInfo is requiredTabletInfo for the tablet of this table
to which the specified key belongsDBExceptionpublic TabletInfo getTabletInfo(org.ojai.Value _id) throws DBException
DBExceptionpublic TabletInfo[] getTabletInfos() throws DBException
getTabletInfos in interface TableTabletInfo for all current tablets of this tableDBExceptionpublic TabletInfo[] getTabletInfos(org.ojai.store.QueryCondition condition) throws DBException
getTabletInfos in interface TableTabletInfo for all current tablets of this table, which
has a start and end key matching the range specified by the
condition objectDBExceptionpublic boolean isReadOnly()
isReadOnly in interface org.ojai.store.DocumentStore@API.Internal
public org.ojai.DocumentStream segmentKeyScan()
throws DBException
DBExceptionpublic void updateSchema()
throws DBException
DBExceptionCopyright © 2016 Mapr Technologies, Inc.. All rights reserved.