public class InsertRecordsResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.insertRecordsRaw(RawInsertRecordsRequest).| Modifier and Type | Class and Description |
|---|---|
static class |
InsertRecordsResponse.Info
Additional information.
|
| Constructor and Description |
|---|
InsertRecordsResponse()
Constructs an InsertRecordsResponse object with default 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.
|
int |
getCountInserted() |
int |
getCountUpdated() |
Map<String,String> |
getInfo() |
List<String> |
getRecordIds() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
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.
|
InsertRecordsResponse |
setCountInserted(int countInserted) |
InsertRecordsResponse |
setCountUpdated(int countUpdated) |
InsertRecordsResponse |
setInfo(Map<String,String> info) |
InsertRecordsResponse |
setRecordIds(List<String> recordIds) |
String |
toString() |
public InsertRecordsResponse()
public static org.apache.avro.Schema getClassSchema()
public List<String> getRecordIds()
public InsertRecordsResponse setRecordIds(List<String> recordIds)
recordIds - An array containing the IDs with which the added
records are identified internally.this to mimic the builder pattern.public int getCountInserted()
public InsertRecordsResponse setCountInserted(int countInserted)
countInserted - The number of records inserted.this to mimic the builder pattern.public int getCountUpdated()
public InsertRecordsResponse setCountUpdated(int countUpdated)
countUpdated - The number of records updated.this to mimic the builder pattern.public Map<String,String> getInfo()
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)
public InsertRecordsResponse setInfo(Map<String,String> info)
info - 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)
this to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainerpublic Object get(int index)
get in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to getIndexOutOfBoundsExceptionpublic void put(int index,
Object value)
put in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to setvalue - the value to setIndexOutOfBoundsExceptionCopyright © 2020. All rights reserved.