public class Response
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
Response.Builder
RecordBuilder for Response instances.
|
| Modifier and Type | Field and Description |
|---|---|
int |
numResults
Deprecated.
|
List<ByteBuffer> |
results
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
Response()
Default constructor.
|
Response(Integer numResults,
List<ByteBuffer> results)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
Integer |
getNumResults()
Gets the value of the 'numResults' field.
|
List<ByteBuffer> |
getResults()
Gets the value of the 'results' field.
|
org.apache.avro.Schema |
getSchema() |
static Response.Builder |
newBuilder()
Creates a new Response RecordBuilder
|
static Response.Builder |
newBuilder(Response.Builder other)
Creates a new Response RecordBuilder by copying an existing Builder
|
static Response.Builder |
newBuilder(Response other)
Creates a new Response RecordBuilder by copying an existing Response instance
|
void |
put(int field$,
Object value$) |
void |
setNumResults(Integer value)
Sets the value of the 'numResults' field.
|
void |
setResults(List<ByteBuffer> value)
Sets the value of the 'results' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public int numResults
@Deprecated public List<ByteBuffer> results
public Response()
public Response(Integer numResults, List<ByteBuffer> results)
public static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainergetSchema in class org.apache.avro.specific.SpecificRecordBasepublic Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic Integer getNumResults()
public void setNumResults(Integer value)
value - the value to set.public List<ByteBuffer> getResults()
public void setResults(List<ByteBuffer> value)
value - the value to set.public static Response.Builder newBuilder()
public static Response.Builder newBuilder(Response.Builder other)
public static Response.Builder newBuilder(Response other)
Copyright © 2016. All rights reserved.