public class Fragment
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
Fragment.Builder
RecordBuilder for Fragment instances.
|
Modifier and Type | Field and Description |
---|---|
List<Alignment> |
alignments
Deprecated.
|
Integer |
insertSize
Deprecated.
|
String |
name
Deprecated.
|
String |
readGroupId
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
Fragment()
Default constructor.
|
Fragment(String name,
String readGroupId,
Integer insertSize,
List<Alignment> alignments)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.avro.message.BinaryMessageDecoder<Fragment> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore . |
static Fragment |
fromByteBuffer(ByteBuffer b)
Deserializes a Fragment from a ByteBuffer.
|
Object |
get(int field$) |
List<Alignment> |
getAlignments()
Gets the value of the 'alignments' field.
|
static org.apache.avro.Schema |
getClassSchema() |
static org.apache.avro.message.BinaryMessageDecoder<Fragment> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
Integer |
getInsertSize()
Gets the value of the 'insertSize' field.
|
String |
getName()
Gets the value of the 'name' field.
|
String |
getReadGroupId()
Gets the value of the 'readGroupId' field.
|
org.apache.avro.Schema |
getSchema() |
static Fragment.Builder |
newBuilder()
Creates a new Fragment RecordBuilder.
|
static Fragment.Builder |
newBuilder(Fragment.Builder other)
Creates a new Fragment RecordBuilder by copying an existing Builder.
|
static Fragment.Builder |
newBuilder(Fragment other)
Creates a new Fragment RecordBuilder by copying an existing Fragment instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setAlignments(List<Alignment> value)
Sets the value of the 'alignments' field.
|
void |
setInsertSize(Integer value)
Sets the value of the 'insertSize' field.
|
void |
setName(String value)
Sets the value of the 'name' field.
|
void |
setReadGroupId(String value)
Sets the value of the 'readGroupId' field.
|
ByteBuffer |
toByteBuffer()
Serializes this Fragment to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public String name
@Deprecated public String readGroupId
@Deprecated public Integer insertSize
@Deprecated public List<Alignment> alignments
public Fragment()
newBuilder()
.public Fragment(String name, String readGroupId, Integer insertSize, List<Alignment> alignments)
name
- Name of this fragment.readGroupId
- Read group identifier for this fragment. Join with ReadGroup.id for read
group metadata.insertSize
- Insert size for this fragment, derived from alignment, if the reads have
been aligned.alignments
- Reads from this fragment.public static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<Fragment> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<Fragment> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore
.resolver
- a SchemaStore
used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOException
public static Fragment fromByteBuffer(ByteBuffer b) throws IOException
IOException
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 String getName()
public void setName(String value)
value
- the value to set.public String getReadGroupId()
public void setReadGroupId(String value)
value
- the value to set.public Integer getInsertSize()
public void setInsertSize(Integer value)
value
- the value to set.public List<Alignment> getAlignments()
public void setAlignments(List<Alignment> value)
value
- the value to set.public static Fragment.Builder newBuilder()
public static Fragment.Builder newBuilder(Fragment.Builder other)
other
- The existing builder to copy.public static Fragment.Builder newBuilder(Fragment 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 © 2019. All rights reserved.