public class DataObject
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
DataObject.Builder
RecordBuilder for DataObject instances.
|
Modifier and Type | Field and Description |
---|---|
CharSequence |
contentEncoding
Deprecated.
|
ByteBuffer |
data
Deprecated.
|
Resource |
resource
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
DataObject()
Default constructor.
|
DataObject(Resource resource,
CharSequence contentEncoding,
ByteBuffer data)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
CharSequence |
getContentEncoding()
Gets the value of the 'contentEncoding' field.
|
ByteBuffer |
getData()
Gets the value of the 'data' field.
|
Resource |
getResource()
Gets the value of the 'resource' field.
|
org.apache.avro.Schema |
getSchema() |
static DataObject.Builder |
newBuilder()
Creates a new DataObject RecordBuilder
|
static DataObject.Builder |
newBuilder(DataObject.Builder other)
Creates a new DataObject RecordBuilder by copying an existing Builder
|
static DataObject.Builder |
newBuilder(DataObject other)
Creates a new DataObject RecordBuilder by copying an existing DataObject instance
|
void |
put(int field$,
Object value$) |
void |
setContentEncoding(CharSequence value)
Sets the value of the 'contentEncoding' field.
|
void |
setData(ByteBuffer value)
Sets the value of the 'data' field.
|
void |
setResource(Resource value)
Sets the value of the 'resource' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public Resource resource
@Deprecated public CharSequence contentEncoding
@Deprecated public ByteBuffer data
public DataObject()
newBuilder()
.public DataObject(Resource resource, CharSequence contentEncoding, ByteBuffer data)
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 Resource getResource()
public void setResource(Resource value)
value
- the value to set.public CharSequence getContentEncoding()
public void setContentEncoding(CharSequence value)
value
- the value to set.public ByteBuffer getData()
public void setData(ByteBuffer value)
value
- the value to set.public static DataObject.Builder newBuilder()
public static DataObject.Builder newBuilder(DataObject.Builder other)
public static DataObject.Builder newBuilder(DataObject other)
Copyright © 2023 Petroware AS - https://petroware.no