Modifier and Type | Field and Description |
---|---|
private java.lang.String |
fieldName |
private TItem |
geometry |
private java.lang.Double |
maxDistance |
private java.lang.Double |
minDistance |
private java.lang.String |
operatorName |
Constructor and Description |
---|
GeometryOperatorFilter(java.lang.String operatorName,
java.lang.String fieldName,
TItem geometry) |
GeometryOperatorFilter(java.lang.String operatorName,
java.lang.String fieldName,
TItem geometry,
java.lang.Double maxDistance,
java.lang.Double minDistance) |
Modifier and Type | Method and Description |
---|---|
<TDocument> |
toBsonDocument(java.lang.Class<TDocument> documentClass,
CodecRegistry codecRegistry)
Render the filter into a BsonDocument.
|
java.lang.String |
toString() |
private final java.lang.String operatorName
private final java.lang.String fieldName
private final TItem geometry
private final java.lang.Double maxDistance
private final java.lang.Double minDistance
public GeometryOperatorFilter(java.lang.String operatorName, java.lang.String fieldName, TItem geometry)
public GeometryOperatorFilter(java.lang.String operatorName, java.lang.String fieldName, TItem geometry, java.lang.Double maxDistance, java.lang.Double minDistance)
public <TDocument> BsonDocument toBsonDocument(java.lang.Class<TDocument> documentClass, CodecRegistry codecRegistry)
Bson
toBsonDocument
in interface Bson
TDocument
- the type of the document classdocumentClass
- the document class in scope for the collection. This parameter may be ignored, but it may be used to alter
the structure of the returned BsonDocument
based on some knowledge of the document class.codecRegistry
- the codec registry. This parameter may be ignored, but it may be used to look up Codec
instances for
the document class or any other related class.public java.lang.String toString()
toString
in class java.lang.Object