public class DataBlock
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
DataBlock.Builder
RecordBuilder for DataBlock instances.
|
Modifier and Type | Field and Description |
---|---|
long |
baseTimestamp
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
List<DataRow> |
values
Deprecated.
|
Constructor and Description |
---|
DataBlock()
Default constructor.
|
DataBlock(Long baseTimestamp,
List<DataRow> values)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
Long |
getBaseTimestamp()
Gets the value of the 'baseTimestamp' field.
|
static org.apache.avro.Schema |
getClassSchema() |
org.apache.avro.Schema |
getSchema() |
List<DataRow> |
getValues()
Gets the value of the 'values' field.
|
static DataBlock.Builder |
newBuilder()
Creates a new DataBlock RecordBuilder.
|
static DataBlock.Builder |
newBuilder(DataBlock.Builder other)
Creates a new DataBlock RecordBuilder by copying an existing Builder.
|
static DataBlock.Builder |
newBuilder(DataBlock other)
Creates a new DataBlock RecordBuilder by copying an existing DataBlock instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setBaseTimestamp(Long value)
Sets the value of the 'baseTimestamp' field.
|
void |
setValues(List<DataRow> value)
Sets the value of the 'values' field.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public long baseTimestamp
@Deprecated public List<DataRow> values
public DataBlock()
newBuilder()
.public static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public Object get(int field$)
get
in interface org.apache.avro.generic.IndexedRecord
get
in class org.apache.avro.specific.SpecificRecordBase
public void put(int field$, Object value$)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
public Long getBaseTimestamp()
public void setBaseTimestamp(Long value)
value
- the value to set.public void setValues(List<DataRow> value)
value
- the value to set.public static DataBlock.Builder newBuilder()
public static DataBlock.Builder newBuilder(DataBlock.Builder other)
other
- The existing builder to copy.public static DataBlock.Builder newBuilder(DataBlock other)
other
- The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
readExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
Copyright © 2018 SPF4J. All rights reserved.