public abstract class AbstractPeakListReader<A extends PeakAnnotation,PL extends PeakList<A>> extends AbstractAvroReader<PL>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
handleAnnotations |
protected List<PeakProcessor<A,A>> |
peakProcessorList |
protected com.google.common.base.Optional<PeakList.Precision> |
precisionOverride |
| Constructor and Description |
|---|
AbstractPeakListReader(AbstractAvroReader<? extends A>[] annotationReaders,
com.google.common.base.Optional<PeakList.Precision> precisionOverride,
List<PeakProcessor<A,A>> peakProcessorList) |
| 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
|
protected abstract PL |
newPeakList(PeakList.Precision precision,
double constantIntensity) |
PL |
read(org.apache.avro.io.Decoder in)
Read the object from the decoder
|
getRecordName, getRecordNameSpace, readArray, readMap, readMap, readMap, readOptional, readStringArray, readUnion, readUnionArraycreateEnumSchema, createSchema, createSchemaField, createUnionSchema, createUnionSchema, getRecordDoc, getUnion, registerUnion, rewriteNameSpaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSchema, getObjectClassprotected final com.google.common.base.Optional<PeakList.Precision> precisionOverride
protected final List<PeakProcessor<A extends PeakAnnotation,A extends PeakAnnotation>> peakProcessorList
protected final boolean handleAnnotations
public AbstractPeakListReader(AbstractAvroReader<? extends A>[] annotationReaders, com.google.common.base.Optional<PeakList.Precision> precisionOverride, List<PeakProcessor<A,A>> peakProcessorList)
public PL read(org.apache.avro.io.Decoder in) throws IOException
AvroReaderin - the decoderIOExceptionprotected void createRecordFields(List<org.apache.avro.Schema.Field> fields)
AvroIOcreateRecordFields in class AvroIO<AbstractAvroReader>fields - the list to add the fields toprotected abstract PL newPeakList(PeakList.Precision precision, double constantIntensity)
Copyright © 2016. All Rights Reserved.