public FeatureIndexResults query ( ) { FeatureIndexResults results = null ; switch ( getIndexedType ( ) ) { case GEOPACKAGE : long count = featureTableIndex . count ( ) ; CloseableIterator < GeometryIndex > geometryIndices = featureTableIndex . query ( ) ; results = new FeatureIndexGeoPackageResults ( featureTableIndex , count , geometryIndices ) ; break ; case RTREE : UserCustomResultSet resultSet = rTreeIndexTableDao . queryForAll ( ) ; results = new FeatureIndexRTreeResults ( rTreeIndexTableDao , resultSet ) ; break ; default : FeatureResultSet featureResultSet = featureDao . queryForAll ( ) ; results = new FeatureIndexFeatureResults ( featureResultSet ) ; } return results ; }
Query for all feature index results