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, update
java.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.DocumentStore
DBException
org.ojai.Document findById(java.lang.String id) throws DBException
findById
in interface org.ojai.store.DocumentStore
id
- document idDBException
org.ojai.Document findById(java.nio.ByteBuffer id) throws DBException
DBException
org.ojai.Document findById(org.ojai.Value id) throws DBException
findById
in interface org.ojai.store.DocumentStore
DBException
org.ojai.Document findById(java.lang.String id, java.lang.String... paths) throws DBException
findById
in interface org.ojai.store.DocumentStore
id
- document idpaths
- list of fields that should be returned in the read documentDBException
org.ojai.Document findById(java.lang.String id, org.ojai.FieldPath... paths) throws DBException
findById
in interface org.ojai.store.DocumentStore
DBException
org.ojai.Document findById(java.nio.ByteBuffer id, java.lang.String... paths) throws DBException
DBException
org.ojai.Document findById(java.nio.ByteBuffer id, org.ojai.FieldPath... paths) throws DBException
DBException
org.ojai.Document findById(java.lang.String id, org.ojai.store.QueryCondition c) throws DBException
findById
in interface org.ojai.store.DocumentStore
id
- document idpaths
- list of fields that should be returned in the read documentc
- condition to check for the queryDBException
org.ojai.Document findById(java.nio.ByteBuffer id, org.ojai.store.QueryCondition c) throws DBException
DBException
org.ojai.Document findById(java.lang.String id, org.ojai.store.QueryCondition c, java.lang.String... paths) throws DBException
findById
in interface org.ojai.store.DocumentStore
DBException
org.ojai.Document findById(java.lang.String id, org.ojai.store.QueryCondition c, org.ojai.FieldPath... paths) throws DBException
findById
in interface org.ojai.store.DocumentStore
DBException
org.ojai.Document findById(java.nio.ByteBuffer id, org.ojai.store.QueryCondition c, java.lang.String... paths) throws DBException
DBException
org.ojai.Document findById(java.nio.ByteBuffer id, org.ojai.store.QueryCondition c, org.ojai.FieldPath... paths) throws DBException
DBException
void 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.DocumentStore
DBException
org.ojai.DocumentStream find(java.lang.String... paths) throws DBException
find
in interface org.ojai.store.DocumentStore
paths
- list of fields that should be returned in the read documentDBException
org.ojai.DocumentStream find(org.ojai.FieldPath... paths) throws DBException
find
in interface org.ojai.store.DocumentStore
DBException
org.ojai.DocumentStream find(org.ojai.store.QueryCondition c) throws DBException
find
in interface org.ojai.store.DocumentStore
c
- condition to check for the queryTableNotFoundException
- when the table from which to get any row
does not existDBException
org.ojai.DocumentStream find(org.ojai.store.QueryCondition c, java.lang.String... paths) throws DBException
find
in interface org.ojai.store.DocumentStore
c
- condition to check for the querypaths
- list of fields that should be returned in the read documentDBException
org.ojai.DocumentStream find(org.ojai.store.QueryCondition c, org.ojai.FieldPath... paths) throws DBException
find
in interface org.ojai.store.DocumentStore
DBException
void insertOrReplace(org.ojai.Document r) throws DBException
insertOrReplace
in interface org.ojai.store.DocumentStore
r
- 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" fieldDBException
void insertOrReplace(java.lang.String id, org.ojai.Document r) throws DBException
insertOrReplace
in interface org.ojai.store.DocumentStore
DBException
void insertOrReplace(java.nio.ByteBuffer id, org.ojai.Document r) throws DBException
DBException
void insertOrReplace(org.ojai.Document r, org.ojai.FieldPath fieldAsKey) throws DBException
insertOrReplace
in interface org.ojai.store.DocumentStore
DBException
void insertOrReplace(org.ojai.Document r, java.lang.String fieldAsKey) throws DBException
insertOrReplace
in interface org.ojai.store.DocumentStore
DBException
void insertOrReplace(org.ojai.DocumentStream rs) throws org.ojai.store.exceptions.MultiOpException
insertOrReplace
in interface org.ojai.store.DocumentStore
rs
- 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.DocumentStore
org.ojai.store.exceptions.MultiOpException
void insertOrReplace(org.ojai.DocumentStream rs, java.lang.String fieldAsKey) throws org.ojai.store.exceptions.MultiOpException
insertOrReplace
in interface org.ojai.store.DocumentStore
org.ojai.store.exceptions.MultiOpException
void update(java.lang.String id, org.ojai.store.DocumentMutation m) throws DBException
update
in interface org.ojai.store.DocumentStore
id
- document idm
- mutation object specifying the operation on paths of a rowDBException
void update(java.nio.ByteBuffer id, org.ojai.store.DocumentMutation m) throws DBException
DBException
void delete(java.lang.String id) throws DBException
delete
in interface org.ojai.store.DocumentStore
id
- 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" fieldDBException
void delete(java.nio.ByteBuffer id) throws DBException
DBException
void delete(org.ojai.Document r) throws DBException
delete
in interface org.ojai.store.DocumentStore
DBException
void delete(org.ojai.Document r, org.ojai.FieldPath fieldAsKey) throws DBException
delete
in interface org.ojai.store.DocumentStore
DBException
void delete(org.ojai.Document r, java.lang.String fieldAsKey) throws DBException
delete
in interface org.ojai.store.DocumentStore
DBException
void delete(org.ojai.DocumentStream rs) throws org.ojai.store.exceptions.MultiOpException
delete
in interface org.ojai.store.DocumentStore
rs
- 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.DocumentStore
org.ojai.store.exceptions.MultiOpException
void delete(org.ojai.DocumentStream rs, java.lang.String fieldAsKey) throws org.ojai.store.exceptions.MultiOpException
delete
in interface org.ojai.store.DocumentStore
org.ojai.store.exceptions.MultiOpException
void insert(java.lang.String id, org.ojai.Document r) throws DBException
insert
in interface org.ojai.store.DocumentStore
r
- 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 tableDBException
void insert(java.nio.ByteBuffer id, org.ojai.Document r) throws DBException
DBException
void insert(org.ojai.Document r) throws DBException
insert
in interface org.ojai.store.DocumentStore
DBException
void insert(org.ojai.Document r, org.ojai.FieldPath fieldAsKey) throws DBException
insert
in interface org.ojai.store.DocumentStore
DBException
void insert(org.ojai.Document r, java.lang.String fieldAsKey) throws DBException
insert
in interface org.ojai.store.DocumentStore
DBException
void insert(org.ojai.DocumentStream rs) throws org.ojai.store.exceptions.MultiOpException
insert
in interface org.ojai.store.DocumentStore
rs
- 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.DocumentStore
org.ojai.store.exceptions.MultiOpException
void insert(org.ojai.DocumentStream rs, java.lang.String fieldAsKey) throws org.ojai.store.exceptions.MultiOpException
insert
in interface org.ojai.store.DocumentStore
org.ojai.store.exceptions.MultiOpException
void replace(java.lang.String id, org.ojai.Document r) throws DBException
replace
in interface org.ojai.store.DocumentStore
r
- 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 tableDBException
void replace(java.nio.ByteBuffer id, org.ojai.Document r) throws DBException
DBException
void replace(org.ojai.Document r) throws DBException
replace
in interface org.ojai.store.DocumentStore
DBException
void replace(org.ojai.Document r, org.ojai.FieldPath fieldAsKey) throws DBException
replace
in interface org.ojai.store.DocumentStore
DBException
void replace(org.ojai.Document r, java.lang.String fieldAsKey) throws DBException
replace
in interface org.ojai.store.DocumentStore
DBException
void replace(org.ojai.DocumentStream rs) throws org.ojai.store.exceptions.MultiOpException
replace
in interface org.ojai.store.DocumentStore
rs
- 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.DocumentStore
org.ojai.store.exceptions.MultiOpException
void replace(org.ojai.DocumentStream rs, java.lang.String fieldAsKey) throws org.ojai.store.exceptions.MultiOpException
replace
in interface org.ojai.store.DocumentStore
org.ojai.store.exceptions.MultiOpException
void increment(java.lang.String id, java.lang.String field, byte inc) throws DBException
increment
in interface org.ojai.store.DocumentStore
id
- document idfield
- the field name in dot separated notationinc
- increment to apply to a field. Can be positive or negative.DBException
void increment(java.nio.ByteBuffer id, java.lang.String field, byte inc) throws DBException
DBException
void increment(java.lang.String id, java.lang.String field, short inc) throws DBException
increment
in interface org.ojai.store.DocumentStore
DBException
void increment(java.nio.ByteBuffer id, java.lang.String field, short inc) throws DBException
DBException
void increment(java.lang.String id, java.lang.String field, int inc) throws DBException
increment
in interface org.ojai.store.DocumentStore
DBException
void increment(java.nio.ByteBuffer id, java.lang.String field, int inc) throws DBException
DBException
void increment(java.lang.String id, java.lang.String field, long inc) throws DBException
increment
in interface org.ojai.store.DocumentStore
DBException
void increment(java.nio.ByteBuffer id, java.lang.String field, long inc) throws DBException
DBException
void increment(java.lang.String id, java.lang.String field, float inc) throws DBException
increment
in interface org.ojai.store.DocumentStore
DBException
void increment(java.nio.ByteBuffer id, java.lang.String field, float inc) throws DBException
DBException
void increment(java.lang.String id, java.lang.String field, double inc) throws DBException
increment
in interface org.ojai.store.DocumentStore
DBException
void increment(java.nio.ByteBuffer id, java.lang.String field, double inc) throws DBException
DBException
void increment(java.lang.String id, java.lang.String field, java.math.BigDecimal inc) throws DBException
increment
in interface org.ojai.store.DocumentStore
DBException
void increment(java.nio.ByteBuffer id, java.lang.String field, java.math.BigDecimal inc) throws DBException
DBException
boolean checkAndMutate(java.lang.String id, org.ojai.store.QueryCondition condition, org.ojai.store.DocumentMutation m) throws DBException
checkAndMutate
in interface org.ojai.store.DocumentStore
id
- 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
DBException
boolean checkAndDelete(java.lang.String id, org.ojai.store.QueryCondition condition) throws DBException
checkAndDelete
in interface org.ojai.store.DocumentStore
id
- 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
DBException
boolean checkAndReplace(java.lang.String id, org.ojai.store.QueryCondition condition, org.ojai.Document r) throws DBException
checkAndReplace
in interface org.ojai.store.DocumentStore
id
- 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
DBException
TabletInfo 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 belongsDBException
TabletInfo 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 belongsDBException
TabletInfo[] getTabletInfos() throws DBException
TabletInfo
for all current tablets of this tableDBException
TabletInfo[] 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 objectDBException
MetaTable getMetaTable() throws DBException
QueryCondition
- a condition object provided by the user or applicationScanStats
over this Table matching the specified condition.DBException
void close() throws DBException
AutoCloseable.close()
to avoid declaring a checked exception.close
in interface java.lang.AutoCloseable
close
in interface org.ojai.store.DocumentStore
DBException