@API.Public @API.ThreadSafe public interface Driver
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(String url)
Returns true if this Driver supports the protocol specified in the URL.
|
Connection |
connect(String url,
Document options)
Establishes and returns a Connection to an OJAI data source.
|
boolean |
equals(Object obj)
Returns
true if the other object is "equal to" this Driver. |
String |
getName()
Returns a printable name for the OJAI Driver implementation
|
ValueBuilder |
getValueBuilder()
Returns a ValueBuilder object from this Driver.
|
QueryCondition |
newCondition()
Creates and returns a new QueryCondition object.
|
Document |
newDocument()
Creates and returns a new, empty instance of an OJAI Document.
|
Document |
newDocument(Map<String,Object> map)
Returns a new instance of Document constructed from the specified Map.
|
Document |
newDocument(Object bean)
Returns a new instance of Document built from the specified Java bean.
|
Document |
newDocument(String documentJson)
Returns a new instance of OJAI Document parsed from the specified JSON string.
|
DocumentBuilder |
newDocumentBuilder()
Returns a new DocumentBuilder object.
|
DocumentMutation |
newMutation()
Creates and returns a new DocumentMutation object.
|
Query |
newQuery()
Creates and returns a new Query object.
|
Query |
newQuery(String queryJson)
Creates and returns a new Query object decoded from the supplied JSON String.
|
String getName()
boolean equals(@API.Nullable Object obj)
true
if the other object is "equal to" this Driver.ValueBuilder getValueBuilder()
Document newDocument()
Document newDocument(@API.NonNullable String documentJson) throws DecodingException
DecodingException
Document newDocument(@API.NonNullable Map<String,Object> map) throws DecodingException
DecodingException
Document newDocument(@API.NonNullable Object bean) throws DecodingException
DecodingException
DocumentBuilder newDocumentBuilder()
DocumentMutation newMutation()
QueryCondition newCondition()
Query newQuery()
Query newQuery(@API.NonNullable String queryJson)
@API.Internal boolean accepts(@API.NonNullable String url)
@API.Internal Connection connect(@API.NonNullable String url, @API.Nullable Document options) throws OjaiException
OjaiException
Copyright © 2015–2018 MapR Technologies, Inc.. All rights reserved.