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