geopackage-sdk/src/main/java/mil/nga/geopackage/features/index/FeatureIndexManager.java
public boolean index(FeatureIndexType type, FeatureRow row) {
        boolean indexed = false;
        if (type == null) {
            throw new GeoPackageException("FeatureIndexType is required to index");
        }
        switch (type) {
            case GEOPACKAGE:
                indexed = featureTableIndex.index(row);
                break;
            case METADATA:
                indexed = featureIndexer.index(row);
                break;
            case RTREE:
                // Updated by triggers, ignore for RTree
                indexed = true;
                break;
            default:
                throw new GeoPackageException("Unsupported FeatureIndexType: " + type);
        }
        return indexed;
    }
public boolean index(FeatureIndexType type, FeatureRow row) {
        boolean indexed = false;
        if (type == null) {
            throw new GeoPackageException("FeatureIndexType is required to index");
        }
        switch (type) {
            case GEOPACKAGE:
                indexed = featureTableIndex.index(row);
                break;
            case METADATA:
                indexed = featureIndexer.index(row);
                break;
            case RTREE:
                // Updated by triggers, ignore for RTree
                indexed = true;
                break;
            default:
                throw new GeoPackageException("Unsupported FeatureIndexType: " + type);
        }
        return indexed;
    }
public boolean index ( FeatureIndexType type , FeatureRow row ) { boolean indexed = false ; if ( type == null ) { throw new GeoPackageException ( "FeatureIndexType is required to index" ) ; } switch ( type ) { case GEOPACKAGE : indexed = featureTableIndex . index ( row ) ; break ; case METADATA : indexed = featureIndexer . index ( row ) ; break ; case RTREE : // Updated by triggers, ignore for RTree indexed = true ; break ; default : throw new GeoPackageException ( "Unsupported FeatureIndexType: " + type ) ; } return indexed ; }
Index the feature row. This method assumes that indexing has been completed and
maintained as the last indexed time is updated.

@param type index location type
@param row  feature row to index
@return true if indexed
Index the feature row . This method assumes that indexing has been completed and maintained as the last indexed time is updated .