public class CreateTypeRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.createType(CreateTypeRequest)
.
data
and store_only
.
inserting
data into a table with a primary key, depending
on the parameters in the request, incoming objects with primary keys that match existing objects will either overwrite (i.e.
update) the existing object or will be skipped and not added into the set.
Modifier and Type | Class and Description |
---|---|
static class |
CreateTypeRequest.Properties
Each key-value pair specifies the properties to use for a given column where the key is the column name.
|
Constructor and Description |
---|
CreateTypeRequest()
Constructs a CreateTypeRequest object with default parameters.
|
CreateTypeRequest(String typeDefinition,
String label,
Map<String,List<String>> properties,
Map<String,String> options)
Constructs a CreateTypeRequest 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 |
getLabel() |
Map<String,String> |
getOptions() |
Map<String,List<String>> |
getProperties() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called directly by the user.
|
String |
getTypeDefinition() |
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.
|
CreateTypeRequest |
setLabel(String label) |
CreateTypeRequest |
setOptions(Map<String,String> options) |
CreateTypeRequest |
setProperties(Map<String,List<String>> properties) |
CreateTypeRequest |
setTypeDefinition(String typeDefinition) |
String |
toString() |
public CreateTypeRequest()
public CreateTypeRequest(String typeDefinition, String label, Map<String,List<String>> properties, Map<String,String> options)
typeDefinition
- a JSON string describing the columns of the type to be registered.label
- A user-defined description string which can be used to differentiate between tables and types with otherwise
identical schemas.properties
- Each key-value pair specifies the properties to use for a given column where the key is the column name.
All keys used must be relevant column names for the given table. Specifying any property overrides the
default properties for that column (which is based on the column's data type).options
- Optional parameters.public static org.apache.avro.Schema getClassSchema()
public String getTypeDefinition()
public CreateTypeRequest setTypeDefinition(String typeDefinition)
typeDefinition
- a JSON string describing the columns of the type to be registered.this
to mimic the builder pattern.public String getLabel()
public CreateTypeRequest setLabel(String label)
label
- A user-defined description string which can be used to differentiate between tables and types with otherwise
identical schemas.this
to mimic the builder pattern.public Map<String,List<String>> getProperties()
public CreateTypeRequest setProperties(Map<String,List<String>> properties)
properties
- Each key-value pair specifies the properties to use for a given column where the key is the column name.
All keys used must be relevant column names for the given table. Specifying any property overrides the
default properties for that column (which is based on the column's data type).this
to mimic the builder pattern.public CreateTypeRequest 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.