public class Field extends Object
| Constructor and Description |
|---|
Field() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
Field |
elemMatch(String key,
Criteria elemMatchCriteria) |
boolean |
equals(Object o) |
Field |
exclude(String key) |
org.bson.Document |
getFieldsObject() |
int |
hashCode() |
Field |
include(String key) |
Field |
position(String field,
int value)
The array field must appear in the query.
|
Field |
slice(String key,
int size) |
Field |
slice(String key,
int offset,
int size) |
public Field position(String field, int value)
$ operator can appear in the projection and
only one array field can appear in the query.field - query array field, must not be null or empty.value - public org.bson.Document getFieldsObject()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") protected boolean canEqual(Object other)
@Generated(value="lombok") public int hashCode()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.