public class OjaiDriver
extends java.lang.Object
implements org.ojai.store.Driver
| Constructor and Description |
|---|
OjaiDriver()
This constructor needs to be public for Java SPI but should never be used directly.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(java.lang.String url) |
org.ojai.store.Connection |
connect(java.lang.String url,
org.ojai.Document options) |
java.util.concurrent.ExecutorService |
getExecutorService()
Get the ExecutorService used for worker tasks.
|
java.lang.String |
getName() |
org.ojai.store.ValueBuilder |
getValueBuilder() |
static boolean |
isDrillInClasspath() |
org.ojai.store.QueryCondition |
newCondition() |
org.ojai.Document |
newDocument() |
org.ojai.Document |
newDocument(java.util.Map<java.lang.String,java.lang.Object> map) |
org.ojai.Document |
newDocument(java.lang.Object bean) |
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) |
java.lang.String |
toString() |
public OjaiDriver()
public java.util.concurrent.ExecutorService getExecutorService()
public org.ojai.store.ValueBuilder getValueBuilder()
getValueBuilder in interface org.ojai.store.Driverpublic org.ojai.Document newDocument()
newDocument in interface org.ojai.store.Driverpublic org.ojai.Document newDocument(java.lang.String documentJson)
throws org.ojai.exceptions.DecodingException
newDocument in interface org.ojai.store.Driverorg.ojai.exceptions.DecodingExceptionpublic org.ojai.Document newDocument(java.util.Map<java.lang.String,java.lang.Object> map)
throws org.ojai.exceptions.DecodingException
newDocument in interface org.ojai.store.Driverorg.ojai.exceptions.DecodingExceptionpublic org.ojai.Document newDocument(java.lang.Object bean)
throws org.ojai.exceptions.DecodingException
newDocument in interface org.ojai.store.Driverorg.ojai.exceptions.DecodingExceptionpublic org.ojai.DocumentBuilder newDocumentBuilder()
newDocumentBuilder in interface org.ojai.store.Driverpublic org.ojai.store.DocumentMutation newMutation()
newMutation in interface org.ojai.store.Driverpublic org.ojai.store.QueryCondition newCondition()
newCondition in interface org.ojai.store.Driverpublic org.ojai.store.Query newQuery()
newQuery in interface org.ojai.store.Driverpublic org.ojai.store.Query newQuery(java.lang.String queryJson)
newQuery in interface org.ojai.store.Driverpublic boolean accepts(java.lang.String url)
accepts in interface org.ojai.store.Driverpublic org.ojai.store.Connection connect(java.lang.String url,
org.ojai.Document options)
throws org.ojai.exceptions.OjaiException
connect in interface org.ojai.store.Driverorg.ojai.exceptions.OjaiExceptionpublic java.lang.String getName()
getName in interface org.ojai.store.Driverpublic java.lang.String toString()
toString in class java.lang.Objectpublic static boolean isDrillInClasspath()