@InterfaceAudience.Public @InterfaceStability.Stable public class GenomicsDBRecordReader<VCONTEXT extends htsjdk.tribble.Feature,SOURCE> extends org.apache.hadoop.mapreduce.RecordReader<String,VCONTEXT>
| Modifier and Type | Field and Description |
|---|---|
private long |
currentKey |
private VCONTEXT |
currentVariant |
private GenomicsDBFeatureReader<VCONTEXT,SOURCE> |
featureReader |
private htsjdk.tribble.CloseableTribbleIterator<VCONTEXT> |
iterator |
| Constructor and Description |
|---|
GenomicsDBRecordReader(GenomicsDBFeatureReader<VCONTEXT,SOURCE> featureReader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getCurrentKey() |
VCONTEXT |
getCurrentValue() |
float |
getProgress() |
Boolean |
hasNext() |
private void |
initialize() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext) |
boolean |
nextKeyValue() |
private final GenomicsDBFeatureReader<VCONTEXT extends htsjdk.tribble.Feature,SOURCE> featureReader
private htsjdk.tribble.CloseableTribbleIterator<VCONTEXT extends htsjdk.tribble.Feature> iterator
private VCONTEXT extends htsjdk.tribble.Feature currentVariant
private long currentKey
GenomicsDBRecordReader(GenomicsDBFeatureReader<VCONTEXT,SOURCE> featureReader)
public void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext)
throws IOException,
InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<String,VCONTEXT extends htsjdk.tribble.Feature>IOExceptionInterruptedExceptionprivate void initialize()
throws IOException
IOExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<String,VCONTEXT extends htsjdk.tribble.Feature>IOExceptionInterruptedExceptionpublic String getCurrentKey() throws IOException, InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<String,VCONTEXT extends htsjdk.tribble.Feature>IOExceptionInterruptedExceptionpublic VCONTEXT getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<String,VCONTEXT extends htsjdk.tribble.Feature>IOExceptionInterruptedExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<String,VCONTEXT extends htsjdk.tribble.Feature>IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<String,VCONTEXT extends htsjdk.tribble.Feature>IOExceptionpublic Boolean hasNext()
Copyright © 2017. All rights reserved.