public class FilterByBoxGeometryRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.filterByBoxGeometry(FilterByBoxGeometryRequest)
.
Calculates which geospatial geometry objects from a table intersect a
rectangular box. The operation is synchronous, meaning that a response will
not be returned until all the objects are fully available. The response
payload provides the count of the resulting set. A new resultant set which
satisfies the input NAI restriction specification is also created when a
viewName
is passed in as part of the input payload.
Modifier and Type | Class and Description |
---|---|
static class |
FilterByBoxGeometryRequest.Options
Optional parameters.
|
Constructor and Description |
---|
FilterByBoxGeometryRequest()
Constructs a FilterByBoxGeometryRequest object with default parameters.
|
FilterByBoxGeometryRequest(String tableName,
String viewName,
String columnName,
double minX,
double maxX,
double minY,
double maxY,
Map<String,String> options)
Constructs a FilterByBoxGeometryRequest object with the specified
parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getColumnName() |
double |
getMaxX() |
double |
getMaxY() |
double |
getMinX() |
double |
getMinY() |
Map<String,String> |
getOptions() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getTableName() |
String |
getViewName() |
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
FilterByBoxGeometryRequest |
setColumnName(String columnName) |
FilterByBoxGeometryRequest |
setMaxX(double maxX) |
FilterByBoxGeometryRequest |
setMaxY(double maxY) |
FilterByBoxGeometryRequest |
setMinX(double minX) |
FilterByBoxGeometryRequest |
setMinY(double minY) |
FilterByBoxGeometryRequest |
setOptions(Map<String,String> options) |
FilterByBoxGeometryRequest |
setTableName(String tableName) |
FilterByBoxGeometryRequest |
setViewName(String viewName) |
String |
toString() |
public FilterByBoxGeometryRequest()
public FilterByBoxGeometryRequest(String tableName, String viewName, String columnName, double minX, double maxX, double minY, double maxY, Map<String,String> options)
tableName
- Name of the table on which the bounding box operation
will be performed. Must be an existing table.viewName
- Optional name of the result view that will be created
containing the results of the query. Must not be an
already existing collection, table or view. The
default value is ''.columnName
- Name of the geospatial geometry column to be
filtered.minX
- Lower bound for the x-coordinate of the rectangular box.
Must be less than or equal to maxX
.maxX
- Upper bound for the x-coordinate of the rectangular box.
Must be greater than or equal to minX
.minY
- Lower bound for the y-coordinate of the rectangular box.
Must be less than or equal to maxY
.maxY
- Upper bound for the y-coordinate of the rectangular box.
Must be greater than or equal to minY
.options
- Optional parameters.
COLLECTION_NAME
: Name of a collection which is to
contain the newly created view. If the collection
provided is non-existent, the collection will be
automatically created. If empty, then the newly created
view will be top-level.
Map
.public static org.apache.avro.Schema getClassSchema()
public String getTableName()
public FilterByBoxGeometryRequest setTableName(String tableName)
tableName
- Name of the table on which the bounding box operation
will be performed. Must be an existing table.this
to mimic the builder pattern.public String getViewName()
public FilterByBoxGeometryRequest setViewName(String viewName)
viewName
- Optional name of the result view that will be created
containing the results of the query. Must not be an
already existing collection, table or view. The
default value is ''.this
to mimic the builder pattern.public String getColumnName()
public FilterByBoxGeometryRequest setColumnName(String columnName)
columnName
- Name of the geospatial geometry column to be
filtered.this
to mimic the builder pattern.public double getMinX()
maxX
.public FilterByBoxGeometryRequest setMinX(double minX)
minX
- Lower bound for the x-coordinate of the rectangular box.
Must be less than or equal to maxX
.this
to mimic the builder pattern.public double getMaxX()
minX
.public FilterByBoxGeometryRequest setMaxX(double maxX)
maxX
- Upper bound for the x-coordinate of the rectangular box.
Must be greater than or equal to minX
.this
to mimic the builder pattern.public double getMinY()
maxY
.public FilterByBoxGeometryRequest setMinY(double minY)
minY
- Lower bound for the y-coordinate of the rectangular box.
Must be less than or equal to maxY
.this
to mimic the builder pattern.public double getMaxY()
minY
.public FilterByBoxGeometryRequest setMaxY(double maxY)
maxY
- Upper bound for the y-coordinate of the rectangular box.
Must be greater than or equal to minY
.this
to mimic the builder pattern.public Map<String,String> getOptions()
COLLECTION_NAME
: Name of a collection which is to contain the
newly created view. If the collection provided is non-existent,
the collection will be automatically created. If empty, then the
newly created view will be top-level.
Map
.public FilterByBoxGeometryRequest setOptions(Map<String,String> options)
options
- Optional parameters.
COLLECTION_NAME
: Name of a collection which is to
contain the newly created view. If the collection
provided is non-existent, the collection will be
automatically created. If empty, then the newly created
view will be top-level.
Map
.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2020. All rights reserved.