com.lmonson.hash.bloom
Class MemoryMappedFileBitStore

java.lang.Object
  extended by com.lmonson.hash.bloom.MemoryMappedFileBitStore
All Implemented Interfaces:
BitStore

public class MemoryMappedFileBitStore
extends java.lang.Object
implements BitStore


Constructor Summary
MemoryMappedFileBitStore(int maxBits)
           
MemoryMappedFileBitStore(int maxBits, java.io.File f, boolean fillFile)
           
MemoryMappedFileBitStore(int maxBits, java.nio.MappedByteBuffer mmFile)
           
MemoryMappedFileBitStore(int maxBits, java.io.RandomAccessFile file)
           
 
Method Summary
 boolean getBit(int idx)
           
 int getMaxBits()
           
 void setBit(int idx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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