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 int
private final long
-
Constructor Summary
ConstructorsConstructorDescriptionQSequenceLineFileSystemCacheSegment
(long segmentIndex, int maximumEntryCount) -
Method Summary
Modifier and TypeMethodDescriptionlong
getFrom
(int index) int
getHash
(int index) int
getLength
(int index) boolean
isLoaded()
void
load
(RandomAccessFile file) void
setFromLengthHash
(int index, long from, int length, int hash) void
unload
(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
-