Package com.gpudb.protocol
Class InsertRecordsResponse
java.lang.Object
com.gpudb.protocol.InsertRecordsResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of results returned by
GPUdb.insertRecords.Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theInsertRecordsResponseparameterinfo.Constructor Summary
ConstructorsConstructorDescriptionConstructs an InsertRecordsResponse 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.intThe number of records inserted.intThe number of records updated.getInfo()Additional information.An array containing the IDs with which the added records are identified internally.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setCountInserted(int countInserted) The number of records inserted.setCountUpdated(int countUpdated) The number of records updated.Additional information.setRecordIds(List<String> recordIds) An array containing the IDs with which the added records are identified internally.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.setRecordIds
An array containing the IDs with which the added records are identified internally.Parameters:recordIds- The new value forrecordIds.Returns:thisto mimic the builder pattern.getCountInserted
public int getCountInserted()The number of records inserted.Returns:The current value ofcountInserted.setCountInserted
The number of records inserted.Parameters:countInserted- The new value forcountInserted.Returns:thisto mimic the builder pattern.getCountUpdated
public int getCountUpdated()The number of records updated.Returns:The current value ofcountUpdated.setCountUpdated
The number of records updated.Parameters:countUpdated- The new value forcountUpdated.Returns:thisto mimic the builder pattern.setInfo
Additional information.BAD_RECORD_INDICES: If return_individual_errors option is specified or implied, returns a comma-separated list of invalid indices (0-based).ERROR_N: Error message for record at index N (0-based).
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: