Package | Description |
---|---|
com.allanbank.mongodb |
Provides a Java driver for the MongoDB document store that allows asynchronous invocation of requests.
|
com.allanbank.mongodb.bson.builder |
Provides the interfaces for builders to aid in constructing BSON
Document s. |
com.allanbank.mongodb.bson.element | |
com.allanbank.mongodb.bson.io |
Provides the ability to serialize and deserialize BSON
Document s. |
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
com.allanbank.mongodb.client |
Provides implementations of the main client interfaces and classes to translate the
Reply (s) from the server. |
Modifier and Type | Method and Description |
---|---|
boolean |
MongoCollection.dropIndex(IntegerElement... keys)
Deletes the indexes matching the keys specified.
|
Modifier and Type | Method and Description |
---|---|
static IntegerElement |
BuilderFactory.e(String name,
int value)
Creates a integer (32-bit signed) element.
|
Modifier and Type | Method and Description |
---|---|
IntegerElement |
IntegerElement.withName(String name)
Creates a new element with the same type and value as this element but
with the specified name.
|
Modifier and Type | Method and Description |
---|---|
protected IntegerElement |
BsonInputStream.readIntegerElement()
Reads a
IntegerElement from the stream. |
Modifier and Type | Method and Description |
---|---|
static IntegerElement |
Index.asc(String field)
Creates an ascending order specification, e.g.,
{ <field> : 1 }.
|
static IntegerElement |
Sort.asc(String field)
Creates an ascending order specification, e.g.,
{ <field> : 1 }.
|
static IntegerElement |
Index.desc(String field)
Creates an descending order specification, e.g.,
{ <field> : -1 }.
|
static IntegerElement |
Sort.desc(String field)
Creates an descending order specification, e.g.,
{ <field> : -1 }.
|
static IntegerElement |
Sort.natural()
Creates an natural ascending order sort specification, e.g.,
{ "$natural" : 1 }.
|
static IntegerElement |
Sort.natural(int direction)
Creates an natural order sort specification with the specified
Sort.ASCENDING or Sort.DESCENDING order, e.g.,
{ "$natural" : <direction> }. |
Modifier and Type | Method and Description |
---|---|
List<IntegerElement> |
AggregationProjectFields.toElements()
Returns the elements describing the fields to be included (and if the _id
should be excluded).
|
Modifier and Type | Method and Description |
---|---|
Find.Builder |
Find.Builder.setSort(IntegerElement... sortFields)
Sets the value of the fields to to sort matching documents by.
|
MapReduce.Builder |
MapReduce.Builder.setSort(IntegerElement... sortFields)
Sets the sort to apply to the input objects.
|
FindAndModify.Builder |
FindAndModify.Builder.setSort(IntegerElement... sortFields)
Sets the sort to apply if multiple docs match, choose the first one
as the object to manipulate.
|
Aggregate.Builder |
Aggregate.Builder.sort(IntegerElement... sortFields)
Adds a $sort operation to sort the documents passing this
point based on the sort specification provided.
|
Find.Builder |
Find.Builder.sort(IntegerElement... sortFields)
Sets the value of the fields to to sort matching documents by.
|
MapReduce.Builder |
MapReduce.Builder.sort(IntegerElement... sortFields)
Sets the sort to apply to the input objects.
|
FindAndModify.Builder |
FindAndModify.Builder.sort(IntegerElement... sortFields)
Sets the sort to apply if multiple docs match, choose the first one
as the object to manipulate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SynchronousMongoCollectionImpl.dropIndex(IntegerElement... keys)
Deletes the indexes matching the keys specified.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.