public class ContainerFactory
extends java.lang.Object
Constructor and Description |
---|
ContainerFactory(SAMFileHeader samFileHeader,
int recordsPerSlice) |
Modifier and Type | Method and Description |
---|---|
Container |
buildContainer(java.util.List<CramCompressionRecord> records,
long containerByteOffset)
Build a Container (and its constituent Slices) from
CramCompressionRecord s. |
boolean |
isPreserveReadNames() |
void |
setPreserveReadNames(boolean preserveReadNames) |
public ContainerFactory(SAMFileHeader samFileHeader, int recordsPerSlice)
public Container buildContainer(java.util.List<CramCompressionRecord> records, long containerByteOffset)
CramCompressionRecord
s.
Note that this will always result in a single Container, regardless of how many Slices
are created. It is up to the caller to divide the records into multiple Containers,
if that is desired.
TODO: enable a setting to automate this, perhaps "recordsPerContainer"records
- the records used to build the ContainercontainerByteOffset
- the Container's byte offset from the start of the streampublic boolean isPreserveReadNames()
public void setPreserveReadNames(boolean preserveReadNames)