Package com.gpudb.protocol
Class InsertRecordsFromQueryResponse
java.lang.Object
com.gpudb.protocol.InsertRecordsFromQueryResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordpublic class InsertRecordsFromQueryResponse extends Object implements org.apache.avro.generic.IndexedRecord
A set of results returned by
GPUdb.insertRecordsFromQuery.Constructor Summary
ConstructorsConstructorDescriptionConstructs an InsertRecordsFromQueryResponse object with default parameters.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.longNumber of records inserted into the target table.longNumber of records skipped, when not running inABORTerror handling mode.long[Not yet implemented] Number of records updated within the target table.getInfo()Additional information.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Value oftableName.A JSON string describing the columns of the target table.ID of the currently registered table structure type for the target table.The user-defined description associated with the target table’s structure.A mapping of each target table column name to an array of column properties associated with that column.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setCountInserted(long countInserted) Number of records inserted into the target table.setCountSkipped(long countSkipped) Number of records skipped, when not running inABORTerror handling mode.setCountUpdated(long countUpdated) [Not yet implemented] Number of records updated within the target table.Additional information.setTableName(String tableName) Value oftableName.setTypeDefinition(String typeDefinition) A JSON string describing the columns of the target table.ID of the currently registered table structure type for the target table.setTypeLabel(String typeLabel) The user-defined description associated with the target table’s structure.setTypeProperties(Map<String, List<String>> typeProperties) A mapping of each target table column name to an array of column properties associated with that column.toString()
Method Details
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.setTableName
Value oftableName.Parameters:tableName- The new value fortableName.Returns:thisto mimic the builder pattern.setTypeId
ID of the currently registered table structure type for the target table.Parameters:typeId- The new value fortypeId.Returns:thisto mimic the builder pattern.setTypeDefinition
A JSON string describing the columns of the target table.Parameters:typeDefinition- The new value fortypeDefinition.Returns:thisto mimic the builder pattern.setTypeLabel
The user-defined description associated with the target table’s structure.Parameters:typeLabel- The new value fortypeLabel.Returns:thisto mimic the builder pattern.setTypeProperties
A mapping of each target table column name to an array of column properties associated with that column.Parameters:typeProperties- The new value fortypeProperties.Returns:thisto mimic the builder pattern.getCountInserted
public long getCountInserted()Number of records inserted into the target table.Returns:The current value ofcountInserted.setCountInserted
Number of records inserted into the target table.Parameters:countInserted- The new value forcountInserted.Returns:thisto mimic the builder pattern.setCountSkipped
Number of records skipped, when not running inABORTerror handling mode.Parameters:countSkipped- The new value forcountSkipped.Returns:thisto mimic the builder pattern.getCountUpdated
public long getCountUpdated()[Not yet implemented] Number of records updated within the target table.Returns:The current value ofcountUpdated.setCountUpdated
[Not yet implemented] Number of records updated within the target table.Parameters:countUpdated- The new value forcountUpdated.Returns:thisto mimic the builder pattern.setInfo
Additional information.Parameters:info- The new value forinfo.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: