public class FilterByBoxRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.filterByBox
.
Calculates how many objects within the given table lie in 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 |
FilterByBoxRequest.Options
A set of string constants for the
FilterByBoxRequest parameter
options . |
Constructor and Description |
---|
FilterByBoxRequest()
Constructs a FilterByBoxRequest object with default parameters.
|
FilterByBoxRequest(String tableName,
String viewName,
String xColumnName,
double minX,
double maxX,
String yColumnName,
double minY,
double maxY,
Map<String,String> options)
Constructs a FilterByBoxRequest 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.
|
||||
double |
getMaxX()
Upper bound for
xColumnName . |
||||
double |
getMaxY()
Upper bound for
yColumnName . |
||||
double |
getMinX()
Lower bound for the column chosen by
xColumnName . |
||||
double |
getMinY()
Lower bound for
yColumnName . |
||||
Map<String,String> |
getOptions()
Optional parameters.
|
||||
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
||||
String |
getTableName()
Name of the table on which the bounding box operation will be performed,
in [schema_name.]table_name format, using standard
String getViewName()
If provided, then this will be the name of the view containing the
results, in [schema_name.]view_name format, using standard
String getXColumnName()
Name of the column on which to perform the bounding box query.
| ||||
String |
getYColumnName()
Name of a column on which to perform the bounding box query.
|
||||
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.
|
||||
FilterByBoxRequest |
setMaxX(double maxX)
Upper bound for
xColumnName . |
||||
FilterByBoxRequest |
setMaxY(double maxY)
Upper bound for
yColumnName . |
||||
FilterByBoxRequest |
setMinX(double minX)
Lower bound for the column chosen by
xColumnName . |
||||
FilterByBoxRequest |
setMinY(double minY)
Lower bound for
yColumnName . |
||||
FilterByBoxRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
||||
FilterByBoxRequest |
setTableName(String tableName)
Name of the table on which the bounding box operation will be performed,
in [schema_name.]table_name format, using standard
FilterByBoxRequest setViewName(String viewName)
If provided, then this will be the name of the view containing the
results, in [schema_name.]view_name format, using standard
FilterByBoxRequest setXColumnName(String xColumnName)
Name of the column on which to perform the bounding box query.
| ||||
FilterByBoxRequest |
setYColumnName(String yColumnName)
Name of a column on which to perform the bounding box query.
|
||||
String |
toString() |
public FilterByBoxRequest()
public FilterByBoxRequest(String tableName, String viewName, String xColumnName, double minX, double maxX, String yColumnName, double minY, double maxY, Map<String,String> options)
tableName
- Name of the table on which the bounding box operation
will be performed, in [schema_name.]table_name format,
using standard name resolution rules. Must be an
existing table.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
''.xColumnName
- Name of the column on which to perform the bounding
box query. Must be a valid numeric column.minX
- Lower bound for the column chosen by xColumnName
.
Must be less than or equal to maxX
.maxX
- Upper bound for xColumnName
. Must be greater than
or equal to minX
.yColumnName
- Name of a column on which to perform the bounding
box query. Must be a valid numeric column.minY
- Lower bound for yColumnName
. Must be less than or
equal to maxY
.maxY
- Upper bound for yColumnName
. Must be greater than
or equal to minY
.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
to create the schema if
non-existent] Name of a schema for the newly
created view. If the schema is non-existent, it
will be automatically created.
Map
.public static org.apache.avro.Schema getClassSchema()
public String getTableName()
tableName
.public FilterByBoxRequest setTableName(String tableName)
tableName
- The new value for tableName
.this
to mimic the builder pattern.public String getViewName()
viewName
.public FilterByBoxRequest setViewName(String viewName)
viewName
- The new value for viewName
.this
to mimic the builder pattern.public String getXColumnName()
xColumnName
.public FilterByBoxRequest setXColumnName(String xColumnName)
xColumnName
- The new value for xColumnName
.this
to mimic the builder pattern.public double getMinX()
xColumnName
. Must be less than or equal to maxX
.minX
.public FilterByBoxRequest setMinX(double minX)
xColumnName
. Must be less than or equal to maxX
.minX
- The new value for minX
.this
to mimic the builder pattern.public double getMaxX()
xColumnName
. Must be greater
than or equal to minX
.maxX
.public FilterByBoxRequest setMaxX(double maxX)
xColumnName
. Must be greater
than or equal to minX
.maxX
- The new value for maxX
.this
to mimic the builder pattern.public String getYColumnName()
yColumnName
.public FilterByBoxRequest setYColumnName(String yColumnName)
yColumnName
- The new value for yColumnName
.this
to mimic the builder pattern.public double getMinY()
yColumnName
. Must be less than
or equal to maxY
.minY
.public FilterByBoxRequest setMinY(double minY)
yColumnName
. Must be less than
or equal to maxY
.minY
- The new value for minY
.this
to mimic the builder pattern.public double getMaxY()
yColumnName
. Must be greater
than or equal to minY
.maxY
.public FilterByBoxRequest setMaxY(double maxY)
yColumnName
. Must be greater
than or equal to minY
.maxY
- The new value for maxY
.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
to create the schema if non-existent] Name
of a schema for the newly created view. If the schema is
non-existent, it will be automatically created.
Map
.options
.public FilterByBoxRequest setOptions(Map<String,String> options)
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
to create the schema if non-existent] Name
of a schema for the newly created view. If the schema is
non-existent, it will be automatically created.
Map
.options
- The new value for options
.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 © 2025. All rights reserved.