Class FourBitSequenceReader.FourBitArrayWorker<C extends Compound>
java.lang.Object
org.biojava3.core.sequence.storage.BitSequenceReader.BitArrayWorker<C>
org.biojava3.core.sequence.storage.FourBitSequenceReader.FourBitArrayWorker<C>
- Type Parameters:
C
- Must extend NucleotideCompound
- Enclosing class:
- FourBitSequenceReader<C extends Compound>
public static class FourBitSequenceReader.FourBitArrayWorker<C extends Compound>
extends BitSequenceReader.BitArrayWorker<C>
A four bit per compound implementation of the bit array worker code. This version can handle upto
16 compounds but this does mean that its ability to compress a normal sequence is halved
(compared to the 1/4 performance seen with the 2bit workers).
-
Field Summary
Fields inherited from class org.biojava3.core.sequence.storage.BitSequenceReader.BitArrayWorker
BYTES_PER_INT
-
Constructor Summary
ConstructorDescriptionFourBitArrayWorker
(String sequence, CompoundSet<C> compoundSet) FourBitArrayWorker
(CompoundSet<C> compoundSet, int length) FourBitArrayWorker
(CompoundSet<C> compoundSet, int[] sequence) FourBitArrayWorker
(Sequence<C> sequence) -
Method Summary
Methods inherited from class org.biojava3.core.sequence.storage.BitSequenceReader.BitArrayWorker
equals, getCompoundAt, getCompoundSet, getLength, hashCode, populate, populate, seqArraySize, setCompoundAt, setCompoundAt
-
Constructor Details
-
FourBitArrayWorker
-
FourBitArrayWorker
-
FourBitArrayWorker
-
FourBitArrayWorker
-