Class ManualFeatureQueryResults

java.lang.Object
mil.nga.geopackage.features.user.ManualFeatureQueryResults
All Implemented Interfaces:
Iterable<FeatureRow>, FeatureIndexResults

public class ManualFeatureQueryResults extends Object implements FeatureIndexResults
Manual Feature Query Results which includes the ids used to read each row
Since:
3.1.0
  • Constructor Details

    • ManualFeatureQueryResults

      public ManualFeatureQueryResults(FeatureDao featureDao, List<Long> featureIds)
      Constructor
      Parameters:
      featureDao - feature DAO
      featureIds - feature ids
    • ManualFeatureQueryResults

      public ManualFeatureQueryResults(FeatureDao featureDao, String[] columns, List<Long> featureIds)
      Constructor
      Parameters:
      featureDao - feature DAO
      columns - columns
      featureIds - feature ids
      Since:
      3.5.0
  • Method Details

    • getFeatureDao

      public FeatureDao getFeatureDao()
      Get the feature DAO
      Returns:
      feature DAO
    • getColumns

      public String[] getColumns()
      Get the feature columns
      Returns:
      columns
      Since:
      3.5.0
    • getFeatureIds

      public List<Long> getFeatureIds()
      Get the feature ids
      Returns:
      feature ids
    • iterator

      public Iterator<FeatureRow> iterator()
      Specified by:
      iterator in interface Iterable<FeatureRow>
    • count

      public long count()
      Get the count of results
      Specified by:
      count in interface FeatureIndexResults
      Returns:
      count
    • close

      public void close()
      Close the results
      Specified by:
      close in interface FeatureIndexResults
    • ids

      public Iterable<Long> ids()
      Iterable for iterating over feature ids in place of feature rows
      Specified by:
      ids in interface FeatureIndexResults
      Returns:
      iterable ids