Package de.regnis.q.sequence.line
Class QSequenceLineFileSystemCacheSegment
java.lang.Object
de.regnis.q.sequence.line.QSequenceLineFileSystemCacheSegment
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long[]private int[]private int[]private final intprivate final long -
Constructor Summary
ConstructorsConstructorDescriptionQSequenceLineFileSystemCacheSegment(long segmentIndex, int maximumEntryCount) -
Method Summary
Modifier and TypeMethodDescriptionlonggetFrom(int index) intgetHash(int index) intgetLength(int index) booleanisLoaded()voidload(RandomAccessFile file) voidsetFromLengthHash(int index, long from, int length, int hash) voidunload(RandomAccessFile file)
-
Field Details
-
segmentIndex
private final long segmentIndex -
maximumEntryCount
private final int maximumEntryCount -
froms
private long[] froms -
lengths
private int[] lengths -
hashes
private int[] hashes
-
-
Constructor Details
-
QSequenceLineFileSystemCacheSegment
public QSequenceLineFileSystemCacheSegment(long segmentIndex, int maximumEntryCount)
-
-
Method Details
-
isLoaded
public boolean isLoaded() -
getFrom
public long getFrom(int index) -
getLength
public int getLength(int index) -
getHash
public int getHash(int index) -
setFromLengthHash
public void setFromLengthHash(int index, long from, int length, int hash) -
load
- Throws:
IOException
-
unload
- Throws:
IOException
-