Package | Description |
---|---|
org.ojai | |
org.ojai.beans | |
org.ojai.store | |
org.ojai.util |
Modifier and Type | Method and Description |
---|---|
Query |
OjaiCodec.decodeQuery(T encodedQuery,
Document options)
Decodes an instance of <T> into an OJAI
Query |
Modifier and Type | Method and Description |
---|---|
static Document |
BeanCodec.decode(DocumentBuilder db,
Object bean) |
static <T> T |
BeanCodec.encode(DocumentReader dr,
Class<T> beanClass) |
Modifier and Type | Method and Description |
---|---|
Connection |
Driver.connect(String url,
Document options)
Establishes and returns a Connection to an OJAI data source.
|
boolean |
Driver.equals(Object obj)
Returns
true if the other object is "equal to" this Driver. |
Query |
Query.setOptions(Document options)
Sets multiple query options for this Query.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
Documents.equals(Document d1,
Document d2)
Compares two documents for equality.
|
static boolean |
Documents.equals(Document d1,
Document d2)
Compares two documents for equality.
|
static ByteBuffer |
Documents.getBinary(Document document,
FieldPath fieldPath,
ByteBuffer defaultValue)
Returns the value at the specified fieldPath as a
ByteBuffer object or
the specified defaultValue if the specified FieldPath does not
exist in the document. |
static ByteBuffer |
Documents.getBinary(Document document,
String fieldPath,
ByteBuffer defaultValue)
Returns the value at the specified fieldPath as a
ByteBuffer object or
the specified defaultValue if the specified FieldPath does not
exist in the document. |
static boolean |
Documents.getBoolean(Document document,
FieldPath fieldPath,
boolean defaultValue)
Returns the value at the specified fieldPath as a
boolean or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static boolean |
Documents.getBoolean(Document document,
String fieldPath,
boolean defaultValue)
Returns the value at the specified fieldPath as a
boolean or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static byte |
Documents.getByte(Document document,
FieldPath fieldPath,
byte defaultValue)
Returns the value at the specified fieldPath as a
byte or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static ODate |
Documents.getDate(Document document,
FieldPath fieldPath,
ODate defaultValue)
Returns the value at the specified fieldPath as a
ODate or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static ODate |
Documents.getDate(Document document,
String fieldPath,
ODate defaultValue)
Returns the value at the specified fieldPath as a
ODate or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static BigDecimal |
Documents.getDecimal(Document document,
FieldPath fieldPath,
BigDecimal defaultValue)
Returns the value at the specified fieldPath as a
BigDecimal or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static BigDecimal |
Documents.getDecimal(Document document,
String fieldPath,
BigDecimal defaultValue)
Returns the value at the specified fieldPath as a
BigDecimal or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static double |
Documents.getDouble(Document document,
String fieldPath,
double defaultValue)
Returns the value at the specified fieldPath as a
double or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static float |
Documents.getFloat(Document document,
String fieldPath,
float defaultValue)
Returns the value at the specified fieldPath as a
float or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static int |
Documents.getInt(Document document,
String fieldPath,
int defaultValue)
Returns the value at the specified fieldPath as a
int or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static OInterval |
Documents.getInterval(Document document,
FieldPath fieldPath,
OInterval defaultValue)
Returns the value at the specified fieldPath as a
OInterval or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static OInterval |
Documents.getInterval(Document document,
String fieldPath,
OInterval defaultValue)
Returns the value at the specified fieldPath as a
OInterval or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static List<Object> |
Documents.getList(Document document,
FieldPath fieldPath,
List<Object> defaultValue)
Returns the value at the specified fieldPath as a
List or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static List<Object> |
Documents.getList(Document document,
String fieldPath,
List<Object> defaultValue)
Returns the value at the specified fieldPath as a
List or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static Map<String,Object> |
Documents.getMap(Document document,
FieldPath fieldPath,
Map<String,Object> defaultValue)
Returns the value at the specified fieldPath as a
Map or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static Map<String,Object> |
Documents.getMap(Document document,
String fieldPath,
Map<String,Object> defaultValue)
Returns the value at the specified fieldPath as a
Map or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static String |
Documents.getString(Document document,
FieldPath fieldPath,
String defaultValue)
Returns the value at the specified fieldPath as a
String or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static String |
Documents.getString(Document document,
String fieldPath,
String defaultValue)
Returns the value at the specified fieldPath as a
String or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static OTime |
Documents.getTime(Document document,
FieldPath fieldPath,
OTime defaultValue)
Returns the value at the specified fieldPath as a
OTime or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static OTime |
Documents.getTime(Document document,
String fieldPath,
OTime defaultValue)
Returns the value at the specified fieldPath as a
OTime or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static OTimestamp |
Documents.getTimestamp(Document document,
FieldPath fieldPath,
OTimestamp defaultValue)
Returns the value at the specified fieldPath as a
OTimestamp or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static OTimestamp |
Documents.getTimestamp(Document document,
String fieldPath,
OTimestamp defaultValue)
Returns the value at the specified fieldPath as a
OTimestamp or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static Value |
Documents.getValue(Document document,
FieldPath fieldPath,
Value defaultValue)
Returns the value at the specified fieldPath as a
Value or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static Value |
Documents.getValue(Document document,
String fieldPath,
Value defaultValue)
Returns the value at the specified fieldPath as a
Value or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static FieldPath[] |
Fields.toFieldPathArray(String... fieldPaths) |
static String[] |
Fields.toFieldPathStringArray(FieldPath... fieldPaths) |
Copyright © 2015–2019 MapR Technologies, Inc.. All rights reserved.