public class Find extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Find.Builder
Helper for creating immutable
Find queries. |
Modifier | Constructor and Description |
---|---|
protected |
Find(Find.Builder builder)
Creates a new Find.
|
Modifier and Type | Method and Description |
---|---|
int |
getBatchSize()
Returns the number of documents to be returned in each batch of results.
|
int |
getLimit()
Returns the total number of documents to be returned.
|
int |
getNumberToSkip()
Returns the number of documents to skip before returning the first
document.
|
Document |
getQuery()
Returns the query document.
|
ReadPreference |
getReadPreference()
Returns the preference for the servers to retrieve the results from.
|
Document |
getReturnFields()
Returns the fields to be returned from the matching documents.
|
Document |
getSort()
Returns the fields to order document by.
|
boolean |
isPartialOk()
Returns the partial okay value.
|
protected Find(Find.Builder builder)
builder
- The builder to copy the query fields from.public int getBatchSize()
public int getLimit()
public int getNumberToSkip()
public Document getQuery()
public ReadPreference getReadPreference()
null
in which case the default read preference should be
used.public Document getReturnFields()
public Document getSort()
public boolean isPartialOk()
Copyright © 2011-2012 Allanbank Consulting, Inc.. All Rights Reserved.