com.partnersoft.maps.file
Class IntegerIndexFileBuilder
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)