public abstract class FeatureTableCoreIndex extends BaseExtension
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENSION_AUTHOR
Extension author
|
static String |
EXTENSION_DEFINITION
Extension definition URL
|
static String |
EXTENSION_NAME
Extension, with author and name
|
static String |
EXTENSION_NAME_NO_AUTHOR
Extension name without the author
|
protected GeoPackageProgress |
progress
Progress
|
extensionsDao, geoPackage| Modifier | Constructor and Description |
|---|---|
protected |
FeatureTableCoreIndex(GeoPackageCore geoPackage,
String tableName,
String columnName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
count()
Query for all Geometry Index count
|
long |
count(BoundingBox boundingBox)
Query for Geometry Index count within the bounding box, projected
correctly
|
long |
count(GeometryEnvelope envelope)
Query for Geometry Index count within the Geometry Envelope
|
boolean |
deleteIndex()
Delete the feature table index
|
int |
deleteIndex(long geomId)
Delete the index for the geometry id
|
String |
getColumnName()
Get the column name
|
Extensions |
getExtension()
Get the extension
|
GeoPackageCore |
getGeoPackage()
Get the GeoPackage
|
Date |
getLastIndexed()
Get the date last indexed
|
TableIndex |
getTableIndex()
Get the table index
|
String |
getTableName()
Get the table name
|
int |
index()
Index the feature table if needed
|
int |
index(boolean force)
Index the feature table
|
protected boolean |
index(TableIndex tableIndex,
long geomId,
GeoPackageGeometryData geomData)
Index the geometry id and geometry data
|
protected abstract int |
indexTable(TableIndex tableIndex)
Index the feature table
|
boolean |
isIndexed()
Determine if the feature table is indexed
|
com.j256.ormlite.dao.CloseableIterator<GeometryIndex> |
query()
Query for all Geometry Index objects
|
com.j256.ormlite.dao.CloseableIterator<GeometryIndex> |
query(BoundingBox boundingBox)
Query for Geometry Index objects within the bounding box, projected
correctly
|
com.j256.ormlite.dao.CloseableIterator<GeometryIndex> |
query(GeometryEnvelope envelope)
Query for Geometry Index objects within the Geometry Envelope
|
com.j256.ormlite.stmt.QueryBuilder<GeometryIndex,GeometryIndexKey> |
queryBuilder()
Build a query builder to query for all Geometry Index objects
|
com.j256.ormlite.stmt.QueryBuilder<GeometryIndex,GeometryIndexKey> |
queryBuilder(GeometryEnvelope envelope)
Build a query builder to query for Geometry Index objects within the
Geometry Envelope
|
void |
setProgress(GeoPackageProgress progress)
Set the progress tracker
|
protected void |
updateLastIndexed()
Update the last indexed time
|
get, getExtensionsDao, getOrCreate, haspublic static final String EXTENSION_AUTHOR
public static final String EXTENSION_NAME_NO_AUTHOR
public static final String EXTENSION_NAME
public static final String EXTENSION_DEFINITION
protected GeoPackageProgress progress
protected FeatureTableCoreIndex(GeoPackageCore geoPackage, String tableName, String columnName)
geoPackage - GeoPackagetableName - table namecolumnName - column namepublic GeoPackageCore getGeoPackage()
getGeoPackage in class BaseExtensionpublic String getTableName()
public String getColumnName()
public void setProgress(GeoPackageProgress progress)
progress - progress trackerpublic int index()
public int index(boolean force)
force - true to force re-indexingprotected abstract int indexTable(TableIndex tableIndex)
tableIndex - table indexprotected boolean index(TableIndex tableIndex, long geomId, GeoPackageGeometryData geomData)
tableIndex - table indexgeomId - geometry idgeomData - geometry dataprotected void updateLastIndexed()
public boolean deleteIndex()
public int deleteIndex(long geomId)
geomId - geometry idpublic boolean isIndexed()
public TableIndex getTableIndex()
public Date getLastIndexed()
public Extensions getExtension()
public com.j256.ormlite.dao.CloseableIterator<GeometryIndex> query()
public long count()
public com.j256.ormlite.stmt.QueryBuilder<GeometryIndex,GeometryIndexKey> queryBuilder()
public com.j256.ormlite.dao.CloseableIterator<GeometryIndex> query(BoundingBox boundingBox)
boundingBox - bounding boxpublic long count(BoundingBox boundingBox)
boundingBox - bounding boxpublic com.j256.ormlite.dao.CloseableIterator<GeometryIndex> query(GeometryEnvelope envelope)
envelope - geometry envelopepublic long count(GeometryEnvelope envelope)
envelope - geometry envelopepublic com.j256.ormlite.stmt.QueryBuilder<GeometryIndex,GeometryIndexKey> queryBuilder(GeometryEnvelope envelope)
envelope - geometry envelopeCopyright © 2018 National Geospatial-Intelligence Agency. All rights reserved.