public class CompressionHeaderFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_BYTES_USED |
static int |
BYTE_SPACE_SIZE |
| Constructor and Description |
|---|
CompressionHeaderFactory() |
| Modifier and Type | Method and Description |
|---|---|
CompressionHeader |
build(java.util.List<CramCompressionRecord> records,
boolean coordinateSorted)
Decides on compression methods to use for the given records.
|
public static final int BYTE_SPACE_SIZE
public static final int ALL_BYTES_USED
public CompressionHeader build(java.util.List<CramCompressionRecord> records, boolean coordinateSorted)
records - the data to be compressedcoordinateSorted - if true the records are assumed to be sorted by alignment
positionCompressionHeader object
describing the encoding chosen for the data