Package | Description |
---|---|
com.allanbank.mongodb.bson.builder |
Provides the interfaces for builders to aid in constructing BSON
Document s. |
com.allanbank.mongodb.bson.builder.impl |
Provides the implementations for builders to aid in constructing BSON
Document s. |
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
Modifier and Type | Method and Description |
---|---|
ArrayBuilder |
ArrayBuilder.add(boolean value)
Adds a boolean element.
|
ArrayBuilder |
ArrayBuilder.add(byte[] data)
Adds a binary element using sub-type zero (the default).
|
ArrayBuilder |
ArrayBuilder.add(byte subType,
byte[] data)
Adds a binary element.
|
ArrayBuilder |
ArrayBuilder.add(Date timestamp)
Adds a timestamp element.
|
ArrayBuilder |
ArrayBuilder.add(DocumentAssignable document)
Adds a pre-constructed document to the array.
|
ArrayBuilder |
ArrayBuilder.add(DocumentElement document)
Adds a pre-constructed
DocumentElement to the array. |
ArrayBuilder |
ArrayBuilder.add(double value)
Adds a double element.
|
ArrayBuilder |
ArrayBuilder.add(ElementAssignable element)
Adds a pre-built element to the document.
|
ArrayBuilder |
ArrayBuilder.add(int value)
Adds a integer (32-bit signed) element.
|
ArrayBuilder |
ArrayBuilder.add(long value)
Adds a long (64-bit signed) element.
|
ArrayBuilder |
ArrayBuilder.add(Object value)
Adds the value to the array after trying to coerce the value into the
best possible element type.
|
ArrayBuilder |
ArrayBuilder.add(ObjectId id)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilder.add(Pattern pattern)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilder.add(String value)
Adds a string element.
|
ArrayBuilder |
ArrayBuilder.add(String databaseName,
String collectionName,
ObjectId id)
Deprecated.
See BSON specification.
|
ArrayBuilder |
ArrayBuilder.add(UUID uuid)
Adds a (sub-type 4)
UUID binary element. |
ArrayBuilder |
ArrayBuilder.addBinary(byte[] data)
Adds a binary element using sub-type zero (the default).
|
ArrayBuilder |
ArrayBuilder.addBinary(byte subType,
byte[] data)
Adds a binary element.
|
ArrayBuilder |
ArrayBuilder.addBoolean(boolean value)
Adds a boolean element.
|
ArrayBuilder |
ArrayBuilder.addDBPointer(String databaseName,
String collectionName,
ObjectId id)
Deprecated.
See BSON specification.
|
ArrayBuilder |
ArrayBuilder.addDocument(DocumentAssignable document)
Adds a pre-constructed document to the array.
|
ArrayBuilder |
ArrayBuilder.addDouble(double value)
Adds a double element.
|
ArrayBuilder |
ArrayBuilder.addInteger(int value)
Adds a integer (32-bit signed) element.
|
ArrayBuilder |
ArrayBuilder.addJavaScript(String code)
Adds a JavaScript element.
|
ArrayBuilder |
ArrayBuilder.addJavaScript(String code,
DocumentAssignable scope)
Adds a JavaScript with Scope element.
|
ArrayBuilder |
ArrayBuilder.addLegacyUuid(UUID uuid)
Adds a legacy (sub-type 3)
UUID binary element. |
ArrayBuilder |
ArrayBuilder.addLong(long value)
Adds a long (64-bit signed) element.
|
ArrayBuilder |
ArrayBuilder.addMaxKey()
Adds a minimum key value element.
|
ArrayBuilder |
ArrayBuilder.addMinKey()
Adds a minimum key value element.
|
ArrayBuilder |
ArrayBuilder.addMongoTimestamp(long value)
Adds a MongoDB Timestamp element.
|
ArrayBuilder |
ArrayBuilder.addNull()
Adds a
null valued element. |
ArrayBuilder |
ArrayBuilder.addObjectId(ObjectId id)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilder.addRegularExpression(Pattern pattern)
Adds a regular expression element.
|
ArrayBuilder |
ArrayBuilder.addRegularExpression(String pattern,
String options)
Adds a regular expression element.
|
ArrayBuilder |
ArrayBuilder.addString(String value)
Adds a string element.
|
ArrayBuilder |
ArrayBuilder.addSymbol(String symbol)
Adds a symbol element.
|
ArrayBuilder |
ArrayBuilder.addTimestamp(long timestamp)
Adds a timestamp element.
|
ArrayBuilder |
ArrayBuilder.addUuid(UUID uuid)
Adds a (sub-type 4)
UUID binary element. |
ArrayBuilder |
ArrayBuilder.pushArray()
Pushes a context for constructing a sub-array.
|
ArrayBuilder |
DocumentBuilder.pushArray(String name)
Pushes a context for constructing a sub-array.
|
ArrayBuilder |
ArrayBuilder.reset()
Resets the builder back to an empty state.
|
static ArrayBuilder |
BuilderFactory.startArray()
Creates a new
ArrayBuilder . |
Modifier and Type | Class and Description |
---|---|
class |
ArrayBuilderImpl
A builder for BSON arrays.
|
Modifier and Type | Method and Description |
---|---|
ArrayBuilder |
ArrayBuilderImpl.add(boolean value)
Adds a boolean element.
|
ArrayBuilder |
ArrayBuilderImpl.add(byte[] data)
Adds a binary element using sub-type zero (the default).
|
ArrayBuilder |
ArrayBuilderImpl.add(byte subType,
byte[] data)
Adds a binary element.
|
ArrayBuilder |
ArrayBuilderImpl.add(Date timestamp)
Adds a timestamp element.
|
ArrayBuilder |
ArrayBuilderImpl.add(DocumentAssignable document)
Adds a pre-constructed document to the array.
|
ArrayBuilder |
ArrayBuilderImpl.add(DocumentElement document)
Adds a pre-constructed
DocumentElement to the array. |
ArrayBuilder |
ArrayBuilderImpl.add(double value)
Adds a double element.
|
ArrayBuilder |
ArrayBuilderImpl.add(ElementAssignable element)
Adds a pre-built element to the document.
|
ArrayBuilder |
ArrayBuilderImpl.add(int value)
Adds a integer (32-bit signed) element.
|
ArrayBuilder |
ArrayBuilderImpl.add(long value)
Adds a long (64-bit signed) element.
|
ArrayBuilder |
ArrayBuilderImpl.add(Object value)
Adds the value to the array after trying to coerce the value into the
best possible element type.
|
ArrayBuilder |
ArrayBuilderImpl.add(ObjectId id)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilderImpl.add(Pattern pattern)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilderImpl.add(String value)
Adds a string element.
|
ArrayBuilder |
ArrayBuilderImpl.add(String databaseName,
String collectionName,
ObjectId id)
Deprecated.
|
ArrayBuilder |
ArrayBuilderImpl.add(UUID uuid)
Adds a (sub-type 4)
UUID binary element. |
ArrayBuilder |
ArrayBuilderImpl.addBinary(byte[] value)
Adds a binary element using sub-type zero (the default).
|
ArrayBuilder |
ArrayBuilderImpl.addBinary(byte subType,
byte[] value)
Adds a binary element.
|
ArrayBuilder |
ArrayBuilderImpl.addBoolean(boolean value)
Adds a boolean element.
|
ArrayBuilder |
ArrayBuilderImpl.addDBPointer(String databaseName,
String collectionName,
ObjectId id)
Deprecated.
|
ArrayBuilder |
ArrayBuilderImpl.addDocument(DocumentAssignable document)
Adds a pre-constructed document to the array.
|
ArrayBuilder |
ArrayBuilderImpl.addDouble(double value)
Adds a double element.
|
ArrayBuilder |
ArrayBuilderImpl.addInteger(int value)
Adds a integer (32-bit signed) element.
|
ArrayBuilder |
ArrayBuilderImpl.addJavaScript(String code)
Adds a JavaScript element.
|
ArrayBuilder |
ArrayBuilderImpl.addJavaScript(String code,
DocumentAssignable scope)
Adds a JavaScript with Scope element.
|
ArrayBuilder |
ArrayBuilderImpl.addLegacyUuid(UUID uuid)
Adds a legacy (sub-type 3)
UUID binary element. |
ArrayBuilder |
ArrayBuilderImpl.addLong(long value)
Adds a long (64-bit signed) element.
|
ArrayBuilder |
ArrayBuilderImpl.addMaxKey()
Adds a minimum key value element.
|
ArrayBuilder |
ArrayBuilderImpl.addMinKey()
Adds a minimum key value element.
|
ArrayBuilder |
ArrayBuilderImpl.addMongoTimestamp(long value)
Adds a MongoDB Timestamp element.
|
ArrayBuilder |
ArrayBuilderImpl.addNull()
Adds a
null valued element. |
ArrayBuilder |
ArrayBuilderImpl.addObjectId(ObjectId id)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilderImpl.addRegularExpression(Pattern pattern)
Adds a regular expression element.
|
ArrayBuilder |
ArrayBuilderImpl.addRegularExpression(String pattern,
String options)
Adds a regular expression element.
|
ArrayBuilder |
ArrayBuilderImpl.addString(String value)
Adds a string element.
|
ArrayBuilder |
ArrayBuilderImpl.addSymbol(String symbol)
Adds a symbol element.
|
ArrayBuilder |
ArrayBuilderImpl.addTimestamp(long timestamp)
Adds a timestamp element.
|
ArrayBuilder |
ArrayBuilderImpl.addUuid(UUID uuid)
Adds a (sub-type 4)
UUID binary element. |
protected ArrayBuilder |
AbstractBuilder.doPushArray(String name)
Pushes a context for constructing a sub-array.
|
ArrayBuilder |
ArrayBuilderImpl.pushArray()
Pushes a context for constructing a sub-array.
|
ArrayBuilder |
DocumentBuilderImpl.pushArray(String name)
Pushes a context for constructing a sub-array.
|
ArrayBuilder |
ArrayBuilderImpl.reset()
Resets the builder back to an empty state.
|
Modifier and Type | Field and Description |
---|---|
protected ArrayBuilder |
Aggregate.Builder.myPipeline
The pipeline of operations to be applied.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
GeoJson.add(ArrayBuilder coordinates,
List<? extends Point2D> positions)
Adds a positions to the coordinates array.
|
protected static void |
GeoJson.add(ArrayBuilder coordinates,
Point2D position)
Adds a position to the coordinates array.
|
protected static void |
GeoJson.addRaw(ArrayBuilder arrayBuilder,
Point2D position)
Adds the (x,y) coordinates from the point directly to the array provided.
|
ConditionBuilder |
ConditionBuilder.all(ArrayBuilder elements)
Specify the values that must all be in the fields array.
|
ConditionBuilder |
ConditionBuilder.in(ArrayBuilder elements)
Specify the values that one must match the fields value.
|
protected static void |
GeoJson.lineRing(ArrayBuilder positionArray,
List<? extends Point2D> positions)
Fills in the LineRing coordinates.
|
ConditionBuilder |
ConditionBuilder.notIn(ArrayBuilder elements)
Specify the values that must not must not match the fields
value.
|
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.