public class FilterByBoxRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.filterByBox(FilterByBoxRequest)
.
viewName
is passed in as part of the input payload.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() |
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() |
String |
getXColumnName() |
String |
getYColumnName() |
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) |
FilterByBoxRequest |
setMaxY(double maxY) |
FilterByBoxRequest |
setMinX(double minX) |
FilterByBoxRequest |
setMinY(double minY) |
FilterByBoxRequest |
setOptions(Map<String,String> options) |
FilterByBoxRequest |
setTableName(String tableName) |
FilterByBoxRequest |
setViewName(String viewName) |
FilterByBoxRequest |
setXColumnName(String xColumnName) |
FilterByBoxRequest |
setYColumnName(String yColumnName) |
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. Must be a valid table in GPUdb.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 in GPUdb.xColumnName
- Name of the column on which to perform the bounding box query. If the table's data type is not a shape
type, 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. If the table's data type is not a shape
type, 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.public static org.apache.avro.Schema getClassSchema()
public String getTableName()
public FilterByBoxRequest setTableName(String tableName)
tableName
- Name of the table on which the bounding box operation will be performed. Must be a valid table in GPUdb.this
to mimic the builder pattern.public String getViewName()
public FilterByBoxRequest 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 in GPUdb.this
to mimic the builder pattern.public String getXColumnName()
public FilterByBoxRequest setXColumnName(String xColumnName)
xColumnName
- Name of the column on which to perform the bounding box query. If the table's data type is not a shape
type, must be a valid numeric column.this
to mimic the builder pattern.public double getMinX()
xColumnName
. Must be less than or equal to maxX
.public FilterByBoxRequest setMinX(double minX)
minX
- Lower bound for the column chosen by xColumnName
. Must be less than or equal to maxX
.this
to mimic the builder pattern.public double getMaxX()
xColumnName
. Must be greater than or equal to minX
.public FilterByBoxRequest setMaxX(double maxX)
maxX
- Upper bound for xColumnName
. Must be greater than or equal to minX
.this
to mimic the builder pattern.public String getYColumnName()
public FilterByBoxRequest setYColumnName(String yColumnName)
yColumnName
- Name of a column on which to perform the bounding box query. If the table's data type is not a shape
type, must be a valid numeric column.this
to mimic the builder pattern.public double getMinY()
yColumnName
. Must be less than or equal to maxY
.public FilterByBoxRequest setMinY(double minY)
minY
- Lower bound for yColumnName
. Must be less than or equal to maxY
.this
to mimic the builder pattern.public double getMaxY()
yColumnName
. Must be greater than or equal to minY
.public FilterByBoxRequest setMaxY(double maxY)
maxY
- Upper bound for yColumnName
. Must be greater than or equal to minY
.this
to mimic the builder pattern.public FilterByBoxRequest setOptions(Map<String,String> options)
options
- Optional parameters.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 © 2016. All rights reserved.