public class FeatureIndexManager extends Object
FeatureIndexer,
FeatureTableIndex| Constructor and Description |
|---|
FeatureIndexManager(Context context,
GeoPackage geoPackage,
FeatureDao featureDao)
Constructor
|
FeatureIndexManager(Context context,
GeoPackage geoPackage,
String featureTable)
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,
Map<String,Object> fieldValues)
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(BoundingBox boundingBox,
Projection projection,
Map<String,Object> fieldValues)
Query for feature index count within the bounding box in the provided
projection
|
long |
count(BoundingBox boundingBox,
Projection projection,
String where)
Query for feature index count within the bounding box in the provided
projection
|
long |
count(BoundingBox boundingBox,
Projection projection,
String where,
String[] whereArgs)
Query for feature index count within the bounding box in the provided
projection
|
long |
count(BoundingBox boundingBox,
String where)
Query for feature index count within the bounding box, projected
correctly
|
long |
count(BoundingBox boundingBox,
String where,
String[] whereArgs)
Query for feature index count within the bounding box, projected
correctly
|
long |
count(GeometryEnvelope envelope)
Query for feature index count within the Geometry Envelope
|
long |
count(GeometryEnvelope envelope,
Map<String,Object> fieldValues)
Query for feature index count within the Geometry Envelope
|
long |
count(GeometryEnvelope envelope,
String where)
Query for feature index count within the Geometry Envelope
|
long |
count(GeometryEnvelope envelope,
String where,
String[] whereArgs)
Query for feature index count within the Geometry Envelope
|
long |
count(Map<String,Object> fieldValues)
Query for feature index count
|
long |
count(String where)
Query for feature index count
|
long |
count(String where,
String[] whereArgs)
Query for feature index count
|
boolean |
deleteAllIndexes()
Delete the feature index from all query order locations
|
boolean |
deleteIndex()
Delete the feature index
|
boolean |
deleteIndex(Collection<FeatureIndexType> types)
Delete the feature index from the index types
|
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(FeatureRow row,
List<FeatureIndexType> types)
Delete the feature index for the feature row from the index types
|
boolean |
deleteIndex(long geomId)
Delete the feature index for the geometry id
|
boolean |
deleteIndex(long geomId,
List<FeatureIndexType> types)
Delete the feature index for the geometry id from the index types
|
BoundingBox |
getBoundingBox()
Query for the feature index bounds
|
BoundingBox |
getBoundingBox(Projection projection)
Query for the feature index bounds and return in the provided projection
|
FeatureDao |
getFeatureDao()
Get the feature DAO
|
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 |
getIndexedType()
Get the first ordered indexed type
|
List<FeatureIndexType> |
getIndexedTypes()
Get the indexed types that are currently indexed
|
FeatureIndexType |
getIndexLocation()
Get the index location
|
Set<FeatureIndexType> |
getIndexLocationQueryOrder()
Get the ordered set of ordered index query locations
|
Date |
getLastIndexed()
Get the date last indexed
|
Date |
getLastIndexed(FeatureIndexType type)
Get the date last indexed
|
FeatureIndexLocation |
getLocation()
Get a feature index location to iterate over indexed types
|
RTreeIndexTableDao |
getRTreeIndexTableDao()
Get the RTree Index Table DAO
|
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(boolean force,
List<FeatureIndexType> types)
Index the feature tables for the index types
|
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 |
index(FeatureRow row,
List<FeatureIndexType> types)
Index the feature row for the index types.
|
int |
index(List<FeatureIndexType> types)
Index the feature tables if needed for the index types
|
boolean |
isContinueOnError()
Is the continue on error flag enabled
|
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(Collection<FeatureIndexType> types)
Prioritize the query location order.
|
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,
Map<String,Object> fieldValues)
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(BoundingBox boundingBox,
Projection projection,
Map<String,Object> fieldValues)
Query for feature index results within the bounding box in the provided
projection
|
FeatureIndexResults |
query(BoundingBox boundingBox,
Projection projection,
String where)
Query for feature index results within the bounding box in the provided
projection
|
FeatureIndexResults |
query(BoundingBox boundingBox,
Projection projection,
String where,
String[] whereArgs)
Query for feature index results within the bounding box in the provided
projection
|
FeatureIndexResults |
query(BoundingBox boundingBox,
String where)
Query for feature index results within the bounding box, projected
correctly
|
FeatureIndexResults |
query(BoundingBox boundingBox,
String where,
String[] whereArgs)
Query for feature index results within the bounding box, projected
correctly
|
FeatureIndexResults |
query(GeometryEnvelope envelope)
Query for feature index results within the Geometry Envelope
|
FeatureIndexResults |
query(GeometryEnvelope envelope,
Map<String,Object> fieldValues)
Query for feature index results within the Geometry Envelope
|
FeatureIndexResults |
query(GeometryEnvelope envelope,
String where)
Query for feature index results within the Geometry Envelope
|
FeatureIndexResults |
query(GeometryEnvelope envelope,
String where,
String[] whereArgs)
Query for feature index results within the Geometry Envelope
|
FeatureIndexResults |
query(Map<String,Object> fieldValues)
Query for feature index results
|
FeatureIndexResults |
query(String where)
Query for feature index results
|
FeatureIndexResults |
query(String[] columns)
Query for all feature index results
|
FeatureIndexResults |
query(String[] columns,
BoundingBox boundingBox)
Query for feature index results within the bounding box, projected
correctly
|
FeatureIndexResults |
query(String[] columns,
BoundingBox boundingBox,
Map<String,Object> fieldValues)
Query for feature index results within the bounding box, projected
correctly
|
FeatureIndexResults |
query(String[] columns,
BoundingBox boundingBox,
Projection projection)
Query for feature index results within the bounding box in the provided
projection
|
FeatureIndexResults |
query(String[] columns,
BoundingBox boundingBox,
Projection projection,
Map<String,Object> fieldValues)
Query for feature index results within the bounding box in the provided
projection
|
FeatureIndexResults |
query(String[] columns,
BoundingBox boundingBox,
Projection projection,
String where)
Query for feature index results within the bounding box in the provided
projection
|
FeatureIndexResults |
query(String[] columns,
BoundingBox boundingBox,
Projection projection,
String where,
String[] whereArgs)
Query for feature index results within the bounding box in the provided
projection
|
FeatureIndexResults |
query(String[] columns,
BoundingBox boundingBox,
String where)
Query for feature index results within the bounding box, projected
correctly
|
FeatureIndexResults |
query(String[] columns,
BoundingBox boundingBox,
String where,
String[] whereArgs)
Query for feature index results within the bounding box, projected
correctly
|
FeatureIndexResults |
query(String[] columns,
GeometryEnvelope envelope)
Query for feature index results within the Geometry Envelope
|
FeatureIndexResults |
query(String[] columns,
GeometryEnvelope envelope,
Map<String,Object> fieldValues)
Query for feature index results within the Geometry Envelope
|
FeatureIndexResults |
query(String[] columns,
GeometryEnvelope envelope,
String where)
Query for feature index results within the Geometry Envelope
|
FeatureIndexResults |
query(String[] columns,
GeometryEnvelope envelope,
String where,
String[] whereArgs)
Query for feature index results within the Geometry Envelope
|
FeatureIndexResults |
query(String[] columns,
Map<String,Object> fieldValues)
Query for feature index results
|
FeatureIndexResults |
query(String[] columns,
String where)
Query for feature index results
|
FeatureIndexResults |
query(String[] columns,
String where,
String[] whereArgs)
Query for feature index results
|
FeatureIndexResults |
query(String where,
String[] whereArgs)
Query for feature index results
|
boolean |
retainIndex(Collection<FeatureIndexType> types)
Retain the feature index from the index types and delete the others
|
boolean |
retainIndex(FeatureIndexType type)
Retain the feature index from the index types and delete the others
|
void |
setContinueOnError(boolean continueOnError)
Set the continue on error flag
|
void |
setIndexLocation(FeatureIndexType indexLocation)
Set the index location
|
void |
setIndexLocationOrder(Collection<FeatureIndexType> types)
Set the index location order, overriding all previously set types
|
void |
setIndexLocationOrder(FeatureIndexType... types)
Set the index location order, overriding all previously set types
|
void |
setProgress(GeoPackageProgress progress)
Set the GeoPackage Progress
|
public FeatureIndexManager(Context context, GeoPackage geoPackage, String featureTable)
context - contextgeoPackage - GeoPackagefeatureTable - feature tablepublic FeatureIndexManager(Context context, GeoPackage geoPackage, FeatureDao featureDao)
context - contextgeoPackage - GeoPackagefeatureDao - feature DAOpublic void close()
public FeatureDao getFeatureDao()
public FeatureTableIndex getFeatureTableIndex()
public FeatureIndexer getFeatureIndexer()
public RTreeIndexTableDao getRTreeIndexTableDao()
public Set<FeatureIndexType> getIndexLocationQueryOrder()
public FeatureIndexType getIndexLocation()
public boolean isContinueOnError()
public void setContinueOnError(boolean continueOnError)
continueOnError - continue on errorpublic void prioritizeQueryLocation(Collection<FeatureIndexType> types)
types - feature index typespublic void prioritizeQueryLocation(FeatureIndexType... types)
types - feature index typespublic void setIndexLocationOrder(Collection<FeatureIndexType> types)
types - feature index typespublic void setIndexLocationOrder(FeatureIndexType... types)
types - feature index typespublic void setIndexLocation(FeatureIndexType indexLocation)
indexLocation - feature index typepublic void setProgress(GeoPackageProgress progress)
progress - GeoPackage progresspublic int index()
public int index(List<FeatureIndexType> types)
types - feature index typespublic int index(FeatureIndexType type)
type - index location typepublic int index(boolean force)
force - true to force re-indexingpublic int index(boolean force,
List<FeatureIndexType> types)
force - true to force re-indexingtypes - feature index typespublic 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(FeatureRow row, List<FeatureIndexType> types)
row - feature row to indextypes - feature index typespublic boolean index(FeatureIndexType type, FeatureRow row)
type - index location typerow - feature row to indexpublic boolean deleteIndex()
public boolean deleteAllIndexes()
public boolean deleteIndex(Collection<FeatureIndexType> types)
types - feature index typespublic boolean deleteIndex(FeatureIndexType type)
type - feature index typepublic boolean deleteIndex(FeatureRow row)
row - feature rowpublic boolean deleteIndex(FeatureRow row, List<FeatureIndexType> types)
row - feature rowtypes - feature index typespublic boolean deleteIndex(FeatureIndexType type, FeatureRow row)
type - feature index typerow - feature rowpublic boolean deleteIndex(long geomId)
geomId - geometry idpublic boolean deleteIndex(long geomId,
List<FeatureIndexType> types)
geomId - geometry idtypes - feature index typespublic boolean deleteIndex(FeatureIndexType type, long geomId)
type - feature index typegeomId - geometry idpublic boolean retainIndex(FeatureIndexType type)
type - feature index type to retainpublic boolean retainIndex(Collection<FeatureIndexType> types)
types - feature index types to retainpublic boolean isIndexed()
public boolean isIndexed(FeatureIndexType type)
type - index location typepublic List<FeatureIndexType> getIndexedTypes()
public Date getLastIndexed()
public Date getLastIndexed(FeatureIndexType type)
type - feature index typepublic FeatureIndexResults query()
public FeatureIndexResults query(String[] columns)
columns - columnspublic long count()
public FeatureIndexResults query(Map<String,Object> fieldValues)
fieldValues - field valuespublic FeatureIndexResults query(String[] columns, Map<String,Object> fieldValues)
columns - columnsfieldValues - field valuespublic long count(Map<String,Object> fieldValues)
fieldValues - field valuespublic FeatureIndexResults query(String where)
where - where clausepublic FeatureIndexResults query(String[] columns, String where)
columns - columnswhere - where clausepublic long count(String where)
where - where clausepublic FeatureIndexResults query(String where, String[] whereArgs)
where - where clausewhereArgs - where argumentspublic FeatureIndexResults query(String[] columns, String where, String[] whereArgs)
columns - columnswhere - where clausewhereArgs - where argumentspublic long count(String where, String[] whereArgs)
where - where clausewhereArgs - where argumentspublic BoundingBox getBoundingBox()
public BoundingBox getBoundingBox(Projection projection)
projection - desired projectionpublic FeatureIndexResults query(BoundingBox boundingBox)
boundingBox - bounding boxpublic FeatureIndexResults query(String[] columns, BoundingBox boundingBox)
columns - columnsboundingBox - bounding boxpublic long count(BoundingBox boundingBox)
boundingBox - bounding boxpublic FeatureIndexResults query(BoundingBox boundingBox, Map<String,Object> fieldValues)
boundingBox - bounding boxfieldValues - field valuespublic FeatureIndexResults query(String[] columns, BoundingBox boundingBox, Map<String,Object> fieldValues)
columns - columnsboundingBox - bounding boxfieldValues - field valuespublic long count(BoundingBox boundingBox, Map<String,Object> fieldValues)
boundingBox - bounding boxfieldValues - field valuespublic FeatureIndexResults query(BoundingBox boundingBox, String where)
boundingBox - bounding boxwhere - where clausepublic FeatureIndexResults query(String[] columns, BoundingBox boundingBox, String where)
columns - columnsboundingBox - bounding boxwhere - where clausepublic long count(BoundingBox boundingBox, String where)
boundingBox - bounding boxwhere - where clausepublic FeatureIndexResults query(BoundingBox boundingBox, String where, String[] whereArgs)
boundingBox - bounding boxwhere - where clausewhereArgs - where argumentspublic FeatureIndexResults query(String[] columns, BoundingBox boundingBox, String where, String[] whereArgs)
columns - columnsboundingBox - bounding boxwhere - where clausewhereArgs - where argumentspublic long count(BoundingBox boundingBox, String where, String[] whereArgs)
boundingBox - bounding boxwhere - where clausewhereArgs - where argumentspublic FeatureIndexResults query(GeometryEnvelope envelope)
envelope - geometry envelopepublic FeatureIndexResults query(String[] columns, GeometryEnvelope envelope)
columns - columnsenvelope - geometry envelopepublic long count(GeometryEnvelope envelope)
envelope - geometry envelopepublic FeatureIndexResults query(GeometryEnvelope envelope, Map<String,Object> fieldValues)
envelope - geometry envelopefieldValues - field valuespublic FeatureIndexResults query(String[] columns, GeometryEnvelope envelope, Map<String,Object> fieldValues)
columns - columnsenvelope - geometry envelopefieldValues - field valuespublic long count(GeometryEnvelope envelope, Map<String,Object> fieldValues)
envelope - geometry envelopefieldValues - field valuespublic FeatureIndexResults query(GeometryEnvelope envelope, String where)
envelope - geometry envelopewhere - where clausepublic FeatureIndexResults query(String[] columns, GeometryEnvelope envelope, String where)
columns - columnsenvelope - geometry envelopewhere - where clausepublic long count(GeometryEnvelope envelope, String where)
envelope - geometry envelopewhere - where clausepublic FeatureIndexResults query(GeometryEnvelope envelope, String where, String[] whereArgs)
envelope - geometry envelopewhere - where clausewhereArgs - where argumentspublic FeatureIndexResults query(String[] columns, GeometryEnvelope envelope, String where, String[] whereArgs)
columns - columnsenvelope - geometry envelopewhere - where clausewhereArgs - where argumentspublic long count(GeometryEnvelope envelope, String where, String[] whereArgs)
envelope - geometry envelopewhere - where clausewhereArgs - where argumentspublic FeatureIndexResults query(BoundingBox boundingBox, Projection projection)
boundingBox - bounding boxprojection - projectionpublic FeatureIndexResults query(String[] columns, BoundingBox boundingBox, Projection projection)
columns - columnsboundingBox - bounding boxprojection - projectionpublic long count(BoundingBox boundingBox, Projection projection)
boundingBox - bounding boxprojection - projectionpublic FeatureIndexResults query(BoundingBox boundingBox, Projection projection, Map<String,Object> fieldValues)
boundingBox - bounding boxprojection - projectionfieldValues - field valuespublic FeatureIndexResults query(String[] columns, BoundingBox boundingBox, Projection projection, Map<String,Object> fieldValues)
columns - columnsboundingBox - bounding boxprojection - projectionfieldValues - field valuespublic long count(BoundingBox boundingBox, Projection projection, Map<String,Object> fieldValues)
boundingBox - bounding boxprojection - projectionfieldValues - field valuespublic FeatureIndexResults query(BoundingBox boundingBox, Projection projection, String where)
boundingBox - bounding boxprojection - projectionwhere - where clausepublic FeatureIndexResults query(String[] columns, BoundingBox boundingBox, Projection projection, String where)
columns - columnsboundingBox - bounding boxprojection - projectionwhere - where clausepublic long count(BoundingBox boundingBox, Projection projection, String where)
boundingBox - bounding boxprojection - projectionwhere - where clausepublic FeatureIndexResults query(BoundingBox boundingBox, Projection projection, String where, String[] whereArgs)
boundingBox - bounding boxprojection - projectionwhere - where clausewhereArgs - where argumentspublic FeatureIndexResults query(String[] columns, BoundingBox boundingBox, Projection projection, String where, String[] whereArgs)
columns - columnsboundingBox - bounding boxprojection - projectionwhere - where clausewhereArgs - where argumentspublic long count(BoundingBox boundingBox, Projection projection, String where, String[] whereArgs)
boundingBox - bounding boxprojection - projectionwhere - where clausewhereArgs - where argumentspublic FeatureIndexLocation getLocation()
public FeatureIndexType getIndexedType()