Package com.bayesserver.data
Interface EvidenceReader
-
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
DefaultEvidenceReader
public interface EvidenceReader extends Closeable
A data set iterator, that can be read multiple times.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes any resources associated with the data such as database connections, files etc...boolean
read(Evidence evidence, ReadOptions readOptions)
Reads the next case (record).
-
-
-
Method Detail
-
read
boolean read(Evidence evidence, ReadOptions readOptions)
Reads the next case (record). Read must be called to move to the first record.- Parameters:
evidence
- The destination evidence.readOptions
- Read options.- Returns:
true
if a case was sucessfully read,false
if no more cases (records) were present.
-
close
void close()
Closes any resources associated with the data such as database connections, files etc...- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-