Package mil.nga.geopackage.features.user
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
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description ManualFeatureQueryResults(FeatureDao featureDao, String[] columns, List<Long> featureIds)
ConstructorManualFeatureQueryResults(FeatureDao featureDao, List<Long> featureIds)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the resultslong
count()
Get the count of resultsString[]
getColumns()
Get the feature columnsFeatureDao
getFeatureDao()
Get the feature DAOList<Long>
getFeatureIds()
Get the feature idsIterable<Long>
ids()
Iterable for iterating over feature ids in place of feature rowsIterator<FeatureRow>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
ManualFeatureQueryResults
public ManualFeatureQueryResults(FeatureDao featureDao, List<Long> featureIds)
Constructor- Parameters:
featureDao
- feature DAOfeatureIds
- feature ids
-
ManualFeatureQueryResults
public ManualFeatureQueryResults(FeatureDao featureDao, String[] columns, List<Long> featureIds)
Constructor- Parameters:
featureDao
- feature DAOcolumns
- columnsfeatureIds
- feature ids- Since:
- 3.5.0
-
-
Method Detail
-
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
-
iterator
public Iterator<FeatureRow> iterator()
- Specified by:
iterator
in interfaceIterable<FeatureRow>
-
count
public long count()
Get the count of results- Specified by:
count
in interfaceFeatureIndexResults
- Returns:
- count
-
close
public void close()
Close the results- Specified by:
close
in interfaceFeatureIndexResults
-
ids
public Iterable<Long> ids()
Iterable for iterating over feature ids in place of feature rows- Specified by:
ids
in interfaceFeatureIndexResults
- Returns:
- iterable ids
-
-