public class OjaiConnection
extends java.lang.Object
implements org.ojai.store.Connection
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.ojai.store.Driver |
getDriver() |
java.util.concurrent.ExecutorService |
getExecutorService()
Obtain an ExecutorService that can be used to execute tasks.
|
org.ojai.store.DocumentStore |
getStore(java.lang.String storePath) |
org.ojai.store.DocumentStore |
getStore(java.lang.String storePath,
org.ojai.Document options) |
org.ojai.store.ValueBuilder |
getValueBuilder() |
org.ojai.store.QueryCondition |
newCondition() |
org.ojai.Document |
newDocument() |
org.ojai.Document |
newDocument(java.util.Map<java.lang.String,java.lang.Object> document) |
org.ojai.Document |
newDocument(java.lang.Object document) |
org.ojai.Document |
newDocument(java.lang.String documentJson) |
org.ojai.DocumentBuilder |
newDocumentBuilder() |
org.ojai.store.DocumentMutation |
newMutation() |
org.ojai.store.Query |
newQuery() |
org.ojai.store.Query |
newQuery(java.lang.String queryJson) |
public java.util.concurrent.ExecutorService getExecutorService()
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface org.ojai.store.Connectionpublic org.ojai.store.Driver getDriver()
getDriver in interface org.ojai.store.Connectionpublic org.ojai.store.DocumentStore getStore(java.lang.String storePath)
throws com.mapr.db.exceptions.DBException
getStore in interface org.ojai.store.Connectioncom.mapr.db.exceptions.DBExceptionpublic org.ojai.store.DocumentStore getStore(java.lang.String storePath,
org.ojai.Document options)
throws com.mapr.db.exceptions.DBException
getStore in interface org.ojai.store.Connectioncom.mapr.db.exceptions.DBExceptionpublic org.ojai.store.ValueBuilder getValueBuilder()
getValueBuilder in interface org.ojai.store.Connectionpublic org.ojai.store.QueryCondition newCondition()
newCondition in interface org.ojai.store.Connectionpublic org.ojai.Document newDocument()
newDocument in interface org.ojai.store.Connectionpublic org.ojai.Document newDocument(java.lang.String documentJson)
throws org.ojai.exceptions.DecodingException
newDocument in interface org.ojai.store.Connectionorg.ojai.exceptions.DecodingExceptionpublic org.ojai.Document newDocument(java.util.Map<java.lang.String,java.lang.Object> document)
throws org.ojai.exceptions.DecodingException
newDocument in interface org.ojai.store.Connectionorg.ojai.exceptions.DecodingExceptionpublic org.ojai.Document newDocument(java.lang.Object document)
throws org.ojai.exceptions.DecodingException
newDocument in interface org.ojai.store.Connectionorg.ojai.exceptions.DecodingExceptionpublic org.ojai.DocumentBuilder newDocumentBuilder()
newDocumentBuilder in interface org.ojai.store.Connectionpublic org.ojai.store.DocumentMutation newMutation()
newMutation in interface org.ojai.store.Connectionpublic org.ojai.store.Query newQuery()
newQuery in interface org.ojai.store.Connectionpublic org.ojai.store.Query newQuery(java.lang.String queryJson)
newQuery in interface org.ojai.store.Connection