@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 |
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,
Condition condition) |
boolean |
checkAndDelete(String id,
Condition 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,
Condition condition) |
boolean |
checkAndMutate(ByteBuffer id,
Condition condition,
Mutation m) |
boolean |
checkAndMutate(String id,
Condition condition,
Mutation m)
Atomically evaluates the condition on given row and if the
condition holds true for the row then mutation is applied on the row.
|
boolean |
checkAndMutate(org.ojai.Value id,
Condition condition,
Mutation m) |
boolean |
checkAndReplace(ByteBuffer id,
Condition condition,
org.ojai.Document r) |
boolean |
checkAndReplace(String id,
Condition 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,
Condition condition,
org.ojai.Document r) |
void |
close()
Override
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<? extends org.ojai.Document> rs)
Deletes a set of documents from the table represented by the document stream.
|
void |
delete(org.ojai.DocumentStream<? extends org.ojai.Document> rs,
org.ojai.FieldPath fieldAsKey) |
void |
delete(org.ojai.DocumentStream<? extends org.ojai.Document> 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<DBDocument> |
find()
Returns record stream for all the rows in the table
|
org.ojai.DocumentStream<DBDocument> |
find(Condition c)
Returns record stream for all the rows in the table that match the
condition.
|
org.ojai.DocumentStream<DBDocument> |
find(Condition c,
org.ojai.FieldPath... fields) |
org.ojai.DocumentStream<DBDocument> |
find(Condition c,
String... paths)
Returns record stream for all the rows in the table that match the
condition.
|
org.ojai.DocumentStream<DBDocument> |
find(org.ojai.FieldPath... fields) |
org.ojai.DocumentStream<DBDocument> |
find(String... paths)
Returns record stream for all the rows in the table.
|
DBDocument |
findById(ByteBuffer id) |
DBDocument |
findById(ByteBuffer id,
Condition c) |
DBDocument |
findById(ByteBuffer id,
Condition c,
org.ojai.FieldPath... fields) |
DBDocument |
findById(ByteBuffer id,
Condition c,
String... paths) |
DBDocument |
findById(ByteBuffer id,
org.ojai.FieldPath... fields) |
DBDocument |
findById(ByteBuffer id,
String... paths) |
void |
findById(OpListener listener,
ByteBuffer id) |
void |
findById(OpListener listener,
ByteBuffer id,
Condition c) |
void |
findById(OpListener listener,
ByteBuffer id,
Condition c,
org.ojai.FieldPath... fields) |
void |
findById(OpListener listener,
ByteBuffer id,
Condition c,
String... paths) |
void |
findById(OpListener listener,
ByteBuffer id,
org.ojai.FieldPath... fields) |
void |
findById(OpListener listener,
ByteBuffer id,
String... paths) |
void |
findById(OpListener listener,
String id)
Non-blocking read operations.
|
void |
findById(OpListener listener,
String id,
Condition c)
Non-blocking read operation that gets called back on the listener object
on success or failure.
|
void |
findById(OpListener listener,
String id,
Condition c,
org.ojai.FieldPath... fields) |
void |
findById(OpListener listener,
String id,
Condition c,
String... paths) |
void |
findById(OpListener listener,
String id,
org.ojai.FieldPath... fields) |
void |
findById(OpListener listener,
String id,
String... paths)
Non-blocking read operation which gets called back on the listener object
on success or failure.
|
void |
findById(OpListener listener,
org.ojai.Value id) |
void |
findById(OpListener listener,
org.ojai.Value id,
Condition c) |
void |
findById(OpListener listener,
org.ojai.Value id,
Condition c,
org.ojai.FieldPath... fields) |
void |
findById(OpListener listener,
org.ojai.Value id,
Condition c,
String... paths) |
void |
findById(OpListener listener,
org.ojai.Value id,
org.ojai.FieldPath... fields) |
void |
findById(OpListener listener,
org.ojai.Value id,
String... paths) |
DBDocument |
findById(String id)
Reads a single full record identified by the id.
|
DBDocument |
findById(String id,
Condition c)
Reads the row parts that match the condition and projects only the
field paths requested.
|
DBDocument |
findById(String id,
Condition c,
org.ojai.FieldPath... fields) |
DBDocument |
findById(String id,
Condition c,
String... paths) |
DBDocument |
findById(String id,
org.ojai.FieldPath... fields) |
DBDocument |
findById(String id,
String... paths)
Reads the row and projects of only the field paths requested.
|
DBDocument |
findById(org.ojai.Value id) |
DBDocument |
findById(org.ojai.Value id,
Condition c) |
DBDocument |
findById(org.ojai.Value id,
Condition c,
org.ojai.FieldPath... fields) |
DBDocument |
findById(org.ojai.Value id,
Condition c,
String... paths) |
DBDocument |
findById(org.ojai.Value id,
org.ojai.FieldPath... fields) |
DBDocument |
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(Condition 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<? extends org.ojai.Document> rs)
Inserts a set of documents represented by the document stream into the table.
|
void |
insert(org.ojai.DocumentStream<? extends org.ojai.Document> rs,
org.ojai.FieldPath fieldAsKey) |
void |
insert(org.ojai.DocumentStream<? extends org.ojai.Document> 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<? extends org.ojai.Document> rs)
Inserts a set of documents represented by the document stream into the table.
|
void |
insertOrReplace(org.ojai.DocumentStream<? extends org.ojai.Document> rs,
org.ojai.FieldPath fieldAsKey) |
void |
insertOrReplace(org.ojai.DocumentStream<? extends org.ojai.Document> rs,
String fieldAsKey)
Internally this API will get a bunch of records from the stream and
write it 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() |
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<? extends org.ojai.Document> rs)
Replaces a set of documents represented by the document stream into the table.
|
void |
replace(org.ojai.DocumentStream<? extends org.ojai.Document> rs,
org.ojai.FieldPath fieldAsKey) |
void |
replace(org.ojai.DocumentStream<? extends org.ojai.Document> 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) |
void |
setExcludeEmbeddedFamily(boolean v) |
Table |
setOption(Table.TableOption option,
boolean value) |
MapRDBTableImpl |
setPrivateOption(MapRDBTableImpl.TablePrivateOption option,
boolean value) |
Map<org.ojai.FieldPath,Integer> |
sortedByPath() |
void |
update(ByteBuffer id,
Mutation m) |
void |
update(String id,
Mutation m)
Applies a row mutation on the row identified by the row id.
|
void |
update(org.ojai.Value id,
Mutation m) |
public static final String PRESERVE_TS_STR
public static final String GET_DELETES_STR
public static final String EXCLUDE_EMBEDDEDFAMILY_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 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 TableDBException - if the flush failed or flush of any buffered
operation resulted in errorpublic DBDocument findById(String id) throws DBException
findById in interface Tableid - row keyTableNotFoundException - when table does not exist to get any rowDBExceptionpublic DBDocument findById(ByteBuffer id) throws DBException
findById in interface TableDBExceptionpublic DBDocument findById(org.ojai.Value id) throws DBException
findById in interface TableDBExceptionpublic DBDocument findById(String id, org.ojai.FieldPath... fields) throws DBException
findById in interface TableDBExceptionpublic DBDocument findById(String id, String... paths) throws DBException
TablefindById in interface Tableid - document idpaths - list of fields that should be returned in the read documentDBExceptionpublic DBDocument findById(ByteBuffer id, org.ojai.FieldPath... fields) throws DBException
findById in interface TableDBExceptionpublic DBDocument findById(ByteBuffer id, String... paths) throws DBException
findById in interface TableDBExceptionpublic DBDocument findById(org.ojai.Value id, org.ojai.FieldPath... fields) throws DBException
DBExceptionpublic DBDocument findById(org.ojai.Value id, String... paths) throws DBException
DBExceptionpublic DBDocument findById(String id, Condition c) throws DBException
TablefindById in interface Tableid - document idc - condition to check for the queryDBExceptionpublic DBDocument findById(ByteBuffer id, Condition c) throws DBException
findById in interface TableDBExceptionpublic DBDocument findById(org.ojai.Value id, Condition c) throws DBException
DBExceptionpublic DBDocument findById(String id, Condition c, org.ojai.FieldPath... fields) throws DBException
findById in interface TableDBExceptionpublic DBDocument findById(String id, Condition c, String... paths) throws DBException
findById in interface TableDBExceptionpublic DBDocument findById(ByteBuffer id, Condition c, org.ojai.FieldPath... fields) throws DBException
findById in interface TableDBExceptionpublic DBDocument findById(ByteBuffer id, Condition c, String... paths) throws DBException
findById in interface TableDBExceptionpublic DBDocument findById(org.ojai.Value id, Condition c, String... paths) throws DBException
DBExceptionpublic DBDocument findById(org.ojai.Value id, Condition c, org.ojai.FieldPath... fields) throws DBException
DBExceptionpublic void findById(OpListener listener, String id)
public void findById(OpListener listener, ByteBuffer id)
public void findById(OpListener listener, org.ojai.Value id)
public void findById(OpListener listener, String id, org.ojai.FieldPath... fields)
public void findById(OpListener listener, String id, String... paths)
Tablepublic void findById(OpListener listener, ByteBuffer id, org.ojai.FieldPath... fields)
public void findById(OpListener listener, ByteBuffer id, String... paths)
public void findById(OpListener listener, org.ojai.Value id, String... paths)
public void findById(OpListener listener, org.ojai.Value id, org.ojai.FieldPath... fields)
public void findById(OpListener listener, String id, Condition c)
Tablepublic void findById(OpListener listener, ByteBuffer id, Condition c)
public void findById(OpListener listener, org.ojai.Value id, Condition c)
public void findById(OpListener listener, String id, Condition c, org.ojai.FieldPath... fields)
public void findById(OpListener listener, String id, Condition c, String... paths)
public void findById(OpListener listener, ByteBuffer id, Condition c, org.ojai.FieldPath... fields)
public void findById(OpListener listener, ByteBuffer id, Condition c, String... paths)
public void findById(OpListener listener, org.ojai.Value id, Condition c, org.ojai.FieldPath... fields)
public void findById(OpListener listener, org.ojai.Value id, Condition c, String... paths)
public org.ojai.DocumentStream<DBDocument> find() throws DBException
find in interface TableTableNotFoundException - when table does not exist to get any rowDBExceptionpublic org.ojai.DocumentStream<DBDocument> find(String... paths) throws DBException
find in interface Tablepaths - list of fields that should be returned in the read documentTableNotFoundException - when table does not exist to get any rowDBExceptionpublic org.ojai.DocumentStream<DBDocument> find(org.ojai.FieldPath... fields) throws DBException
find in interface TableDBExceptionpublic org.ojai.DocumentStream<DBDocument> find(Condition c) throws DBException
find in interface Tablec - condition to check for the queryTableNotFoundException - when table does not exist to get any rowDBExceptionpublic org.ojai.DocumentStream<DBDocument> find(Condition c, String... paths) throws DBException
find in interface Tablec - condition to check for the querypaths - list of fields that should be returned in the read documentTableNotFoundException - when table does not exist to get any rowDBExceptionpublic org.ojai.DocumentStream<DBDocument> find(Condition c, org.ojai.FieldPath... fields) throws DBException
find in interface TableDBExceptionpublic void insertOrReplace(org.ojai.Document r)
throws DBException
insertOrReplace in interface Tabler - JSON record as the new value for the given rowTableNotFoundException - when table does not exist to add this rowAccessDeniedException - user credentials mismatchReadOnlyException - when table is not accepting writesOpNotPermittedException - aerver 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
DBExceptionpublic void insertOrReplace(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
throws DBException
insertOrReplace in interface TableDBExceptionpublic void insertOrReplace(org.ojai.Document r,
String fieldAsKey)
throws DBException
insertOrReplace in interface TableDBExceptionpublic void insertOrReplace(org.ojai.DocumentStream<? extends org.ojai.Document> rs)
throws MultiOpException
TableinsertOrReplace in interface Tablers - document streamMultiOpException - which has a list of write-failed documents and
their errors.public void insertOrReplace(org.ojai.DocumentStream<? extends org.ojai.Document> rs,
org.ojai.FieldPath fieldAsKey)
throws MultiOpException
insertOrReplace in interface TableMultiOpExceptionpublic void insertOrReplace(org.ojai.DocumentStream<? extends org.ojai.Document> rs,
String fieldAsKey)
throws MultiOpException
insertOrReplace in interface TableMultiOpExceptionpublic void update(String id, Mutation 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, Mutation m) throws DBException
update in interface TableDBExceptionpublic void update(org.ojai.Value id,
Mutation m)
throws DBException
DBExceptionpublic 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 table is not accepting writesDBExceptionpublic void delete(ByteBuffer id) throws DBException
delete in interface TableDBExceptionpublic void delete(org.ojai.Value id)
throws DBException
DBExceptionpublic void delete(org.ojai.Document r)
throws DBException
delete in interface TableDBExceptionpublic void delete(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
throws DBException
delete in interface TableDBExceptionpublic void delete(org.ojai.Document r,
String fieldAsKey)
throws DBException
delete in interface TableDBExceptionpublic void delete(org.ojai.DocumentStream<? extends org.ojai.Document> rs,
org.ojai.FieldPath fieldAsKey)
throws MultiOpException
delete in interface TableMultiOpExceptionpublic void delete(org.ojai.DocumentStream<? extends org.ojai.Document> rs)
throws MultiOpException
Tabledelete in interface Tablers - document streamMultiOpException - which has a list of write-failed documents and
their errorspublic void delete(org.ojai.DocumentStream<? extends org.ojai.Document> rs,
String fieldAsKey)
throws MultiOpException
delete in interface TableMultiOpExceptionpublic 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
DBExceptionpublic 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
DBExceptionpublic 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
DBExceptionpublic 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
DBExceptionpublic 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 negativeDBExceptionpublic 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
DBExceptionpublic 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
DBExceptionpublic 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
DBExceptionpublic 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 EPERMDocumentExistsException - when a document with id already exists in tableDBExceptionpublic 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
DBExceptionpublic void insert(org.ojai.Document r)
throws DBException
insert in interface TableDBExceptionpublic void insert(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
throws DBException
insert in interface TableDBExceptionpublic void insert(org.ojai.Document r,
String fieldAsKey)
throws DBException
insert in interface TableDBExceptionpublic void insert(org.ojai.DocumentStream<? extends org.ojai.Document> rs,
org.ojai.FieldPath fieldAsKey)
throws MultiOpException
insert in interface TableMultiOpExceptionpublic void insert(org.ojai.DocumentStream<? extends org.ojai.Document> rs)
throws MultiOpException
Tableinsert in interface Tablers - document streamMultiOpException - which has a list of write-failed documents and
their errorspublic void insert(org.ojai.DocumentStream<? extends org.ojai.Document> rs,
String fieldAsKey)
throws MultiOpException
insert in interface TableMultiOpExceptionpublic 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 which to add this rowAccessDeniedException - when user credentials are a mismatchReadOnlyException - when a table is not accepting writesOpNotPermittedException - when the server returns EPERMDocumentNotFoundException - when a document with the id does not exist in tableDBExceptionpublic 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
DBExceptionpublic void replace(org.ojai.Document r)
throws DBException
replace in interface TableDBExceptionpublic void replace(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
throws DBException
replace in interface TableDBExceptionpublic void replace(org.ojai.Document r,
String fieldAsKey)
throws DBException
replace in interface TableDBExceptionpublic void replace(org.ojai.DocumentStream<? extends org.ojai.Document> rs,
org.ojai.FieldPath fieldAsKey)
throws MultiOpException
replace in interface TableMultiOpExceptionpublic void replace(org.ojai.DocumentStream<? extends org.ojai.Document> rs)
throws MultiOpException
Tablereplace in interface Tablers - document streamMultiOpException - which has list of write-failed documents and
their errorspublic void replace(org.ojai.DocumentStream<? extends org.ojai.Document> rs,
String fieldAsKey)
throws MultiOpException
replace in interface TableMultiOpExceptionpublic boolean checkAndMutate(String id, Condition condition, Mutation m) throws DBException
checkAndMutate in interface Tableid - row idcondition - condition to evaluate on the rowm - mutation to apply on the rowDBExceptionpublic boolean checkAndMutate(ByteBuffer id, Condition condition, Mutation m) throws DBException
checkAndMutate in interface TableDBExceptionpublic boolean checkAndMutate(org.ojai.Value id,
Condition condition,
Mutation m)
throws DBException
DBExceptionpublic boolean checkAndDelete(String id, Condition condition) throws DBException
checkAndDelete in interface Tableid - row idcondition - condition to evaluate on the rowDBExceptionpublic boolean checkAndDelete(ByteBuffer id, Condition condition) throws DBException
checkAndDelete in interface TableDBExceptionpublic boolean checkAndDelete(org.ojai.Value id,
Condition condition)
throws DBException
DBExceptionpublic boolean checkAndReplace(String id, Condition condition, org.ojai.Document r) throws DBException
checkAndReplace in interface Tableid - row idcondition - condition to evaluate on the rowr - record to replaceDBExceptionpublic boolean checkAndReplace(ByteBuffer id, Condition condition, org.ojai.Document r) throws DBException
checkAndReplace in interface TableDBExceptionpublic boolean checkAndReplace(org.ojai.Value id,
Condition condition,
org.ojai.Document r)
throws DBException
DBExceptionpublic void close()
throws DBException
TableAutoCloseable.close() to avoid declaring a checked exception.close in interface Tableclose in interface AutoCloseableDBExceptionpublic 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(Condition condition) throws DBException
getTabletInfos in interface TableTabletInfo for all current tablets of this table that
has a start and end key matching the range specified by the
condition objectDBExceptionCopyright © 2015 Mapr Technologies, Inc.. All rights reserved.