/** * Read from a stream. */ public GeoShapeQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); if (in.readBoolean()) { shape = in.readNamedWriteable(ShapeBuilder.class); indexedShapeId = null; indexedShapeType = null; } else { shape = null; indexedShapeId = in.readOptionalString(); indexedShapeType = in.readOptionalString(); indexedShapeIndex = in.readOptionalString(); indexedShapePath = in.readOptionalString(); if (in.getVersion().onOrAfter(Version.V_6_4_0)) { indexedShapeRouting = in.readOptionalString(); } else { indexedShapeRouting = null; } } relation = ShapeRelation.readFromStream(in); strategy = in.readOptionalWriteable(SpatialStrategy::readFromStream); ignoreUnmapped = in.readBoolean(); supplier = null; }
/** * Read from a stream. */ public GeoShapeQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); if (in.readBoolean()) { shape = in.readNamedWriteable(ShapeBuilder.class); indexedShapeId = null; indexedShapeType = null; } else { shape = null; indexedShapeId = in.readOptionalString(); indexedShapeType = in.readOptionalString(); indexedShapeIndex = in.readOptionalString(); indexedShapePath = in.readOptionalString(); } relation = ShapeRelation.readFromStream(in); strategy = in.readOptionalWriteable(SpatialStrategy::readFromStream); ignoreUnmapped = in.readBoolean(); }
/** * Read from a stream. */ public GeoShapeQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); if (in.readBoolean()) { shape = in.readNamedWriteable(ShapeBuilder.class); indexedShapeId = null; indexedShapeType = null; } else { shape = null; indexedShapeId = in.readOptionalString(); indexedShapeType = in.readOptionalString(); indexedShapeIndex = in.readOptionalString(); indexedShapePath = in.readOptionalString(); if (in.getVersion().onOrAfter(Version.V_6_4_0)) { indexedShapeRouting = in.readOptionalString(); } else { indexedShapeRouting = null; } } relation = ShapeRelation.readFromStream(in); strategy = in.readOptionalWriteable(SpatialStrategy::readFromStream); ignoreUnmapped = in.readBoolean(); supplier = null; }
/** * Read from a stream. */ public GeoShapeQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); if (in.readBoolean()) { shape = in.readNamedWriteable(ShapeBuilder.class); indexedShapeId = null; indexedShapeType = null; } else { shape = null; indexedShapeId = in.readOptionalString(); indexedShapeType = in.readOptionalString(); indexedShapeIndex = in.readOptionalString(); indexedShapePath = in.readOptionalString(); if (in.getVersion().onOrAfter(Version.V_6_4_0)) { indexedShapeRouting = in.readOptionalString(); } else { indexedShapeRouting = null; } } relation = ShapeRelation.readFromStream(in); strategy = in.readOptionalWriteable(SpatialStrategy::readFromStream); ignoreUnmapped = in.readBoolean(); supplier = null; }