Package com.netrics.likeit
Interface NetricsFieldedReader
-
- All Known Implementing Classes:
NetricsCSVReader
public interface NetricsFieldedReaderThis interface is used to provide sets of fields to other TIBCO® Patterns - Search classes. This interface provides a list of raw "records" consisting of a set of strings. Unlike the NetricsRecSrc interface, these are raw values that may have varying numbers of fields in each record. Currently this interface is used by the thesaurus classes: NetricsThresaurus, NetricsCombinedThesaurus, NetricsWeightedDictionary, as a means of loading equivalence classes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the input source releasing all resources.intcurLineNum()Return the line/record number about to be read.java.lang.String[]readRecord()Read the next record.voidreset()Start sequence over from the beginning.
-
-
-
Method Detail
-
curLineNum
int curLineNum()
Return the line/record number about to be read.- Returns:
- the line/record number about to be read.
-
reset
void reset() throws NetricsFileFormatExceptionStart sequence over from the beginning.- Throws:
NetricsFileFormatException- if there was an error resetting the sequence.
-
close
void close() throws NetricsFileFormatExceptionClose the input source releasing all resources.- Throws:
NetricsFileFormatException- if there was an error closing the sequence.
-
readRecord
java.lang.String[] readRecord() throws NetricsFileFormatExceptionRead the next record.- Returns:
- the set of fields of the record, null on EOF.
- Throws:
NetricsFileFormatException- if there was an error reading the record.
-
-