Package | Description |
---|---|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
Modifier and Type | Method and Description |
---|---|
Find.Builder |
Find.Builder.partialOk()
Sets that if there is an error then the query should return any
partial results.
|
Find.Builder |
Find.Builder.reset()
Resets the builder back to its initial state for reuse.
|
Find.Builder |
Find.Builder.setBatchSize(int batchSize)
Sets the value of the number of documents to be returned in each
batch.
|
Find.Builder |
Find.Builder.setHint(DocumentAssignable indexFields)
Sets the value of hint as to which index should be used to execute
the query.
|
Find.Builder |
Find.Builder.setHint(IntegerElement... indexFields)
Sets the value of hint as to which index should be used to execute
the query.
|
Find.Builder |
Find.Builder.setHint(String indexName)
Sets the value of hint as to which index should be used to execute
the query.
|
Find.Builder |
Find.Builder.setLimit(int limit)
Sets the value of the total number of documents to be returned.
|
Find.Builder |
Find.Builder.setNumberToSkip(int numberToSkip)
Sets the value of the number of documents to skip before returning
the first document to the new value.
|
Find.Builder |
Find.Builder.setPartialOk(boolean partialOk)
Sets the value of partial okay to the new value.
|
Find.Builder |
Find.Builder.setQuery(DocumentAssignable query)
Sets the value of the query document to the new value.
|
Find.Builder |
Find.Builder.setReadPreference(ReadPreference readPreference)
Sets the preference for the set of servers to retrieve the results
from.
|
Find.Builder |
Find.Builder.setReturnFields(DocumentAssignable returnFields)
Sets the value of the fields to be returned from the matching
documents to the new value.
|
Find.Builder |
Find.Builder.setSnapshot(boolean snapshot)
Sets the value of snapshot to the new value.
|
Find.Builder |
Find.Builder.setSort(DocumentAssignable sortFields)
Sets the value of the fields to to sort matching documents by.
|
Find.Builder |
Find.Builder.setSort(IntegerElement... sortFields)
Sets the value of the fields to to sort matching documents by.
|
Find.Builder |
Find.Builder.setTailable(boolean tailable)
If set to true the cursur returned from the query will be tailable.
|
Find.Builder |
Find.Builder.snapshot()
Sets that the query should ensure that documents are only returned
once.
|
Find.Builder |
Find.Builder.tailable()
Sets the the cursur returned from the query to be tailable.
|
Constructor and Description |
---|
Find(Find.Builder builder)
Creates a new Find.
|
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.