Package com.gpudb.protocol
Class UpdateRecordsResponse
java.lang.Object
com.gpudb.protocol.UpdateRecordsResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of results returned by
GPUdb.updateRecords.Constructor Summary
ConstructorsConstructorDescriptionConstructs an UpdateRecordsResponse 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.longTotal number of records inserted (due to expressions not matching any existing records).Total number of records inserted per predicate inexpressions(will be either 0 or 1 for each expression).Total number of records updated per predicate inexpressions.longTotal number of records updated.getInfo()Additional information.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(long countInserted) Total number of records inserted (due to expressions not matching any existing records).setCountsInserted(List<Long> countsInserted) Total number of records inserted per predicate inexpressions(will be either 0 or 1 for each expression).setCountsUpdated(List<Long> countsUpdated) Total number of records updated per predicate inexpressions.setCountUpdated(long countUpdated) Total number of records updated.Additional information.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.getCountUpdated
public long getCountUpdated()Total number of records updated.Returns:The current value ofcountUpdated.setCountUpdated
Total number of records updated.Parameters:countUpdated- The new value forcountUpdated.Returns:thisto mimic the builder pattern.getCountsUpdated
Total number of records updated per predicate inexpressions.Returns:The current value ofcountsUpdated.setCountsUpdated
Total number of records updated per predicate inexpressions.Parameters:countsUpdated- The new value forcountsUpdated.Returns:thisto mimic the builder pattern.getCountInserted
public long getCountInserted()Total number of records inserted (due to expressions not matching any existing records).Returns:The current value ofcountInserted.setCountInserted
Total number of records inserted (due to expressions not matching any existing records).Parameters:countInserted- The new value forcountInserted.Returns:thisto mimic the builder pattern.getCountsInserted
Total number of records inserted per predicate inexpressions(will be either 0 or 1 for each expression).Returns:The current value ofcountsInserted.setCountsInserted
Total number of records inserted per predicate inexpressions(will be either 0 or 1 for each expression).Parameters:countsInserted- The new value forcountsInserted.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: