public class CreateUnionRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.createUnion(CreateUnionRequest)
.
Modifier and Type | Class and Description |
---|---|
static class |
CreateUnionRequest.Options
Optional parameters.
|
Constructor and Description |
---|
CreateUnionRequest()
Constructs a CreateUnionRequest object with default parameters.
|
CreateUnionRequest(String tableName,
List<String> tableNames,
List<List<String>> inputColumnNames,
List<String> outputColumnNames,
Map<String,String> options)
Constructs a CreateUnionRequest 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<List<String>> |
getInputColumnNames() |
Map<String,String> |
getOptions() |
List<String> |
getOutputColumnNames() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called directly by the user.
|
String |
getTableName() |
List<String> |
getTableNames() |
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.
|
CreateUnionRequest |
setInputColumnNames(List<List<String>> inputColumnNames) |
CreateUnionRequest |
setOptions(Map<String,String> options) |
CreateUnionRequest |
setOutputColumnNames(List<String> outputColumnNames) |
CreateUnionRequest |
setTableName(String tableName) |
CreateUnionRequest |
setTableNames(List<String> tableNames) |
String |
toString() |
public CreateUnionRequest()
public CreateUnionRequest(String tableName, List<String> tableNames, List<List<String>> inputColumnNames, List<String> outputColumnNames, Map<String,String> options)
tableName
- Name of the table to be created. Must not be the name of a currently existing GPUdb table. Cannot be an
empty string.tableNames
- The list of table names making up the union. Must contain the names of one or more existing tables.inputColumnNames
- The list of columns from each of the corresponding input tables.outputColumnNames
- The list of names of the columns to be stored in the union.options
- Optional parameters.
public static org.apache.avro.Schema getClassSchema()
public String getTableName()
public CreateUnionRequest setTableName(String tableName)
tableName
- Name of the table to be created. Must not be the name of a currently existing GPUdb table. Cannot be an
empty string.this
to mimic the builder pattern.public List<String> getTableNames()
public CreateUnionRequest setTableNames(List<String> tableNames)
tableNames
- The list of table names making up the union. Must contain the names of one or more existing tables.this
to mimic the builder pattern.public List<List<String>> getInputColumnNames()
public CreateUnionRequest setInputColumnNames(List<List<String>> inputColumnNames)
inputColumnNames
- The list of columns from each of the corresponding input tables.this
to mimic the builder pattern.public List<String> getOutputColumnNames()
public CreateUnionRequest setOutputColumnNames(List<String> outputColumnNames)
outputColumnNames
- The list of names of the columns to be stored in the union.this
to mimic the builder pattern.public Map<String,String> getOptions()
public CreateUnionRequest 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.