DocumentStore interface.@API.Public
@Deprecated
public interface Table
extends org.ojai.store.DocumentStore, org.ojai.JsonString
| Modifier and Type | Interface and Description |
|---|---|
static class |
Table.TableOption
Deprecated.
Following are different table options:
EXCLUDEID: If this option is set to true then rowkey
(field "_id") won't be returned in the result of a find or findById operation. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAndDelete(java.nio.ByteBuffer id,
org.ojai.store.QueryCondition condition)
Deprecated.
|
boolean |
checkAndDelete(java.lang.String id,
org.ojai.store.QueryCondition condition)
Deprecated.
Atomically evaluates the condition on given row and if the
condition holds true for the row then it is atomically deleted.
|
boolean |
checkAndMutate(java.nio.ByteBuffer id,
org.ojai.store.QueryCondition condition,
org.ojai.store.DocumentMutation m)
Deprecated.
|
boolean |
checkAndMutate(java.lang.String id,
org.ojai.store.QueryCondition condition,
org.ojai.store.DocumentMutation m)
Deprecated.
Atomically evaluates the condition on a given row and if the
condition holds true for the row then a mutation is applied on the row.
|
boolean |
checkAndReplace(java.nio.ByteBuffer id,
org.ojai.store.QueryCondition condition,
org.ojai.Document r)
Deprecated.
|
boolean |
checkAndReplace(java.lang.String id,
org.ojai.store.QueryCondition condition,
org.ojai.Document r)
Deprecated.
Atomically evaluates the condition on the given row and if the
condition holds true for the row then it atomically replaces the row
with the given document.
|
void |
close()
Deprecated.
Overrides
AutoCloseable.close() to avoid declaring a checked exception. |
void |
delete(java.nio.ByteBuffer id)
Deprecated.
|
void |
delete(org.ojai.Document r)
Deprecated.
|
void |
delete(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
Deprecated.
|
void |
delete(org.ojai.DocumentStream rs)
Deprecated.
Deletes a set of documents from the table represented by the DocumentStream.
|
void |
delete(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey)
Deprecated.
|
void |
delete(org.ojai.DocumentStream rs,
java.lang.String fieldAsKey)
Deprecated.
|
void |
delete(org.ojai.Document r,
java.lang.String fieldAsKey)
Deprecated.
|
void |
delete(java.lang.String id)
Deprecated.
Deletes a row with the given rowkey.
|
org.ojai.DocumentStream |
find()
Deprecated.
Returns a DocumentStream for all the rows in the table.
|
org.ojai.DocumentStream |
find(org.ojai.FieldPath... paths)
Deprecated.
|
org.ojai.DocumentStream |
find(org.ojai.store.QueryCondition c)
Deprecated.
Returns a DocumentStream for all the rows in the table that match the
condition.
|
org.ojai.DocumentStream |
find(org.ojai.store.QueryCondition c,
org.ojai.FieldPath... paths)
Deprecated.
|
org.ojai.DocumentStream |
find(org.ojai.store.QueryCondition c,
java.lang.String... paths)
Deprecated.
Returns a document reader for all the rows in the table that match the
condition.
|
org.ojai.DocumentStream |
find(java.lang.String... paths)
Deprecated.
Returns a DocumentStream for all the rows in the table.
|
org.ojai.Document |
findById(java.nio.ByteBuffer id)
Deprecated.
|
org.ojai.Document |
findById(java.nio.ByteBuffer id,
org.ojai.FieldPath... paths)
Deprecated.
|
org.ojai.Document |
findById(java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c)
Deprecated.
|
org.ojai.Document |
findById(java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... paths)
Deprecated.
|
org.ojai.Document |
findById(java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c,
java.lang.String... paths)
Deprecated.
|
org.ojai.Document |
findById(java.nio.ByteBuffer id,
java.lang.String... paths)
Deprecated.
|
void |
findById(org.ojai.store.OpListener listener,
java.nio.ByteBuffer id)
Deprecated.
|
void |
findById(org.ojai.store.OpListener listener,
java.nio.ByteBuffer id,
org.ojai.FieldPath... paths)
Deprecated.
|
void |
findById(org.ojai.store.OpListener listener,
java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c)
Deprecated.
|
void |
findById(org.ojai.store.OpListener listener,
java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... paths)
Deprecated.
|
void |
findById(org.ojai.store.OpListener listener,
java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c,
java.lang.String... paths)
Deprecated.
|
void |
findById(org.ojai.store.OpListener listener,
java.nio.ByteBuffer id,
java.lang.String... paths)
Deprecated.
|
void |
findById(org.ojai.store.OpListener listener,
java.lang.String id)
Deprecated.
Non-blocking read operation that gets called back on the listener object
on success (with the document) or failure (with the error).
|
void |
findById(org.ojai.store.OpListener listener,
java.lang.String id,
org.ojai.FieldPath... paths)
Deprecated.
|
void |
findById(org.ojai.store.OpListener listener,
java.lang.String id,
org.ojai.store.QueryCondition c)
Deprecated.
Non-blocking read operation that gets called back on the listener object
on success or failure.
|
void |
findById(org.ojai.store.OpListener listener,
java.lang.String id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... paths)
Deprecated.
|
void |
findById(org.ojai.store.OpListener listener,
java.lang.String id,
org.ojai.store.QueryCondition c,
java.lang.String... paths)
Deprecated.
|
void |
findById(org.ojai.store.OpListener listener,
java.lang.String id,
java.lang.String... paths)
Deprecated.
Non-blocking read operation which gets called back on the listener object
on success or failure.
|
org.ojai.Document |
findById(java.lang.String id)
Deprecated.
Reads the entire document for a given key.
|
org.ojai.Document |
findById(java.lang.String id,
org.ojai.FieldPath... paths)
Deprecated.
|
org.ojai.Document |
findById(java.lang.String id,
org.ojai.store.QueryCondition c)
Deprecated.
Reads the row parts that match the condition and projects only the
field paths requested.
|
org.ojai.Document |
findById(java.lang.String id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... paths)
Deprecated.
|
org.ojai.Document |
findById(java.lang.String id,
org.ojai.store.QueryCondition c,
java.lang.String... paths)
Deprecated.
|
org.ojai.Document |
findById(java.lang.String id,
java.lang.String... paths)
Deprecated.
Reads the row and projects only the field paths requested.
|
org.ojai.Document |
findById(org.ojai.Value id)
Deprecated.
|
void |
flush()
Deprecated.
Flushes all the buffered update operations on the client for this table.
|
MetaTable |
getMetaTable()
Deprecated.
|
java.lang.String |
getName()
Deprecated.
Returns just the name of the table (not the full path).
|
org.ojai.Value |
getOption(Table.TableOption option)
Deprecated.
|
org.apache.hadoop.fs.Path |
getPath()
Deprecated.
Returns the full path of the table.
|
TableDescriptor |
getTableDescriptor()
Deprecated.
|
TabletInfo |
getTabletInfo(java.nio.ByteBuffer _id)
Deprecated.
|
TabletInfo |
getTabletInfo(java.lang.String _id)
Deprecated.
|
TabletInfo[] |
getTabletInfos()
Deprecated.
|
TabletInfo[] |
getTabletInfos(boolean needSpaceUsage,
boolean prefetchTabletMap)
Deprecated.
|
TabletInfo[] |
getTabletInfos(org.ojai.store.QueryCondition c)
Deprecated.
Use
#getScanRanges(QueryCondition). |
TabletInfo[] |
getTabletInfos(org.ojai.store.QueryCondition c,
boolean needSpaceUsage,
boolean prefetchTabletMap)
Deprecated.
Use
#getScanRanges(QueryCondition). |
void |
increment(java.nio.ByteBuffer id,
java.lang.String field,
java.math.BigDecimal inc)
Deprecated.
|
void |
increment(java.nio.ByteBuffer id,
java.lang.String field,
byte inc)
Deprecated.
|
void |
increment(java.nio.ByteBuffer id,
java.lang.String field,
double inc)
Deprecated.
|
void |
increment(java.nio.ByteBuffer id,
java.lang.String field,
float inc)
Deprecated.
|
void |
increment(java.nio.ByteBuffer id,
java.lang.String field,
int inc)
Deprecated.
|
void |
increment(java.nio.ByteBuffer id,
java.lang.String field,
long inc)
Deprecated.
|
void |
increment(java.nio.ByteBuffer id,
java.lang.String field,
short inc)
Deprecated.
|
void |
increment(java.lang.String id,
java.lang.String field,
java.math.BigDecimal inc)
Deprecated.
|
void |
increment(java.lang.String id,
java.lang.String field,
byte inc)
Deprecated.
Atomically applies an increment to a given field (in dot-separated notation)
of the given row id.
|
void |
increment(java.lang.String id,
java.lang.String field,
double inc)
Deprecated.
|
void |
increment(java.lang.String id,
java.lang.String field,
float inc)
Deprecated.
|
void |
increment(java.lang.String id,
java.lang.String field,
int inc)
Deprecated.
|
void |
increment(java.lang.String id,
java.lang.String field,
long inc)
Deprecated.
|
void |
increment(java.lang.String id,
java.lang.String field,
short inc)
Deprecated.
|
void |
insert(java.nio.ByteBuffer id,
org.ojai.Document r)
Deprecated.
|
void |
insert(org.ojai.Document r)
Deprecated.
|
void |
insert(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
Deprecated.
|
void |
insert(org.ojai.DocumentStream rs)
Deprecated.
Inserts a set of documents represented by the DocumentStream into the table.
|
void |
insert(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey)
Deprecated.
|
void |
insert(org.ojai.DocumentStream rs,
java.lang.String fieldAsKey)
Deprecated.
|
void |
insert(org.ojai.Document r,
java.lang.String fieldAsKey)
Deprecated.
|
void |
insert(java.lang.String id,
org.ojai.Document r)
Deprecated.
Inserts a row with the given rowkey.
|
void |
insertOrReplace(java.nio.ByteBuffer id,
org.ojai.Document r)
Deprecated.
|
void |
insertOrReplace(org.ojai.Document r)
Deprecated.
Inserts a new document in the table.
|
void |
insertOrReplace(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
Deprecated.
|
void |
insertOrReplace(org.ojai.DocumentStream rs)
Deprecated.
Inserts a set of documents represented by the DocumentStream into the table.
|
void |
insertOrReplace(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey)
Deprecated.
|
void |
insertOrReplace(org.ojai.DocumentStream rs,
java.lang.String fieldAsKey)
Deprecated.
|
void |
insertOrReplace(org.ojai.Document r,
java.lang.String fieldAsKey)
Deprecated.
|
void |
insertOrReplace(java.lang.String id,
org.ojai.Document r)
Deprecated.
|
void |
replace(java.nio.ByteBuffer id,
org.ojai.Document r)
Deprecated.
|
void |
replace(org.ojai.Document r)
Deprecated.
|
void |
replace(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
Deprecated.
|
void |
replace(org.ojai.DocumentStream rs)
Deprecated.
Replaces a set of documents represented by the DocumentStream into the table.
|
void |
replace(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey)
Deprecated.
|
void |
replace(org.ojai.DocumentStream rs,
java.lang.String fieldAsKey)
Deprecated.
|
void |
replace(org.ojai.Document r,
java.lang.String fieldAsKey)
Deprecated.
|
void |
replace(java.lang.String id,
org.ojai.Document r)
Deprecated.
Replaces a document in the table.
|
Table |
setOption(Table.TableOption option,
boolean value)
Deprecated.
|
void |
update(java.nio.ByteBuffer id,
org.ojai.store.DocumentMutation m)
Deprecated.
|
void |
update(java.lang.String id,
org.ojai.store.DocumentMutation m)
Deprecated.
Applies a row mutation on the row identified by the row id.
|
beginTrackingWrites, beginTrackingWrites, checkAndDelete, checkAndMutate, checkAndReplace, checkAndUpdate, checkAndUpdate, clearTrackedWrites, delete, endTrackingWrites, find, findById, findById, findById, findById, findById, findQuery, findQuery, increment, increment, increment, increment, increment, increment, increment, insert, insertOrReplace, isReadOnly, replace, updatejava.lang.String getName()
org.apache.hadoop.fs.Path getPath()
TableDescriptor getTableDescriptor()
Table setOption(Table.TableOption option, boolean value)
org.ojai.Value getOption(Table.TableOption option)
void flush()
throws DBException
flush in interface org.ojai.store.DocumentStoreDBExceptionorg.ojai.Document findById(java.lang.String id)
throws DBException
findById in interface org.ojai.store.DocumentStoreid - document idDBExceptionorg.ojai.Document findById(java.nio.ByteBuffer id)
throws DBException
DBExceptionorg.ojai.Document findById(org.ojai.Value id)
throws DBException
findById in interface org.ojai.store.DocumentStoreDBExceptionorg.ojai.Document findById(java.lang.String id,
java.lang.String... paths)
throws DBException
findById in interface org.ojai.store.DocumentStoreid - document idpaths - list of fields that should be returned in the read documentDBExceptionorg.ojai.Document findById(java.lang.String id,
org.ojai.FieldPath... paths)
throws DBException
findById in interface org.ojai.store.DocumentStoreDBExceptionorg.ojai.Document findById(java.nio.ByteBuffer id,
java.lang.String... paths)
throws DBException
DBExceptionorg.ojai.Document findById(java.nio.ByteBuffer id,
org.ojai.FieldPath... paths)
throws DBException
DBExceptionorg.ojai.Document findById(java.lang.String id,
org.ojai.store.QueryCondition c)
throws DBException
findById in interface org.ojai.store.DocumentStoreid - document idpaths - list of fields that should be returned in the read documentc - condition to check for the queryDBExceptionorg.ojai.Document findById(java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c)
throws DBException
DBExceptionorg.ojai.Document findById(java.lang.String id,
org.ojai.store.QueryCondition c,
java.lang.String... paths)
throws DBException
findById in interface org.ojai.store.DocumentStoreDBExceptionorg.ojai.Document findById(java.lang.String id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... paths)
throws DBException
findById in interface org.ojai.store.DocumentStoreDBExceptionorg.ojai.Document findById(java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c,
java.lang.String... paths)
throws DBException
DBExceptionorg.ojai.Document findById(java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... paths)
throws DBException
DBExceptionvoid findById(org.ojai.store.OpListener listener,
java.lang.String id)
listener - object to be used as the callbackid - document idvoid findById(org.ojai.store.OpListener listener,
java.nio.ByteBuffer id)
void findById(org.ojai.store.OpListener listener,
java.lang.String id,
java.lang.String... paths)
listener - object to be used as the callbackid - document idpaths - list of fields that should be returned in the read documentvoid findById(org.ojai.store.OpListener listener,
java.lang.String id,
org.ojai.FieldPath... paths)
void findById(org.ojai.store.OpListener listener,
java.nio.ByteBuffer id,
java.lang.String... paths)
void findById(org.ojai.store.OpListener listener,
java.nio.ByteBuffer id,
org.ojai.FieldPath... paths)
void findById(org.ojai.store.OpListener listener,
java.lang.String id,
org.ojai.store.QueryCondition c)
listener - object to be used as the callbackid - document idc - condition to check for the querypaths - list of fields that should be returned in the read documentvoid findById(org.ojai.store.OpListener listener,
java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c)
void findById(org.ojai.store.OpListener listener,
java.lang.String id,
org.ojai.store.QueryCondition c,
java.lang.String... paths)
void findById(org.ojai.store.OpListener listener,
java.lang.String id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... paths)
void findById(org.ojai.store.OpListener listener,
java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c,
java.lang.String... paths)
void findById(org.ojai.store.OpListener listener,
java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c,
org.ojai.FieldPath... paths)
org.ojai.DocumentStream find()
throws DBException
find in interface org.ojai.store.DocumentStoreDBExceptionorg.ojai.DocumentStream find(java.lang.String... paths)
throws DBException
find in interface org.ojai.store.DocumentStorepaths - list of fields that should be returned in the read documentDBExceptionorg.ojai.DocumentStream find(org.ojai.FieldPath... paths)
throws DBException
find in interface org.ojai.store.DocumentStoreDBExceptionorg.ojai.DocumentStream find(org.ojai.store.QueryCondition c)
throws DBException
find in interface org.ojai.store.DocumentStorec - condition to check for the queryTableNotFoundException - when the table from which to get any row
does not existDBExceptionorg.ojai.DocumentStream find(org.ojai.store.QueryCondition c,
java.lang.String... paths)
throws DBException
find in interface org.ojai.store.DocumentStorec - condition to check for the querypaths - list of fields that should be returned in the read documentDBExceptionorg.ojai.DocumentStream find(org.ojai.store.QueryCondition c,
org.ojai.FieldPath... paths)
throws DBException
find in interface org.ojai.store.DocumentStoreDBExceptionvoid insertOrReplace(org.ojai.Document r)
throws DBException
insertOrReplace in interface org.ojai.store.DocumentStorer - JSON document as the new value for the given rowid - to be used as the key for the documentfieldAsKey - document's field to be used as the key when an id is not
passed in and the document doesn't have an "_id" fieldDBExceptionvoid insertOrReplace(java.lang.String id,
org.ojai.Document r)
throws DBException
insertOrReplace in interface org.ojai.store.DocumentStoreDBExceptionvoid insertOrReplace(java.nio.ByteBuffer id,
org.ojai.Document r)
throws DBException
DBExceptionvoid insertOrReplace(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
throws DBException
insertOrReplace in interface org.ojai.store.DocumentStoreDBExceptionvoid insertOrReplace(org.ojai.Document r,
java.lang.String fieldAsKey)
throws DBException
insertOrReplace in interface org.ojai.store.DocumentStoreDBExceptionvoid insertOrReplace(org.ojai.DocumentStream rs)
throws org.ojai.store.exceptions.MultiOpException
insertOrReplace in interface org.ojai.store.DocumentStorers - DocumentStreamfieldAsKey - field from each document whose value is to be used as
the document key for insertionorg.ojai.store.exceptions.MultiOpException - that has a list of write-failed documents and
their errorsvoid insertOrReplace(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
insertOrReplace in interface org.ojai.store.DocumentStoreorg.ojai.store.exceptions.MultiOpExceptionvoid insertOrReplace(org.ojai.DocumentStream rs,
java.lang.String fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
insertOrReplace in interface org.ojai.store.DocumentStoreorg.ojai.store.exceptions.MultiOpExceptionvoid update(java.lang.String id,
org.ojai.store.DocumentMutation m)
throws DBException
update in interface org.ojai.store.DocumentStoreid - document idm - mutation object specifying the operation on paths of a rowDBExceptionvoid update(java.nio.ByteBuffer id,
org.ojai.store.DocumentMutation m)
throws DBException
DBExceptionvoid delete(java.lang.String id)
throws DBException
delete in interface org.ojai.store.DocumentStoreid - document idr - JSON document to be deletedfieldAsKey - document's field to be used as the key when an id is not
passed in and a document doesn't have an "_id" fieldDBExceptionvoid delete(java.nio.ByteBuffer id)
throws DBException
DBExceptionvoid delete(org.ojai.Document r)
throws DBException
delete in interface org.ojai.store.DocumentStoreDBExceptionvoid delete(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
throws DBException
delete in interface org.ojai.store.DocumentStoreDBExceptionvoid delete(org.ojai.Document r,
java.lang.String fieldAsKey)
throws DBException
delete in interface org.ojai.store.DocumentStoreDBExceptionvoid delete(org.ojai.DocumentStream rs)
throws org.ojai.store.exceptions.MultiOpException
delete in interface org.ojai.store.DocumentStorers - DocumentStreamfieldAsKey - a field from each document whose value is to be used as
the document key for deletionorg.ojai.store.exceptions.MultiOpException - that has a list of write-failed documents and
their errorsvoid delete(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
delete in interface org.ojai.store.DocumentStoreorg.ojai.store.exceptions.MultiOpExceptionvoid delete(org.ojai.DocumentStream rs,
java.lang.String fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
delete in interface org.ojai.store.DocumentStoreorg.ojai.store.exceptions.MultiOpExceptionvoid insert(java.lang.String id,
org.ojai.Document r)
throws DBException
insert in interface org.ojai.store.DocumentStorer - JSON document as the new value for the given rowid - to be used as the key for the documentfieldAsKey - document's field to be used as the key when the id is not
passed in and document doesn't have an "_id" fieldTableNotFoundException - 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 EPERMorg.ojai.store.exceptions.DocumentExistsException - when a document with id already exists in tableDBExceptionvoid insert(java.nio.ByteBuffer id,
org.ojai.Document r)
throws DBException
DBExceptionvoid insert(org.ojai.Document r)
throws DBException
insert in interface org.ojai.store.DocumentStoreDBExceptionvoid insert(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
throws DBException
insert in interface org.ojai.store.DocumentStoreDBExceptionvoid insert(org.ojai.Document r,
java.lang.String fieldAsKey)
throws DBException
insert in interface org.ojai.store.DocumentStoreDBExceptionvoid insert(org.ojai.DocumentStream rs)
throws org.ojai.store.exceptions.MultiOpException
insert in interface org.ojai.store.DocumentStorers - DocumentStreamfieldAsKey - a field from each document whose value is to be used as
the document key for deletionorg.ojai.store.exceptions.MultiOpException - that has a list of write-failed documents and
their errorsvoid insert(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
insert in interface org.ojai.store.DocumentStoreorg.ojai.store.exceptions.MultiOpExceptionvoid insert(org.ojai.DocumentStream rs,
java.lang.String fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
insert in interface org.ojai.store.DocumentStoreorg.ojai.store.exceptions.MultiOpExceptionvoid replace(java.lang.String id,
org.ojai.Document r)
throws DBException
replace in interface org.ojai.store.DocumentStorer - JSON document as the new value for the given rowid - to be used as the key for the documentfieldAsKey - document's field to be used as the key when an id is not
passed in and the document doesn't have an "_id" fieldTableNotFoundException - 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 EPERMorg.ojai.store.exceptions.DocumentNotFoundException - when a document with the id does not exist in tableDBExceptionvoid replace(java.nio.ByteBuffer id,
org.ojai.Document r)
throws DBException
DBExceptionvoid replace(org.ojai.Document r)
throws DBException
replace in interface org.ojai.store.DocumentStoreDBExceptionvoid replace(org.ojai.Document r,
org.ojai.FieldPath fieldAsKey)
throws DBException
replace in interface org.ojai.store.DocumentStoreDBExceptionvoid replace(org.ojai.Document r,
java.lang.String fieldAsKey)
throws DBException
replace in interface org.ojai.store.DocumentStoreDBExceptionvoid replace(org.ojai.DocumentStream rs)
throws org.ojai.store.exceptions.MultiOpException
replace in interface org.ojai.store.DocumentStorers - DocumentStreamfieldAsKey - field from each document whose value is to be used as
the document key for deletionorg.ojai.store.exceptions.MultiOpException - that has a list of write-failed documents and
their errorsvoid replace(org.ojai.DocumentStream rs,
org.ojai.FieldPath fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
replace in interface org.ojai.store.DocumentStoreorg.ojai.store.exceptions.MultiOpExceptionvoid replace(org.ojai.DocumentStream rs,
java.lang.String fieldAsKey)
throws org.ojai.store.exceptions.MultiOpException
replace in interface org.ojai.store.DocumentStoreorg.ojai.store.exceptions.MultiOpExceptionvoid increment(java.lang.String id,
java.lang.String field,
byte inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreid - document idfield - the field name in dot separated notationinc - increment to apply to a field. Can be positive or negative.DBExceptionvoid increment(java.nio.ByteBuffer id,
java.lang.String field,
byte inc)
throws DBException
DBExceptionvoid increment(java.lang.String id,
java.lang.String field,
short inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreDBExceptionvoid increment(java.nio.ByteBuffer id,
java.lang.String field,
short inc)
throws DBException
DBExceptionvoid increment(java.lang.String id,
java.lang.String field,
int inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreDBExceptionvoid increment(java.nio.ByteBuffer id,
java.lang.String field,
int inc)
throws DBException
DBExceptionvoid increment(java.lang.String id,
java.lang.String field,
long inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreDBExceptionvoid increment(java.nio.ByteBuffer id,
java.lang.String field,
long inc)
throws DBException
DBExceptionvoid increment(java.lang.String id,
java.lang.String field,
float inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreDBExceptionvoid increment(java.nio.ByteBuffer id,
java.lang.String field,
float inc)
throws DBException
DBExceptionvoid increment(java.lang.String id,
java.lang.String field,
double inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreDBExceptionvoid increment(java.nio.ByteBuffer id,
java.lang.String field,
double inc)
throws DBException
DBExceptionvoid increment(java.lang.String id,
java.lang.String field,
java.math.BigDecimal inc)
throws DBException
increment in interface org.ojai.store.DocumentStoreDBExceptionvoid increment(java.nio.ByteBuffer id,
java.lang.String field,
java.math.BigDecimal inc)
throws DBException
DBExceptionboolean checkAndMutate(java.lang.String id,
org.ojai.store.QueryCondition condition,
org.ojai.store.DocumentMutation m)
throws DBException
checkAndMutate in interface org.ojai.store.DocumentStoreid - document idcondition - the condition to evaluate on the rowm - the mutation to apply on the rowDBException - if the condition passes but the mutation failsboolean checkAndMutate(java.nio.ByteBuffer id,
org.ojai.store.QueryCondition condition,
org.ojai.store.DocumentMutation m)
throws DBException
DBExceptionboolean checkAndDelete(java.lang.String id,
org.ojai.store.QueryCondition condition)
throws DBException
checkAndDelete in interface org.ojai.store.DocumentStoreid - document idcondition - the condition to evaluate on the rowDBException - if the condition passes but the delete failsboolean checkAndDelete(java.nio.ByteBuffer id,
org.ojai.store.QueryCondition condition)
throws DBException
DBExceptionboolean checkAndReplace(java.lang.String id,
org.ojai.store.QueryCondition condition,
org.ojai.Document r)
throws DBException
checkAndReplace in interface org.ojai.store.DocumentStoreid - document idcondition - the condition to evaluate on the rowr - the document to replaceDBException - if the condition passes but the replace failsboolean checkAndReplace(java.nio.ByteBuffer id,
org.ojai.store.QueryCondition condition,
org.ojai.Document r)
throws DBException
DBExceptionTabletInfo getTabletInfo(java.lang.String _id) throws DBException
_id - the document id for which the TabletInfo is requiredTabletInfo for the tablet of this table
to which the specified key belongsDBExceptionTabletInfo getTabletInfo(java.nio.ByteBuffer _id) throws DBException
_id - the document id for which the TabletInfo is requiredTabletInfo for the tablet of this table
to which the specified key belongsDBExceptionTabletInfo[] getTabletInfos() throws DBException
TabletInfo for all current tablets of this tableDBExceptionTabletInfo[] getTabletInfos(boolean needSpaceUsage, boolean prefetchTabletMap) throws DBException
needSpaceUsage - a flag to specify if the tablet stats are neededprefetchTabletMap - a flag to specify if the entire tablet map needs
to be prefetched and cachedTabletInfo for all current tablets of this tableDBException@Deprecated TabletInfo[] getTabletInfos(org.ojai.store.QueryCondition c) throws DBException
#getScanRanges(QueryCondition).QueryCondition - a condition object provided by the user or applicationTabletInfo for all current tablets of this table, which
has a start and end key matching the range specified by the
condition objectDBException@Deprecated TabletInfo[] getTabletInfos(org.ojai.store.QueryCondition c, boolean needSpaceUsage, boolean prefetchTabletMap) throws DBException
#getScanRanges(QueryCondition).QueryCondition - a condition object provided by the user or applicationneedSpaceUsage - a flag to specify if the tablet stats are neededprefetchTabletMap - a flag to specify if the entire tablet map
needs to be prefetched and cachedTabletInfo for all current tablets of this table, which
has a start and end key matching the range specified by the
condition objectDBExceptionMetaTable getMetaTable() throws DBException
QueryCondition - a condition object provided by the user or applicationScanStats over this Table matching the specified condition.DBExceptionvoid close()
throws DBException
AutoCloseable.close() to avoid declaring a checked exception.close in interface java.lang.AutoCloseableclose in interface org.ojai.store.DocumentStoreDBException