com.partnersoft.maps.file
Class IntegerIndexFileBuilder

java.lang.Object
  extended by com.partnersoft.maps.file.IntegerIndexFileBuilder

public class IntegerIndexFileBuilder
extends java.lang.Object

Builds and sorts an IntegerIndexFile.

Copyright 2009 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
IntegerIndexFileBuilder(Path path)
           
IntegerIndexFileBuilder(java.lang.String pathString)
           
IntegerIndexFileBuilder(VfsFile file)
           
 
Method Summary
 void addRecord(int key, long offset)
           
 void finish()
           
 int getBatchSize()
           
 int getBufferSize()
           
 void setBatchSize(int batchSize)
           
 void setBufferSize(int bufferSize)
           
 void start()
          This should be called before addItem() is called, but after any parameters like bufferSize are set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerIndexFileBuilder

public IntegerIndexFileBuilder(java.lang.String pathString)
                        throws java.io.IOException
Throws:
java.io.IOException

IntegerIndexFileBuilder

public IntegerIndexFileBuilder(Path path)
                        throws java.io.IOException
Throws:
java.io.IOException

IntegerIndexFileBuilder

public IntegerIndexFileBuilder(VfsFile file)
                        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

start

public void start()
           throws java.io.IOException
This should be called before addItem() is called, but after any parameters like bufferSize are set.

Throws:
java.io.IOException

addRecord

public void addRecord(int key,
                      long offset)
               throws java.io.IOException
Throws:
java.io.IOException

finish

public void finish()
            throws java.io.IOException
Throws:
java.io.IOException

getBatchSize

public int getBatchSize()

setBatchSize

public void setBatchSize(int batchSize)

getBufferSize

public int getBufferSize()

setBufferSize

public void setBufferSize(int bufferSize)