Package com.bayesserver.data
Interface DataReader
-
- All Superinterfaces:
AutoCloseable
,Closeable
,DataRecord
- All Known Implementing Classes:
DataReaderFiltered
,DataTableReader
,WindowDataReader
public interface DataReader extends DataRecord, Closeable
Interface for reading data row by row.- See Also:
com.bayesserver.data.java.DataReaderCommand
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close the reader and any associated resources, such as database connections or files.boolean
read()
Moves to the next record, if any exist.-
Methods inherited from interface com.bayesserver.data.DataRecord
getBoolean, getColumnCount, getColumnIndex, getColumnName, getColumnType, getDouble, getFloat, getInt, getLong, getObject, getString, isNull
-
-
-
-
Method Detail
-
read
boolean read()
Moves to the next record, if any exist. This must be called to move to the first record.- Returns:
true
if the reader successfully moved to a new record, orfalse
if no more records are present.
-
close
void close()
Close the reader and any associated resources, such as database connections or files.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-