geopackage-sdk/src/main/java/mil/nga/geopackage/features/index/FeatureIndexManager.java
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 METADATA:
                Cursor geometryMetadata = featureIndexer.query();
                results = new FeatureIndexMetadataResults(featureIndexer, geometryMetadata);
                break;
            case RTREE:
                UserCustomCursor cursor = rTreeIndexTableDao.queryForAll();
                results = new FeatureIndexRTreeResults(rTreeIndexTableDao,
                        cursor);
                break;
            default:
                FeatureCursor featureCursor = featureDao.queryForAll();
                results = new FeatureIndexFeatureResults(featureCursor);
        }
        return results;
    }
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 METADATA:
                Cursor geometryMetadata = featureIndexer.query();
                results = new FeatureIndexMetadataResults(featureIndexer, geometryMetadata);
                break;
            case RTREE:
                UserCustomCursor cursor = rTreeIndexTableDao.queryForAll();
                results = new FeatureIndexRTreeResults(rTreeIndexTableDao,
                        cursor);
                break;
            default:
                FeatureCursor featureCursor = featureDao.queryForAll();
                results = new FeatureIndexFeatureResults(featureCursor);
        }
        return results;
    }
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 METADATA : Cursor geometryMetadata = featureIndexer . query ( ) ; results = new FeatureIndexMetadataResults ( featureIndexer , geometryMetadata ) ; break ; case RTREE : UserCustomCursor cursor = rTreeIndexTableDao . queryForAll ( ) ; results = new FeatureIndexRTreeResults ( rTreeIndexTableDao , cursor ) ; break ; default : FeatureCursor featureCursor = featureDao . queryForAll ( ) ; results = new FeatureIndexFeatureResults ( featureCursor ) ; } return results ; }
Query for all feature index results

@return feature index results, close when done
Query for all feature index results