Package de.regnis.q.sequence.line
Class QSequenceLineFileSystemCacheSegments
java.lang.Object
de.regnis.q.sequence.line.QSequenceLineFileSystemCacheSegments
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RandomAccessFile
private File
private final int
private final int
private final List
private final List
private final QSequenceLineTempDirectoryFactory
-
Constructor Summary
ConstructorsConstructorDescriptionQSequenceLineFileSystemCacheSegments
(QSequenceLineTempDirectoryFactory tempDirectoryFactory, int maximumBytesInMemory, int segmentBytesSize) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private RandomAccessFile
getFile()
long
getFrom
(int index) int
getHash
(int index) int
getLength
(int index) getSegment
(int segmentIndex) private void
void
setFromLengthHash
(int index, long from, int length, int hash)
-
Field Details
-
tempDirectoryFactory
-
maximumEntriesPerSegment
private final int maximumEntriesPerSegment -
maximumSegmentsInMemory
private final int maximumSegmentsInMemory -
segments
-
memorySegments
-
filePath
-
file
-
-
Constructor Details
-
QSequenceLineFileSystemCacheSegments
public QSequenceLineFileSystemCacheSegments(QSequenceLineTempDirectoryFactory tempDirectoryFactory, int maximumBytesInMemory, int segmentBytesSize)
-
-
Method Details
-
getFrom
- Throws:
IOException
-
getLength
- Throws:
IOException
-
getHash
- Throws:
IOException
-
setFromLengthHash
- Throws:
IOException
-
close
- Throws:
IOException
-
getSegment
- Throws:
IOException
-
maybeUnloadSegments
- Throws:
IOException
-
getFile
- Throws:
IOException
-