org.openrdf.sesame.sailimpl.nativerdf.datastore
Class HashFile

java.lang.Object
  extended byorg.openrdf.sesame.sailimpl.nativerdf.datastore.HashFile

public class HashFile
extends Object

Class supplying access to a hash file. This class is a wrapper class. The actual hash file stuff is implemented in the inner class HashFile0.

Version:
$Revision: 1.10.4.4 $
Author:
Arjohn Kampman

Nested Class Summary
static class HashFile.OffsetIterator
           
 
Constructor Summary
HashFile(File file)
           
 
Method Summary
 void clear()
           
 void close()
           
 void commitTransaction()
           
 HashFile.OffsetIterator getOffsetIterator(int hash, boolean dirtyReads)
           
static void main(String[] args)
           
 void rollbackTransaction()
           
 void startTransaction(boolean isolateTransaction)
           
 void storeOffset(int hash, long dataOffset)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashFile

public HashFile(File file)
         throws IOException
Method Detail

startTransaction

public void startTransaction(boolean isolateTransaction)
                      throws IOException
Throws:
IOException

commitTransaction

public void commitTransaction()
                       throws IOException
Throws:
IOException

rollbackTransaction

public void rollbackTransaction()
                         throws IOException
Throws:
IOException

storeOffset

public void storeOffset(int hash,
                        long dataOffset)
                 throws IOException
Throws:
IOException

clear

public void clear()
           throws IOException
Throws:
IOException

getOffsetIterator

public HashFile.OffsetIterator getOffsetIterator(int hash,
                                                 boolean dirtyReads)
                                          throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.