Package picard.vcf.processor
Class VariantProcessor<RESULT,ACCUMULATOR extends VariantProcessor.Accumulator<RESULT>>
- java.lang.Object
-
- picard.vcf.processor.VariantProcessor<RESULT,ACCUMULATOR>
-
public class VariantProcessor<RESULT,ACCUMULATOR extends VariantProcessor.Accumulator<RESULT>> extends Object
Describes an object that processes variants and produces a result. A consumer typically builds an instance of this class viaVariantProcessor.Builder
, providing it the appropriateVariantProcessor.AccumulatorGenerator
andVariantProcessor.ResultMerger
, then callsprocess()
to obtain the RESULT of the processing. Future work...? - Make more efficient for the single-thread case. - AVcfPathSegmentGenerator
that is based on an interval list, so that segments' span a constant-size total-base-count overlap with the interval list (or something in that vein).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VariantProcessor.Accumulator<RESULT>
HandlesVariantContext
s, and accumulates their data in some fashion internally.static interface
VariantProcessor.AccumulatorGenerator<ACCUMULATOR extends VariantProcessor.Accumulator<RESULT>,RESULT>
Generates instances ofVariantProcessor.Accumulator
s.static class
VariantProcessor.Builder<A extends VariantProcessor.Accumulator<R>,R>
Simple builder ofVariantProcessor
s.static interface
VariantProcessor.ResultMerger<RESULT>
Takes a collection of results produced byVariantProcessor.Accumulator.result()
and merges them into a single RESULT.
-
-
-
Method Detail
-
process
public RESULT process()
-
-