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 voidclose()Closes any resources associated with the data such as database connections, files etc...booleanread(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:
trueif a case was sucessfully read,falseif no more cases (records) were present.
-
close
void close()
Closes any resources associated with the data such as database connections, files etc...- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-