Class FeatureIndexListResults
- java.lang.Object
-
- mil.nga.geopackage.features.index.FeatureIndexListResults
-
- All Implemented Interfaces:
Iterable<FeatureRow>,FeatureIndexResults
public class FeatureIndexListResults extends Object implements FeatureIndexResults
Feature Index Results Feature Row list implementation- Since:
- 3.1.0
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description FeatureIndexListResults()ConstructorFeatureIndexListResults(List<FeatureRow> rows)ConstructorFeatureIndexListResults(FeatureRow row)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRow(FeatureRow row)Add a feature rowvoidaddRows(List<FeatureRow> rows)Add feature rowsvoidclose()Close the resultslongcount()Get the count of resultsIterable<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
-
FeatureIndexListResults
public FeatureIndexListResults()
Constructor
-
FeatureIndexListResults
public FeatureIndexListResults(FeatureRow row)
Constructor- Parameters:
row- feature row
-
FeatureIndexListResults
public FeatureIndexListResults(List<FeatureRow> rows)
Constructor- Parameters:
rows- feature rows
-
-
Method Detail
-
addRow
public void addRow(FeatureRow row)
Add a feature row- Parameters:
row- feature row
-
addRows
public void addRows(List<FeatureRow> rows)
Add feature rows- Parameters:
rows- feature rows
-
count
public long count()
Get the count of results- Specified by:
countin interfaceFeatureIndexResults- Returns:
- count
-
close
public void close()
Close the results- Specified by:
closein interfaceFeatureIndexResults
-
iterator
public Iterator<FeatureRow> iterator()
- Specified by:
iteratorin interfaceIterable<FeatureRow>
-
ids
public Iterable<Long> ids()
Iterable for iterating over feature ids in place of feature rows- Specified by:
idsin interfaceFeatureIndexResults- Returns:
- iterable ids
-
-