@Override public void write(K ignored, VariantContextWritable vc) { writeRecord(vc.get()); } }
public RecordWriter<K,VariantContextWritable> getRecordWriter( TaskAttemptContext ctx, Path out) throws IOException { if (this.header == null) throw new IOException( "Can't create a RecordWriter without the VCF header"); final boolean wh = ctx.getConfiguration().getBoolean( WRITE_HEADER_PROPERTY, true); switch (format) { case BCF: return new KeyIgnoringBCFRecordWriter<K>(out,header,wh,ctx); case VCF: return new KeyIgnoringVCFRecordWriter<K>(out,header,wh,ctx); default: assert false; return null; } }
public RecordWriter<K,VariantContextWritable> getRecordWriter( TaskAttemptContext ctx, Path out) throws IOException { if (this.header == null) throw new IOException( "Can't create a RecordWriter without the VCF header"); final boolean wh = ctx.getConfiguration().getBoolean( WRITE_HEADER_PROPERTY, true); switch (format) { case BCF: return new KeyIgnoringBCFRecordWriter<K>(out,header,wh,ctx); case VCF: return new KeyIgnoringVCFRecordWriter<K>(out,header,wh,ctx); default: assert false; return null; } }
private RecordWriter<K,VariantContextWritable> getRecordWriter( TaskAttemptContext ctx, OutputStream outputStream) throws IOException { if (this.header == null) throw new IOException( "Can't create a RecordWriter without the VCF header"); final boolean wh = ctx.getConfiguration().getBoolean( WRITE_HEADER_PROPERTY, true); switch (format) { case BCF: return new KeyIgnoringBCFRecordWriter<K>(outputStream,header,wh); case VCF: return new KeyIgnoringVCFRecordWriter<K>(outputStream,header,wh); default: assert false; return null; } } }
@Override public void write(K ignored, VariantContextWritable vc) { writeRecord(vc.get()); } }
public RecordWriter<K,VariantContextWritable> getRecordWriter( TaskAttemptContext ctx, Path out) throws IOException { if (this.header == null) throw new IOException( "Can't create a RecordWriter without the VCF header"); final boolean wh = ctx.getConfiguration().getBoolean( WRITE_HEADER_PROPERTY, true); switch (format) { case BCF: return new KeyIgnoringBCFRecordWriter<K>(out,header,wh,ctx); case VCF: return new KeyIgnoringVCFRecordWriter<K>(out,header,wh,ctx); default: assert false; return null; } }
@Override public void write(K ignored, VariantContextWritable vc) { writeRecord(vc.get()); } }
public RecordWriter<K,VariantContextWritable> getRecordWriter( TaskAttemptContext ctx, OutputStream outputStream) throws IOException { if (this.header == null) throw new IOException( "Can't create a RecordWriter without the VCF header"); final boolean wh = ctx.getConfiguration().getBoolean( WRITE_HEADER_PROPERTY, true); switch (format) { case BCF: return new KeyIgnoringBCFRecordWriter<K>(outputStream,header,wh,ctx); case VCF: return new KeyIgnoringVCFRecordWriter<K>(outputStream,header,wh,ctx); default: assert false; return null; } } }
public RecordWriter<K,VariantContextWritable> getRecordWriter( TaskAttemptContext ctx, OutputStream outputStream) throws IOException { if (this.header == null) throw new IOException( "Can't create a RecordWriter without the VCF header"); final boolean wh = ctx.getConfiguration().getBoolean( WRITE_HEADER_PROPERTY, true); switch (format) { case BCF: return new KeyIgnoringBCFRecordWriter<K>(outputStream,header,wh,ctx); case VCF: return new KeyIgnoringVCFRecordWriter<K>(outputStream,header,wh,ctx); default: assert false; return null; } } }