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(mil.nga.sf.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
|
CloseableIterator<GeometryIndex> |
query()
Query for all Geometry Index objects
|
CloseableIterator<GeometryIndex> |
query(BoundingBox boundingBox)
Query for Geometry Index objects within the bounding box, projected
correctly
|
CloseableIterator<GeometryIndex> |
query(mil.nga.sf.GeometryEnvelope envelope)
Query for Geometry Index objects within the Geometry Envelope
|
QueryBuilder<GeometryIndex,GeometryIndexKey> |
queryBuilder()
Build a query builder to query for all Geometry Index objects
|
QueryBuilder<GeometryIndex,GeometryIndexKey> |
queryBuilder(mil.nga.sf.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 - tableName - columnName - public GeoPackageCore getGeoPackage()
getGeoPackage in class BaseExtensionpublic String getTableName()
public String getColumnName()
public void setProgress(GeoPackageProgress progress)
progress - public int index()
public int index(boolean force)
force - true to force re-indexingprotected abstract int indexTable(TableIndex tableIndex)
tableIndex - protected boolean index(TableIndex tableIndex, long geomId, GeoPackageGeometryData geomData)
tableIndex - geomId - geomData - protected void updateLastIndexed()
public boolean deleteIndex()
public int deleteIndex(long geomId)
geomId - public boolean isIndexed()
public TableIndex getTableIndex()
public Date getLastIndexed()
public Extensions getExtension()
public CloseableIterator<GeometryIndex> query()
public long count()
public QueryBuilder<GeometryIndex,GeometryIndexKey> queryBuilder()
public CloseableIterator<GeometryIndex> query(BoundingBox boundingBox)
boundingBox - public long count(BoundingBox boundingBox)
boundingBox - public CloseableIterator<GeometryIndex> query(mil.nga.sf.GeometryEnvelope envelope)
envelope - public long count(mil.nga.sf.GeometryEnvelope envelope)
envelope - public QueryBuilder<GeometryIndex,GeometryIndexKey> queryBuilder(mil.nga.sf.GeometryEnvelope envelope)
envelope - Copyright © 2018 National Geospatial-Intelligence Agency. All rights reserved.