public class FeatureIndexer
extends java.lang.Object
| Constructor and Description |
|---|
FeatureIndexer(android.content.Context context,
FeatureDao featureDao)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the database connection in the feature indexer
|
int |
count()
Query for all Geometry Metadata count
|
int |
count(BoundingBox boundingBox)
Query for Geometry Metadata count within the bounding box, projected
correctly
|
long |
count(BoundingBox boundingBox,
Projection projection)
Query for Geometry Metadata count within the bounding box in
the provided projection
|
int |
count(GeometryEnvelope envelope)
Query for Geometry Metadata count within the Geometry Envelope
|
boolean |
deleteIndex()
Delete the feature table index
|
boolean |
deleteIndex(FeatureRow row)
Delete the index for the feature row
|
boolean |
deleteIndex(long geomId)
Delete the index for the geometry id
|
FeatureRow |
getFeatureRow(android.database.Cursor cursor)
Get the feature row for the current place in the cursor
|
FeatureRow |
getFeatureRow(GeometryMetadata geometryMetadata)
Get the feature row for the Geometry Metadata
|
GeometryMetadata |
getGeometryMetadata(android.database.Cursor cursor)
Get the Geometry Metadata for the current place in the cursor
|
java.util.Date |
getLastIndexed()
Get the date last indexed
|
int |
index()
Index the feature table if needed
|
int |
index(boolean force)
Index the feature table
|
boolean |
index(FeatureRow row)
Index the feature row.
|
boolean |
isIndexed()
Determine if the database table is indexed after database modifications
|
android.database.Cursor |
query()
Query for all Geometry Metadata
|
android.database.Cursor |
query(BoundingBox boundingBox)
Query for Geometry Metadata within the bounding box, projected
correctly
|
android.database.Cursor |
query(BoundingBox boundingBox,
Projection projection)
Query for Geometry Metadata within the bounding box in
the provided projection
|
android.database.Cursor |
query(GeometryEnvelope envelope)
Query for Geometry Metadata within the Geometry Envelope
|
void |
setProgress(GeoPackageProgress progress)
Set the progress tracker
|
public FeatureIndexer(android.content.Context context,
FeatureDao featureDao)
context - featureDao - public void close()
public void setProgress(GeoPackageProgress progress)
progress - public int index()
public int index(boolean force)
force - true to force re-indexingpublic boolean index(FeatureRow row)
row - public boolean deleteIndex()
public boolean deleteIndex(FeatureRow row)
row - public boolean deleteIndex(long geomId)
geomId - public boolean isIndexed()
public java.util.Date getLastIndexed()
public android.database.Cursor query()
public int count()
public android.database.Cursor query(BoundingBox boundingBox)
boundingBox - public int count(BoundingBox boundingBox)
boundingBox - public android.database.Cursor query(GeometryEnvelope envelope)
envelope - public int count(GeometryEnvelope envelope)
envelope - public android.database.Cursor query(BoundingBox boundingBox,
Projection projection)
boundingBox - projection - projection of the provided bounding boxpublic long count(BoundingBox boundingBox,
Projection projection)
boundingBox - projection - projection of the provided bounding boxpublic GeometryMetadata getGeometryMetadata(android.database.Cursor cursor)
cursor - public FeatureRow getFeatureRow(android.database.Cursor cursor)
cursor - public FeatureRow getFeatureRow(GeometryMetadata geometryMetadata)
geometryMetadata -