|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.shapefile.indexed.attribute.AttributeIndexSummary
public class AttributeIndexSummary
Class to manage a summary for attribute indexes.
It's just map that associates attribute name with index file. Using the name instead of its position on dbf permits to abstract from position, so attribute order can change with no influence on indexes.
Field Summary | |
---|---|
protected int |
cacheSize
|
static int |
DEFAULT_CACHE_SIZE
|
protected java.lang.String |
filename
|
static java.lang.String |
INDEX_EXT
|
static java.text.DecimalFormat |
SUFFIX
|
static java.lang.String |
SUMMARY_EXT
|
protected java.net.URL |
summaryURL
Url of summary file |
Constructor Summary | |
---|---|
AttributeIndexSummary(java.net.URL shpURL)
Creates an IndexSummary |
|
AttributeIndexSummary(java.net.URL shpURL,
int cacheSize)
Creates an IndexSummary |
Method Summary | |
---|---|
protected void |
addIndex(java.lang.String attribute)
|
void |
createIndex(java.lang.String attribute)
Index creation. |
boolean |
existsIndex(java.lang.String attribute)
Tests whether an index for this attribute exists. |
protected java.nio.channels.FileChannel |
getDBFChannel()
|
AttributeIndexReader |
getIndex(java.lang.String attribute)
Returns the index for specified attribute |
protected java.net.URL |
getIndexURL(java.lang.String attribute)
Returns the index URL for specified attribute |
boolean |
hasIndex(java.lang.String attribute)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SUMMARY_EXT
public static final java.lang.String INDEX_EXT
public static final java.text.DecimalFormat SUFFIX
public static final int DEFAULT_CACHE_SIZE
protected java.net.URL summaryURL
protected java.lang.String filename
protected int cacheSize
Constructor Detail |
---|
public AttributeIndexSummary(java.net.URL shpURL) throws java.net.MalformedURLException, java.io.IOException
shapefileUrl
- url of shapefile for wich indexes are related to
java.net.MalformedURLException
java.io.IOException
public AttributeIndexSummary(java.net.URL shpURL, int cacheSize) throws java.net.MalformedURLException, java.io.IOException
shapefileUrl
- url of shapefile for wich indexes are related tocacheSize
- maximum amount of memory to be used for index creation
java.net.MalformedURLException
java.io.IOException
Method Detail |
---|
public void createIndex(java.lang.String attribute) throws java.io.FileNotFoundException, java.io.IOException
attribute
-
java.io.FileNotFoundException
java.io.IOException
public AttributeIndexReader getIndex(java.lang.String attribute) throws java.io.FileNotFoundException, java.io.IOException
attribute
- attribute to search for
java.io.FileNotFoundException
java.io.IOException
public boolean hasIndex(java.lang.String attribute) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public boolean existsIndex(java.lang.String attribute) throws java.io.FileNotFoundException, java.io.IOException
attribute
-
java.io.FileNotFoundException
java.io.IOException
protected java.net.URL getIndexURL(java.lang.String attribute) throws java.io.FileNotFoundException, java.io.IOException
attribute
- attribute to search for
java.io.FileNotFoundException
java.io.IOException
protected void addIndex(java.lang.String attribute) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
protected java.nio.channels.FileChannel getDBFChannel() throws java.io.FileNotFoundException, java.net.MalformedURLException
java.io.FileNotFoundException
java.net.MalformedURLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |