org.geotools.data.shapefile.indexed.attribute
Class AttributeIndexWriter

Object
  extended by AttributeIndexWriter

public class AttributeIndexWriter
extends Object

Class used to create an index for an dbf attribute

Author:
Manuele Ventoruzzo
Module:
modules/plugin/shapefile (gt-shapefile.jar)

Field Summary
static int HEADER_SIZE
           
 
Constructor Summary
AttributeIndexWriter(String attribute, FileChannel writeChannel, ReadableByteChannel readChannel, int cacheSize)
          Create a new instance of AttributeIndexWriter
 
Method Summary
 void buildIndex()
          Build index, caching data in chucks and sorting it.
 int getCount()
          Returns the number of attributes indexed
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER_SIZE

public static final int HEADER_SIZE
See Also:
Constant Field Values
Constructor Detail

AttributeIndexWriter

public AttributeIndexWriter(String attribute,
                            FileChannel writeChannel,
                            ReadableByteChannel readChannel,
                            int cacheSize)
                     throws IOException
Create a new instance of AttributeIndexWriter

Parameters:
attribute - Attribute to be indexed
writeChannel - Channel used to write the index
readChannel - Channel used to read attributes file
Throws:
IOException
Method Detail

buildIndex

public void buildIndex()
                throws IOException
Build index, caching data in chucks and sorting it.

Throws:
IOException

getCount

public int getCount()
Returns the number of attributes indexed



Copyright © 1996-2010 Geotools. All Rights Reserved.