public final class DefaultDataReader extends Object
DefaultEvidenceReader
Constructor and Description |
---|
DefaultDataReader(DataReader reader,
ReaderOptions readerOptions)
Initializes a new instance of the
DefaultDataReader class. |
DefaultDataReader(DataReader reader,
ReaderOptions readerOptions,
DataReader temporalReader,
TemporalReaderOptions temporalReaderOptions)
Initializes a new instance of the
DefaultDataReader class. |
DefaultDataReader(DataReader reader,
ReaderOptions readerOptions,
DataReader temporalReader,
TemporalReaderOptions temporalReaderOptions,
List<NestedDataReader> nestedReaders)
Initializes a new instance of the
DefaultDataReader class. |
DefaultDataReader(DataReader reader,
ReaderOptions readerOptions,
List<NestedDataReader> nestedReaders)
Initializes a new instance of the
DefaultDataReader class. |
DefaultDataReader(DataReader temporalReader,
TemporalReaderOptions temporalReaderOptions)
Initializes a new instance of the
DefaultDataReader class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getHasTemporalReader()
Gets a value indicating whether the reader includes temporal data.
|
int |
getNestedTableCount()
Gets the number of nested tables.
|
ReadInfo |
read()
Reads the next (non temporal) record.
|
NestedReadInfo |
readNested(int nestedIndex)
Reads the next record from a nested table.
|
TemporalReadInfo |
readTemporal()
Reads the next temporal record.
|
public DefaultDataReader(DataReader reader, ReaderOptions readerOptions)
DefaultDataReader
class.reader
- The (non temporal) reader.readerOptions
- The reader options.public DefaultDataReader(DataReader temporalReader, TemporalReaderOptions temporalReaderOptions)
DefaultDataReader
class.temporalReader
- The temporal reader.temporalReaderOptions
- The temporal reader options.public DefaultDataReader(DataReader reader, ReaderOptions readerOptions, DataReader temporalReader, TemporalReaderOptions temporalReaderOptions)
DefaultDataReader
class.reader
- The (non temporal) reader.readerOptions
- The reader options.temporalReader
- The temporal reader.temporalReaderOptions
- The temporal reader options.public DefaultDataReader(DataReader reader, ReaderOptions readerOptions, List<NestedDataReader> nestedReaders)
DefaultDataReader
class.reader
- The (non temporal) reader.readerOptions
- The reader options.nestedReaders
- Nested table readers.public DefaultDataReader(DataReader reader, ReaderOptions readerOptions, DataReader temporalReader, TemporalReaderOptions temporalReaderOptions, List<NestedDataReader> nestedReaders)
DefaultDataReader
class.reader
- The (non temporal) reader.readerOptions
- The reader options.temporalReader
- The temporal reader.temporalReaderOptions
- The temporal reader options.nestedReaders
- Nested table readers.public ReadInfo read()
This method must be called in order to move to the first record, and should be called repeatedly, until it returns false
.
This method must still be called, even if there is only temporal data.
If non temporal data is present, after each call to read()
, readTemporal()
must be called repeatedly until readTemporal()
returns false
.
null
if there are no further cases to read.readTemporal()
public int getNestedTableCount()
public NestedReadInfo readNested(int nestedIndex)
This method must be called in order to move to the first nested record that corresponds to the current read()
.
This method should be called repeatedly until it returns false
, within each call to read()
, which should also be called repeatedly. This must be done for each nested table.
nestedIndex
- The zero based index of the nested table to read.null
if there is no more data for this nested table for this case.read()
public TemporalReadInfo readTemporal()
This method must be called in order to move to the first temporal record that corresponds to the current read()
.
Note that even if there is only temporal data, read()
must still be called.
This method should be called repeatedly until it returns false
, within each call to read()
, which should also be called repeatedly.
null
if there is no more temporal data for this case.read()
public boolean getHasTemporalReader()
Copyright © 2023. All rights reserved.