Package io.sbk.api
Interface DataReader<T>
- All Known Subinterfaces:
AsyncReader<T>
,DataRecordsReader<T>
,Reader<T>
- All Known Implementing Classes:
AbstractCallbackReader
Interface for Basic Data Readers.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
ß Close the Reader.void
RecordsReader
(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time) Benchmarking reader by reading given number of records.void
RecordsReader
(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time, ReadRequestsLogger logger) Benchmarking reader by reading given number of records.void
RecordsReaderRateControl
(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time, RateController rController) Benchmarking reader by reading given number of records with Rate controlled.void
RecordsReaderRateControl
(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time, RateController rController, ReadRequestsLogger logger) Benchmarking reader by reading given number of records with Rate controlled.void
RecordsReaderRW
(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time) Benchmarking reader by reading given number of records.void
RecordsReaderRW
(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time, ReadRequestsLogger logger) Benchmarking reader by reading given number of records.void
RecordsReaderRWRateControl
(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time, RateController rController) Benchmarking reader by reading given number of records with Rate controlled.void
RecordsReaderRWRateControl
(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time, RateController rController, ReadRequestsLogger logger) Benchmarking reader by reading given number of records with Rate controlled.void
RecordsTimeReader
(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time) Benchmarking reader by reading events/records for specific time duration.void
RecordsTimeReader
(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time, ReadRequestsLogger logger) Benchmarking reader by reading events/records for specific time duration.void
RecordsTimeReaderRateControl
(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time, RateController rController) Benchmarking reader by reading events/records for specific time duration with Rate controlled.void
RecordsTimeReaderRateControl
(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time, RateController rController, ReadRequestsLogger logger) Benchmarking reader by reading events/records for specific time duration with Rate controlled.void
RecordsTimeReaderRW
(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time) Benchmarking reader by reading events/records for specific time duration.void
RecordsTimeReaderRW
(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time, ReadRequestsLogger logger) Benchmarking reader by reading events/records for specific time duration.void
RecordsTimeReaderRWRateControl
(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time, RateController rController) Benchmarking reader by reading events/records for specific time duration with Rate controlled.void
RecordsTimeReaderRWRateControl
(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time, RateController rController, ReadRequestsLogger logger) Benchmarking reader by reading events/records for specific time duration with Rate controlled.
-
Method Details
-
close
ß Close the Reader.- Throws:
IOException
- If an exception occurred.
-
RecordsReader
void RecordsReader(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time) throws EOFException, IOException Benchmarking reader by reading given number of records.- Parameters:
reader
- Reader DescriptorrecordsCount
- Records countdType
- dataTypetime
- time interface- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsReader
void RecordsReader(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time, ReadRequestsLogger logger) throws EOFException, IOException Benchmarking reader by reading given number of records.- Parameters:
reader
- Reader DescriptorrecordsCount
- Records countdType
- dataTypetime
- time interfacelogger
- log read requests- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsReaderRW
void RecordsReaderRW(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time) throws EOFException, IOException Benchmarking reader by reading given number of records. used while another writer is writing the data.- Parameters:
reader
- Reader DescriptorrecordsCount
- Records countdType
- dataTypetime
- time interface- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsReaderRW
void RecordsReaderRW(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time, ReadRequestsLogger logger) throws EOFException, IOException Benchmarking reader by reading given number of records. used while another writer is writing the data.- Parameters:
reader
- Reader DescriptorrecordsCount
- Records countdType
- dataTypetime
- time interfacelogger
- log read requests- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsTimeReader
void RecordsTimeReader(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time) throws EOFException, IOException Benchmarking reader by reading events/records for specific time duration.- Parameters:
reader
- Reader DescriptorsecondsToRun
- Number of seconds to rundType
- dataTypetime
- time interface- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsTimeReader
void RecordsTimeReader(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time, ReadRequestsLogger logger) throws EOFException, IOException Benchmarking reader by reading events/records for specific time duration.- Parameters:
reader
- Reader DescriptorsecondsToRun
- Number of seconds to rundType
- dataTypetime
- time interfacelogger
- log read requests- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsTimeReaderRW
void RecordsTimeReaderRW(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time) throws EOFException, IOException Benchmarking reader by reading events/records for specific time duration. used while another writer is writing the data.- Parameters:
reader
- Reader DescriptorsecondsToRun
- Number of seconds to rundType
- dataTypetime
- time interface- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsTimeReaderRW
void RecordsTimeReaderRW(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time, ReadRequestsLogger logger) throws EOFException, IOException Benchmarking reader by reading events/records for specific time duration. used while another writer is writing the data.- Parameters:
reader
- Reader DescriptorsecondsToRun
- Number of seconds to rundType
- dataTypetime
- time interfacelogger
- log read requests- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsReaderRateControl
void RecordsReaderRateControl(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time, RateController rController) throws EOFException, IOException Benchmarking reader by reading given number of records with Rate controlled.- Parameters:
reader
- Reader DescriptorrecordsCount
- Records countdType
- dataTypetime
- time interfacerController
- Rate Controller- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsReaderRateControl
void RecordsReaderRateControl(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time, RateController rController, ReadRequestsLogger logger) throws EOFException, IOException Benchmarking reader by reading given number of records with Rate controlled.- Parameters:
reader
- Reader DescriptorrecordsCount
- Records countdType
- dataTypetime
- time interfacerController
- Rate Controllerlogger
- log read requests- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsReaderRWRateControl
void RecordsReaderRWRateControl(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time, RateController rController) throws EOFException, IOException Benchmarking reader by reading given number of records with Rate controlled. used while another writer is writing the data.- Parameters:
reader
- Reader DescriptorrecordsCount
- Records countdType
- dataTypetime
- time interfacerController
- Rate Controller- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsReaderRWRateControl
void RecordsReaderRWRateControl(Worker reader, long recordsCount, DataType<T> dType, io.time.Time time, RateController rController, ReadRequestsLogger logger) throws EOFException, IOException Benchmarking reader by reading given number of records with Rate controlled. used while another writer is writing the data.- Parameters:
reader
- Reader DescriptorrecordsCount
- Records countdType
- dataTypetime
- time interfacerController
- Rate Controllerlogger
- log read requests- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsTimeReaderRateControl
void RecordsTimeReaderRateControl(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time, RateController rController) throws EOFException, IOException Benchmarking reader by reading events/records for specific time duration with Rate controlled.- Parameters:
reader
- Reader DescriptorsecondsToRun
- Number of seconds to rundType
- dataTypetime
- time interfacerController
- Rate Controller- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsTimeReaderRateControl
void RecordsTimeReaderRateControl(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time, RateController rController, ReadRequestsLogger logger) throws EOFException, IOException Benchmarking reader by reading events/records for specific time duration with Rate controlled.- Parameters:
reader
- Reader DescriptorsecondsToRun
- Number of seconds to rundType
- dataTypetime
- time interfacerController
- Rate Controllerlogger
- log read requests- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsTimeReaderRWRateControl
void RecordsTimeReaderRWRateControl(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time, RateController rController) throws EOFException, IOException Benchmarking reader by reading events/records for specific time duration with Rate controlled. used while another writer is writing the data.- Parameters:
reader
- Reader DescriptorsecondsToRun
- Number of seconds to rundType
- dataTypetime
- time interfacerController
- Rate Controller- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-
RecordsTimeReaderRWRateControl
void RecordsTimeReaderRWRateControl(Worker reader, long secondsToRun, DataType<T> dType, io.time.Time time, RateController rController, ReadRequestsLogger logger) throws EOFException, IOException Benchmarking reader by reading events/records for specific time duration with Rate controlled. used while another writer is writing the data.- Parameters:
reader
- Reader DescriptorsecondsToRun
- Number of seconds to rundType
- dataTypetime
- time interfacerController
- Rate Controllerlogger
- log read requests- Throws:
EOFException
- If the End of the file occurred.IOException
- If an exception occurred.
-