public class FeatureIndexManager
extends java.lang.Object
FeatureIndexer,
FeatureTableIndex| Constructor and Description |
|---|
FeatureIndexManager(android.content.Context context,
GeoPackage geoPackage,
FeatureDao featureDao)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the index connections
|
long |
count()
Query for all feature index count
|
long |
count(BoundingBox boundingBox)
Query for feature index count within the bounding box, projected
correctly
|
long |
count(BoundingBox boundingBox,
Projection projection)
Query for feature index count within the bounding box in
the provided projection
|
long |
count(GeometryEnvelope envelope)
Query for feature index count within the Geometry Envelope
|
boolean |
deleteIndex()
Delete the feature index
|
boolean |
deleteIndex(FeatureIndexType type)
Delete the feature index
|
boolean |
deleteIndex(FeatureIndexType type,
FeatureRow row)
Delete the feature index for the feature row
|
boolean |
deleteIndex(FeatureIndexType type,
long geomId)
Delete the feature index for the geometry id
|
boolean |
deleteIndex(FeatureRow row)
Delete the feature index for the feature row
|
boolean |
deleteIndex(long geomId)
Delete the feature index for the geometry id
|
FeatureIndexer |
getFeatureIndexer()
Get the feature indexer, used to index in metadata tables
|
FeatureTableIndex |
getFeatureTableIndex()
Get the feature table index, used to index inside the GeoPackage as an extension
|
FeatureIndexType |
getIndexLocation()
Get the index location
|
java.util.Date |
getLastIndexed()
Get the date last indexed
|
java.util.Date |
getLastIndexed(FeatureIndexType type)
Get the date last indexed
|
int |
index()
Index the feature table if needed, using the set index location
|
int |
index(boolean force)
Index the feature table, using the set index location
|
int |
index(FeatureIndexType type)
Index the feature table if needed
|
int |
index(FeatureIndexType type,
boolean force)
Index the feature table
|
boolean |
index(FeatureIndexType type,
FeatureRow row)
Index the feature row.
|
boolean |
index(FeatureRow row)
Index the feature row, using the set index location.
|
boolean |
isIndexed()
Determine if the feature table is indexed
|
boolean |
isIndexed(FeatureIndexType type)
Is the feature table indexed in the provided type location
|
void |
prioritizeQueryLocation(FeatureIndexType... types)
Prioritize the query location order.
|
FeatureIndexResults |
query()
Query for all feature index results
|
FeatureIndexResults |
query(BoundingBox boundingBox)
Query for feature index results within the bounding box, projected
correctly
|
FeatureIndexResults |
query(BoundingBox boundingBox,
Projection projection)
Query for feature index results within the bounding box in
the provided projection
|
FeatureIndexResults |
query(GeometryEnvelope envelope)
Query for feature index results within the Geometry Envelope
|
void |
setIndexLocation(FeatureIndexType indexLocation)
Set the index location
|
void |
setProgress(GeoPackageProgress progress)
Set the GeoPackage Progress
|
public FeatureIndexManager(android.content.Context context,
GeoPackage geoPackage,
FeatureDao featureDao)
context - geoPackage - featureDao - public void close()
public FeatureTableIndex getFeatureTableIndex()
public FeatureIndexer getFeatureIndexer()
public FeatureIndexType getIndexLocation()
public void prioritizeQueryLocation(FeatureIndexType... types)
types - public void setIndexLocation(FeatureIndexType indexLocation)
indexLocation - public void setProgress(GeoPackageProgress progress)
progress - public int index()
public int index(FeatureIndexType type)
type - index location typepublic int index(boolean force)
force - true to force re-indexingpublic int index(FeatureIndexType type, boolean force)
type - index location typeforce - true to force re-indexingpublic boolean index(FeatureRow row)
row - feature row to indexpublic boolean index(FeatureIndexType type, FeatureRow row)
type - index location typerow - feature row to indexpublic boolean deleteIndex()
public boolean deleteIndex(FeatureIndexType type)
type - public boolean deleteIndex(FeatureRow row)
row - public boolean deleteIndex(FeatureIndexType type, FeatureRow row)
type - row - public boolean deleteIndex(long geomId)
geomId - public boolean deleteIndex(FeatureIndexType type, long geomId)
type - geomId - public boolean isIndexed()
public boolean isIndexed(FeatureIndexType type)
type - index location typepublic java.util.Date getLastIndexed()
public java.util.Date getLastIndexed(FeatureIndexType type)
type - public FeatureIndexResults query()
public long count()
public FeatureIndexResults query(BoundingBox boundingBox)
boundingBox - public long count(BoundingBox boundingBox)
boundingBox - public FeatureIndexResults query(GeometryEnvelope envelope)
envelope - public long count(GeometryEnvelope envelope)
envelope - public FeatureIndexResults query(BoundingBox boundingBox, Projection projection)
boundingBox - projection - public long count(BoundingBox boundingBox,
Projection projection)
boundingBox - projection -