public class BAMEncoderOptions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEAFULT_MAX_RECORDS_IN_RAM |
| Constructor and Description |
|---|
BAMEncoderOptions() |
| Modifier and Type | Method and Description |
|---|---|
int |
getAsyncOutputBufferSize()
Get the async output buffer size used for these options.
|
int |
getCompressionLevel()
Set the compression level for these options.
|
DeflaterFactory |
getDeflaterFactory()
Get the
DeflaterFactory for these options. |
int |
getMaxRecordsInRAM()
Set the maximum records kept in RAM before spilling to disk for these options.
|
int |
getOutputBufferSize()
Get the output buffer size for these options.
|
IOPath |
getTemporaryDirectory()
Get the temporary directory path used for these options.
|
boolean |
isAsyncIO()
Determine if async IO is enabled for these options.
|
BAMEncoderOptions |
setAsyncIO(boolean asyncIO)
Set whether to enable async IO for these options.
|
BAMEncoderOptions |
setAsyncOutputBufferSize(int asyncOutputBufferSize)
Get the async output buffer size used for these options.
|
BAMEncoderOptions |
setCompressionLevel(int compressionLevel)
Set the compression level for these options.
|
BAMEncoderOptions |
setDeflaterFactory(DeflaterFactory deflaterFactory)
Set the
DeflaterFactory for these options for these options. |
BAMEncoderOptions |
setMaxRecordsInRAM(int maxRecordsInRAM)
Get the maximum records kept in RAM before spilling to disk for these options.
|
BAMEncoderOptions |
setOutputBufferSize(int outputBufferSize)
Set the buffer size for these options.
|
BAMEncoderOptions |
setTemporaryDirectory(IOPath tempDirPath)
Get the temporary directory path for these options.
|
public static final int DEAFULT_MAX_RECORDS_IN_RAM
public int getOutputBufferSize()
Defaults.BUFFER_SIZE.public BAMEncoderOptions setOutputBufferSize(int outputBufferSize)
Defaults.BUFFER_SIZE.outputBufferSize - the buffer size for these optionspublic boolean isAsyncIO()
Defaults.USE_ASYNC_IO_WRITE_FOR_SAMTOOLS.public BAMEncoderOptions setAsyncIO(boolean asyncIO)
asyncIO - true to enable async IO, false to disable.public int getAsyncOutputBufferSize()
AbstractAsyncWriter.DEFAULT_QUEUE_SIZE.public BAMEncoderOptions setAsyncOutputBufferSize(int asyncOutputBufferSize)
asyncOutputBufferSize - async output buffer size used for these optionspublic IOPath getTemporaryDirectory()
IOUtil.getDefaultTmpDirPath().public BAMEncoderOptions setTemporaryDirectory(IOPath tempDirPath)
IOUtil.getDefaultTmpDirPath().tempDirPath - temporary directory path to usepublic int getCompressionLevel()
BlockCompressedStreamConstants.DEFAULT_COMPRESSION_LEVEL.
See BlockCompressedStreamConstants.DEFAULT_COMPRESSION_LEVELpublic BAMEncoderOptions setCompressionLevel(int compressionLevel)
BlockCompressedStreamConstants.DEFAULT_COMPRESSION_LEVEL.compressionLevel - the compression level for these options, 1 <= compressionLevel <= 9public int getMaxRecordsInRAM()
DEAFULT_MAX_RECORDS_IN_RAM.public BAMEncoderOptions setMaxRecordsInRAM(int maxRecordsInRAM)
DEAFULT_MAX_RECORDS_IN_RAM.maxRecordsInRAM - the maximum records kept in ram before spilling to disk. may be null.public DeflaterFactory getDeflaterFactory()
DeflaterFactory for these options. Default value is
BlockCompressedOutputStream.getDefaultDeflaterFactory().DeflaterFactory for these optionspublic BAMEncoderOptions setDeflaterFactory(DeflaterFactory deflaterFactory)
DeflaterFactory for these options for these options.
Default value is BlockCompressedOutputStream.getDefaultDeflaterFactory().deflaterFactory - the DeflaterFactory for these options