org.geotools.data.shapefile.indexed.attribute
Class AttributeIndexWriter
Object
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)
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 |
HEADER_SIZE
public static final int HEADER_SIZE
- See Also:
- Constant Field Values
AttributeIndexWriter
public AttributeIndexWriter(String attribute,
FileChannel writeChannel,
ReadableByteChannel readChannel,
int cacheSize)
throws IOException
- Create a new instance of AttributeIndexWriter
- Parameters:
attribute
- Attribute to be indexedwriteChannel
- Channel used to write the indexreadChannel
- Channel used to read attributes file
- Throws:
IOException
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-2009 Geotools. All Rights Reserved.