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 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. the
given WKT is within the bounds of a record's geometry. |
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, in [schema_name.]table_name format,
using standard name resolution rules. Must be an
existing table or view containing a geospatial
geometry column.viewName
- If provided, then this will be the name of the view
containing the results, in [schema_name.]view_name
format, using standard name resolution rules and meeting table naming criteria. Must not be
an already existing table or view. 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.
CREATE_TEMP_TABLE
: If true
, a unique temporary
table name will be generated in the sys_temp schema and
used in place of viewName
. This is always
allowed even if the caller does not have permission to
create tables. The generated name is returned in qualified_view_name
.
Supported values:
The default value is FALSE
.
COLLECTION_NAME
: [DEPRECATED--please specify the
containing schema for the view as part of viewName
and use GPUdb.createSchema(CreateSchemaRequest)
to
create the schema if non-existent] Name of a schema for
the newly created view. If the schema provided is
non-existent, it will be automatically created.
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, in [schema_name.]table_name format,
using standard name resolution rules. Must be an
existing table 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, in [schema_name.]view_name
format, using standard name resolution rules and meeting table naming criteria. Must not be
an already existing table or view. 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()
CREATE_TEMP_TABLE
: If true
, a unique temporary table
name will be generated in the sys_temp schema and used in place
of viewName
. This is always allowed even if the caller
does not have permission to create tables. The generated name is
returned in qualified_view_name
.
Supported values:
The default value is FALSE
.
COLLECTION_NAME
: [DEPRECATED--please specify the containing
schema for the view as part of viewName
and use GPUdb.createSchema(CreateSchemaRequest)
to create the
schema if non-existent] Name of a schema for the newly created
view. If the schema provided is non-existent, it will be
automatically created.
Map
.public FilterByGeometryRequest setOptions(Map<String,String> options)
options
- Optional parameters.
CREATE_TEMP_TABLE
: If true
, a unique temporary
table name will be generated in the sys_temp schema and
used in place of viewName
. This is always
allowed even if the caller does not have permission to
create tables. The generated name is returned in qualified_view_name
.
Supported values:
The default value is FALSE
.
COLLECTION_NAME
: [DEPRECATED--please specify the
containing schema for the view as part of viewName
and use GPUdb.createSchema(CreateSchemaRequest)
to
create the schema if non-existent] Name of a schema for
the newly created view. If the schema provided is
non-existent, it will be automatically created.
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 © 2024. All rights reserved.