public class MsnSpectrumWriter extends AbstractPeakListWriter<MsnSpectrum>
| Constructor and Description |
|---|
MsnSpectrumWriter() |
MsnSpectrumWriter(com.google.common.base.Optional<PeakList.Precision> precisionOverride) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createRecordFields(List<org.apache.avro.Schema.Field> fields)
Create a list containing the Schema.Fields for the fields that this class writes
|
Class |
getObjectClass() |
void |
write(MsnSpectrum spectrum,
org.apache.avro.io.Encoder out)
Write the value to the encoder
|
writePeakListgetRecordName, getRecordNameSpace, writeArray, writeMap, writeMap, writeMap, writeOptional, writeStringArray, writeUnion, writeUnionArraycreateEnumSchema, createSchema, createSchemaField, createUnionSchema, createUnionSchema, getRecordDoc, getUnion, registerUnion, rewriteNameSpaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSchemapublic MsnSpectrumWriter()
public MsnSpectrumWriter(com.google.common.base.Optional<PeakList.Precision> precisionOverride)
public Class getObjectClass()
public void write(MsnSpectrum spectrum, org.apache.avro.io.Encoder out) throws IOException
AvroWriterspectrum - the value to writeout - the encoderIOExceptionprotected void createRecordFields(List<org.apache.avro.Schema.Field> fields)
AvroIOcreateRecordFields in class AbstractPeakListWriter<MsnSpectrum>fields - the list to add the fields toCopyright © 2016. All Rights Reserved.