Package mil.nga.geopackage.features.user
Class FeatureResultSet
- java.lang.Object
-
- mil.nga.geopackage.db.ResultSetResult
-
- mil.nga.geopackage.user.UserResultSet<FeatureColumn,FeatureTable,FeatureRow>
-
- mil.nga.geopackage.features.user.FeatureResultSet
-
- All Implemented Interfaces:
Iterable<FeatureRow>
,Result
,UserCoreResult<FeatureColumn,FeatureTable,FeatureRow>
public class FeatureResultSet extends UserResultSet<FeatureColumn,FeatureTable,FeatureRow>
Feature Result Set to wrap a database ResultSet for feature queries- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.db.ResultSetResult
resultSet
-
-
Constructor Summary
Constructors Constructor Description FeatureResultSet(FeatureTable table, String[] columns, ResultSet resultSet, int count)
ConstructorFeatureResultSet(FeatureTable table, String[] columns, ResultSet resultSet, String sql, String[] selectionArgs)
ConstructorFeatureResultSet(FeatureTable table, ResultSet resultSet, int count)
ConstructorFeatureResultSet(FeatureTable table, ResultSet resultSet, String sql, String[] selectionArgs)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureColumns
getColumns()
GeoPackageGeometryData
getGeometry()
Get the geometryFeatureRow
getRow(int[] columnTypes, Object[] values)
Object
getValue(FeatureColumn column)
-
Methods inherited from class mil.nga.geopackage.user.UserResultSet
getCount, getId, getRow, getSelectionArgs, getSql, getTable, getTableName, getValue, getValue, ids, iterator
-
Methods inherited from class mil.nga.geopackage.db.ResultSetResult
close, getBlob, getColumnCount, getColumnIndex, getDouble, getFloat, getInt, getLong, getPosition, getResultSet, getShort, getString, getType, getValue, moveToFirst, moveToNext, moveToPosition, resultIndexToResultSetIndex, resultSetIndexToResultIndex, resultSetTypeToSqlLite, wasNull
-
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
-
Methods inherited from interface mil.nga.geopackage.db.Result
close, getBlob, getColumnCount, getColumnIndex, getDouble, getFloat, getInt, getLong, getPosition, getShort, getString, getType, getValue, moveToFirst, moveToNext, moveToPosition, wasNull
-
-
-
-
Constructor Detail
-
FeatureResultSet
public FeatureResultSet(FeatureTable table, ResultSet resultSet, int count)
Constructor- Parameters:
table
- feature tableresultSet
- result setcount
- count
-
FeatureResultSet
public FeatureResultSet(FeatureTable table, String[] columns, ResultSet resultSet, int count)
Constructor- Parameters:
table
- feature tablecolumns
- columnsresultSet
- result setcount
- count- Since:
- 3.5.0
-
FeatureResultSet
public FeatureResultSet(FeatureTable table, ResultSet resultSet, String sql, String[] selectionArgs)
Constructor- Parameters:
table
- feature tableresultSet
- result setsql
- SQL statementselectionArgs
- selection arguments- Since:
- 4.0.0
-
FeatureResultSet
public FeatureResultSet(FeatureTable table, String[] columns, ResultSet resultSet, String sql, String[] selectionArgs)
Constructor- Parameters:
table
- feature tablecolumns
- columnsresultSet
- result setsql
- SQL statementselectionArgs
- selection arguments- Since:
- 4.0.0
-
-
Method Detail
-
getRow
public FeatureRow getRow(int[] columnTypes, Object[] values)
-
getValue
public Object getValue(FeatureColumn column)
Handles geometries
- Specified by:
getValue
in interfaceUserCoreResult<FeatureColumn,FeatureTable,FeatureRow>
- Overrides:
getValue
in classUserResultSet<FeatureColumn,FeatureTable,FeatureRow>
-
getColumns
public FeatureColumns getColumns()
- Specified by:
getColumns
in interfaceUserCoreResult<FeatureColumn,FeatureTable,FeatureRow>
- Overrides:
getColumns
in classUserResultSet<FeatureColumn,FeatureTable,FeatureRow>
-
getGeometry
public GeoPackageGeometryData getGeometry()
Get the geometry- Returns:
- geometry data
-
-