Record Class CompressorDescriptor
java.lang.Object
java.lang.Record
htsjdk.samtools.cram.structure.CompressorDescriptor
- Record Components:
method- the block compression methodarg- compressor-specific argument, orExternalCompressor.NO_COMPRESSION_ARGif none
Describes which compression method and parameters to use for a CRAM data series block.
Pairs a
BlockCompressionMethod with an optional compressor-specific integer argument
(e.g., GZIP compression level, rANS order). Maps 1:1 to
ExternalCompressor.getCompressorForMethod(BlockCompressionMethod, int).-
Constructor Summary
ConstructorsConstructorDescriptionCreate a descriptor for a compression method that takes no argument (e.g., RAW, BZIP2, LZMA, NAME_TOKENISER, FQZCOMP).CompressorDescriptor(BlockCompressionMethod method, int arg) Creates an instance of aCompressorDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintarg()Returns the value of theargrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompressorDescriptor
Create a descriptor for a compression method that takes no argument (e.g., RAW, BZIP2, LZMA, NAME_TOKENISER, FQZCOMP).- Parameters:
method- the block compression method
-
CompressorDescriptor
Creates an instance of aCompressorDescriptorrecord class.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
method
-
arg
-