|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.compression.BitFileInMemoryLarge
public class BitFileInMemoryLarge
Allows access to bit compressed files that are loaded entirely into memory. Implements a BitInSeekable that uses RandomDataInputMemory as a backing store. Can handle data files larger than those handled by BitFileInMemory (whose limit is Integer.MAX_VALUE).
| Constructor Summary | |
|---|---|
BitFileInMemoryLarge(RandomDataInputMemory _rdim)
constructor |
|
BitFileInMemoryLarge(java.lang.String filename)
load compressed file into memory |
|
| Method Summary | |
|---|---|
void |
close()
|
BitIn |
readReset(long startByteOffset,
byte startBitOffset)
Reads from the file from a specific offset. |
BitIn |
readReset(long startByteOffset,
byte startBitOffset,
long endByteOffset,
byte endBitOffset)
Reads from the file a specific number of bytes and after this call, a sequence of read calls may follow. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BitFileInMemoryLarge(RandomDataInputMemory _rdim)
throws java.io.IOException
_rdim -
java.io.IOException
public BitFileInMemoryLarge(java.lang.String filename)
throws java.io.IOException
filename -
java.io.IOException| Method Detail |
|---|
public BitIn readReset(long startByteOffset,
byte startBitOffset,
long endByteOffset,
byte endBitOffset)
throws java.io.IOException
readReset in interface BitInSeekablestartByteOffset - the starting byte to read fromstartBitOffset - the bit offset in the starting byteendByteOffset - the ending byteendBitOffset - the bit offset in the ending byte.
This bit is the last bit of this entry.
java.io.IOException
public BitIn readReset(long startByteOffset,
byte startBitOffset)
throws java.io.IOException
readReset in interface BitInSeekablestartByteOffset - the starting byte to read fromstartBitOffset - the bit offset in the starting byte
java.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeablejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||