class QSequenceLineFileSystemCacheSegment
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long[] |
froms |
private int[] |
hashes |
private int[] |
lengths |
private int |
maximumEntryCount |
private long |
segmentIndex |
Constructor and Description |
---|
QSequenceLineFileSystemCacheSegment(long segmentIndex,
int maximumEntryCount) |
Modifier and Type | Method and Description |
---|---|
long |
getFrom(int index) |
int |
getHash(int index) |
int |
getLength(int index) |
boolean |
isLoaded() |
void |
load(java.io.RandomAccessFile file) |
void |
setFromLengthHash(int index,
long from,
int length,
int hash) |
void |
unload(java.io.RandomAccessFile file) |
private final long segmentIndex
private final int maximumEntryCount
private long[] froms
private int[] lengths
private int[] hashes
public QSequenceLineFileSystemCacheSegment(long segmentIndex, int maximumEntryCount)
public boolean isLoaded()
public long getFrom(int index)
public int getLength(int index)
public int getHash(int index)
public void setFromLengthHash(int index, long from, int length, int hash)
public void load(java.io.RandomAccessFile file) throws java.io.IOException
java.io.IOException
public void unload(java.io.RandomAccessFile file) throws java.io.IOException
java.io.IOException