Package | Description |
---|---|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
com.mongodb.client.model.geojson.codecs |
This package contains classes that encode and decode GeoJSON objects.
|
Modifier and Type | Method and Description |
---|---|
static Bson |
Filters.near(java.lang.String fieldName,
Point geometry,
java.lang.Double maxDistance,
java.lang.Double minDistance)
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.
|
static Bson |
Filters.nearSphere(java.lang.String fieldName,
Point geometry,
java.lang.Double maxDistance,
java.lang.Double minDistance)
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using
spherical geometry.
|
Modifier and Type | Method and Description |
---|---|
Point |
PointCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<Point> |
PointCodec.getEncoderClass() |
Modifier and Type | Method and Description |
---|---|
void |
PointCodec.encode(BsonWriter writer,
Point value,
EncoderContext encoderContext) |