public class Row
extends org.apache.avro.specific.SpecificRecordBase
| Modifier and Type | Class and Description |
|---|---|
static class |
Row.Builder
RecordBuilder for Row instances.
|
| Modifier and Type | Field and Description |
|---|---|
int |
rowId
Deprecated.
|
CharSequence |
rowString
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
Row()
Default constructor.
|
Row(Integer rowId,
CharSequence rowString)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
Integer |
getRowId()
Gets the value of the 'rowId' field.
|
CharSequence |
getRowString()
Gets the value of the 'rowString' field.
|
org.apache.avro.Schema |
getSchema() |
static Row.Builder |
newBuilder()
Creates a new Row RecordBuilder.
|
static Row.Builder |
newBuilder(Row.Builder other)
Creates a new Row RecordBuilder by copying an existing Builder.
|
static Row.Builder |
newBuilder(Row other)
Creates a new Row RecordBuilder by copying an existing Row instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setRowId(Integer value)
Sets the value of the 'rowId' field.
|
void |
setRowString(CharSequence value)
Sets the value of the 'rowString' field.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public int rowId
@Deprecated public CharSequence rowString
public Row()
newBuilder().public Row(Integer rowId, CharSequence rowString)
rowId - The new value for rowIdrowString - The new value for rowStringpublic static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
public Object get(int field$)
public void put(int field$,
Object value$)
public Integer getRowId()
public void setRowId(Integer value)
value - the value to set.public CharSequence getRowString()
public void setRowString(CharSequence value)
value - the value to set.public static Row.Builder newBuilder()
public static Row.Builder newBuilder(Row.Builder other)
other - The existing builder to copy.public static Row.Builder newBuilder(Row other)
other - The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
IOExceptionpublic void readExternal(ObjectInput in) throws IOException
IOExceptionCopyright © 2017. All rights reserved.