Class BinaryTableWriter<R>
java.lang.Object
org.broadinstitute.hellbender.utils.BinaryTableWriter<R>
- Type Parameters:
R
- record type.
- All Implemented Interfaces:
AutoCloseable
Abstract file writing class for record tables stored in binary format.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
getPath()
long
long
offset()
void
void
protected abstract void
writeRecord
(R record, DataOutput output)
-
Field Details
-
dataOut
-
-
Constructor Details
-
BinaryTableWriter
-
-
Method Details
-
offset
public long offset() -
getPath
-
writeRecord
- Throws:
IOException
-
write
- Throws:
IOException
-
writeAll
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
flush
- Throws:
IOException
-
numberOfRecords
public long numberOfRecords()
-