com.lmonson.hash.bloom
Class MemoryMappedFileBitStore
java.lang.Object
com.lmonson.hash.bloom.MemoryMappedFileBitStore
- All Implemented Interfaces:
- BitStore
public class MemoryMappedFileBitStore
- extends java.lang.Object
- implements BitStore
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryMappedFileBitStore
public MemoryMappedFileBitStore(int maxBits,
java.nio.MappedByteBuffer mmFile)
MemoryMappedFileBitStore
public MemoryMappedFileBitStore(int maxBits,
java.io.RandomAccessFile file)
throws java.io.IOException
- Throws:
java.io.IOException
MemoryMappedFileBitStore
public MemoryMappedFileBitStore(int maxBits,
java.io.File f,
boolean fillFile)
throws java.io.IOException
- Throws:
java.io.IOException
MemoryMappedFileBitStore
public MemoryMappedFileBitStore(int maxBits)
throws java.io.IOException
- Throws:
java.io.IOException
getMaxBits
public int getMaxBits()
- Specified by:
getMaxBits in interface BitStore
setBit
public void setBit(int idx)
- Specified by:
setBit in interface BitStore
getBit
public boolean getBit(int idx)
- Specified by:
getBit in interface BitStore