public class SortOperation extends Object implements AggregationOperation
$sort-operation.http://docs.mongodb.org/manual/reference/aggregation/sort/#pipe._S_sort| Constructor and Description |
|---|
SortOperation(Sort sort)
Creates a new
SortOperation for the given Sort instance. |
| Modifier and Type | Method and Description |
|---|---|
SortOperation |
and(Sort.Direction direction,
String... fields) |
SortOperation |
and(Sort sort) |
com.mongodb.DBObject |
toDBObject(AggregationOperationContext context)
|
public SortOperation(Sort sort)
SortOperation for the given Sort instance.sort - must not be null.public SortOperation and(Sort.Direction direction, String... fields)
public SortOperation and(Sort sort)
public com.mongodb.DBObject toDBObject(AggregationOperationContext context)
AggregationOperationtoDBObject in interface AggregationOperationCopyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.