public class FilterByStringRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.filterByString(FilterByStringRequest)
.
columnNames
; GPUdb will search through all string columns of the table that have
text search enabled. Also, the first character of a search term cannot be a wildcard (* or ?), and search terms cannot be any of
the following: "a", "an", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "no", "not", "of",
"on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with".
Modifier and Type | Class and Description |
---|---|
static class |
FilterByStringRequest.Mode
The string filtering mode to apply.
|
static class |
FilterByStringRequest.Options
Optional parameters.
|
Constructor and Description |
---|
FilterByStringRequest()
Constructs a FilterByStringRequest object with default parameters.
|
FilterByStringRequest(String tableName,
String viewName,
String expression,
String mode,
List<String> columnNames,
Map<String,String> options)
Constructs a FilterByStringRequest 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.
|
List<String> |
getColumnNames() |
String |
getExpression() |
String |
getMode() |
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.
|
FilterByStringRequest |
setColumnNames(List<String> columnNames) |
FilterByStringRequest |
setExpression(String expression) |
FilterByStringRequest |
setMode(String mode) |
FilterByStringRequest |
setOptions(Map<String,String> options) |
FilterByStringRequest |
setTableName(String tableName) |
FilterByStringRequest |
setViewName(String viewName) |
String |
toString() |
public FilterByStringRequest()
public FilterByStringRequest(String tableName, String viewName, String expression, String mode, List<String> columnNames, Map<String,String> options)
tableName
- Name of the table on which the filter operation will be performed. Must be a valid GPUdb table, collection
or view.viewName
- If provided, then this will be the name of the view containing the results. Must not be an already existing
collection, table or view.expression
- The expression with which to filter the table.mode
- The string filtering mode to apply. See above for details. Values: search, equals, contains, starts_with, regex.columnNames
- List of columns on which to apply the filter. Ignored for 'search' mode.options
- Optional parameters.
public static org.apache.avro.Schema getClassSchema()
public String getTableName()
public FilterByStringRequest setTableName(String tableName)
tableName
- Name of the table on which the filter operation will be performed. Must be a valid GPUdb table, collection
or view.this
to mimic the builder pattern.public String getViewName()
public FilterByStringRequest setViewName(String viewName)
viewName
- If provided, then this will be the name of the view containing the results. Must not be an already existing
collection, table or view.this
to mimic the builder pattern.public String getExpression()
public FilterByStringRequest setExpression(String expression)
expression
- The expression with which to filter the table.this
to mimic the builder pattern.public String getMode()
public FilterByStringRequest setMode(String mode)
mode
- The string filtering mode to apply. See above for details. Values: search, equals, contains, starts_with, regex.this
to mimic the builder pattern.public List<String> getColumnNames()
public FilterByStringRequest setColumnNames(List<String> columnNames)
columnNames
- List of columns on which to apply the filter. Ignored for 'search' mode.this
to mimic the builder pattern.public Map<String,String> getOptions()
public FilterByStringRequest 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.