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 |
---|---|
private static Point |
GeometryDecoderHelper.decodePoint(BsonReader reader) |
Modifier and Type | Method and Description |
---|---|
private static void |
GeometryEncoderHelper.encodePoint(BsonWriter writer,
Point value) |