public class FilterByGeometryRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.filterByGeometry(FilterByGeometryRequest)
.
Applies a geometry filter against a geospatial geometry column in a given
table, collection or view. The filtering geometry is provided by inputWkt
.
Modifier and Type | Class and Description |
---|---|
static class |
FilterByGeometryRequest.Operation
The geometric filtering operation to perform
Supported values:
CONTAINS :
Matches records that contain the given WKT in inputWkt , i.e. |
static class |
FilterByGeometryRequest.Options
Optional parameters.
|
Constructor and Description |
---|
FilterByGeometryRequest()
Constructs a FilterByGeometryRequest object with default parameters.
|
FilterByGeometryRequest(String tableName,
String viewName,
String columnName,
String inputWkt,
String operation,
Map<String,String> options)
Constructs a FilterByGeometryRequest 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() |
String |
getInputWkt() |
String |
getOperation() |
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.
|
FilterByGeometryRequest |
setColumnName(String columnName) |
FilterByGeometryRequest |
setInputWkt(String inputWkt) |
FilterByGeometryRequest |
setOperation(String operation) |
FilterByGeometryRequest |
setOptions(Map<String,String> options) |
FilterByGeometryRequest |
setTableName(String tableName) |
FilterByGeometryRequest |
setViewName(String viewName) |
String |
toString() |
public FilterByGeometryRequest()
public FilterByGeometryRequest(String tableName, String viewName, String columnName, String inputWkt, String operation, Map<String,String> options)
tableName
- Name of the table on which the filter by geometry will
be performed. Must be an existing table, collection
or view containing a geospatial geometry column.viewName
- If provided, then this will be the name of the view
containing the results. Has the same naming
restrictions as tables. The default value is ''.columnName
- Name of the column to be used in the filter. Must be
a geospatial geometry column.inputWkt
- A geometry in WKT format that will be used to filter
the objects in tableName
. The default value is
''.operation
- The geometric filtering operation to perform
Supported values:
CONTAINS
: Matches records that contain the given WKT
in inputWkt
, i.e. the given WKT is within the
bounds of a record's geometry.
CROSSES
: Matches records that cross the given WKT.
DISJOINT
: Matches records that are disjoint from the
given WKT.
EQUALS
: Matches records that are the same as the
given WKT.
INTERSECTS
: Matches records that intersect the given
WKT.
OVERLAPS
: Matches records that overlap the given WKT.
TOUCHES
: Matches records that touch the given WKT.
WITHIN
: Matches records that are within the given
WKT.
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 FilterByGeometryRequest setTableName(String tableName)
tableName
- Name of the table on which the filter by geometry will
be performed. Must be an existing table, collection
or view containing a geospatial geometry column.this
to mimic the builder pattern.public String getViewName()
public FilterByGeometryRequest setViewName(String viewName)
viewName
- If provided, then this will be the name of the view
containing the results. Has the same naming
restrictions as tables. The default value is ''.this
to mimic the builder pattern.public String getColumnName()
public FilterByGeometryRequest setColumnName(String columnName)
columnName
- Name of the column to be used in the filter. Must be
a geospatial geometry column.this
to mimic the builder pattern.public String getInputWkt()
tableName
. The default value is ''.public FilterByGeometryRequest setInputWkt(String inputWkt)
inputWkt
- A geometry in WKT format that will be used to filter
the objects in tableName
. The default value is
''.this
to mimic the builder pattern.public String getOperation()
CONTAINS
: Matches records that contain the given WKT in inputWkt
, i.e. the given WKT is within the bounds of a record's
geometry.
CROSSES
: Matches records that cross the given WKT.
DISJOINT
: Matches records that are disjoint from the given WKT.
EQUALS
: Matches records that are the same as the given WKT.
INTERSECTS
: Matches records that intersect the given WKT.
OVERLAPS
: Matches records that overlap the given WKT.
TOUCHES
: Matches records that touch the given WKT.
WITHIN
: Matches records that are within the given WKT.
public FilterByGeometryRequest setOperation(String operation)
operation
- The geometric filtering operation to perform
Supported values:
CONTAINS
: Matches records that contain the given WKT
in inputWkt
, i.e. the given WKT is within the
bounds of a record's geometry.
CROSSES
: Matches records that cross the given WKT.
DISJOINT
: Matches records that are disjoint from the
given WKT.
EQUALS
: Matches records that are the same as the
given WKT.
INTERSECTS
: Matches records that intersect the given
WKT.
OVERLAPS
: Matches records that overlap the given WKT.
TOUCHES
: Matches records that touch the given WKT.
WITHIN
: Matches records that are within the given
WKT.
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 FilterByGeometryRequest 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 © 2019. All rights reserved.