public interface NetricsBaseRecSrc
This interface defines how sets of records are passed in the API. When a constructor or method needs a set of records it expects an object that implements this interface. By creating a class that implements this interface the user can feed records from any source directly into the API. The API can then stream these records into the engine.
Records can be single table records, or compound records consisting of a parent record and one or more child records. This base base implementation represents a source that can stream either type of record. This is appropriate for generic applications, such as the deduplication package, that may be handling either type of record. Most of the API methods require one or the other record type. They use extensions of this interface that limit the record type.
NetricsRecSrc,
NetricsCompoundRecSrc| Modifier and Type | Method and Description |
|---|---|
NetricsBaseRecord |
getNext()
Returns the next record.
|
boolean |
hasNext()
True if getNext will return a record.
|
void |
reset()
Restarts the sequence of records from the beginning.
|
boolean hasNext()
throws NetricsRecSrcException
NetricsRecSrcException - if an error occurs.NetricsBaseRecord getNext() throws NetricsRecSrcException
NetricsRecSrcException - if an error occurs, or if there
are no more records.void reset()
throws NetricsRecSrcException
NetricsRecSrcException - if an error occurs, or if the record
source does not support resetting.