public static class StressTestingSource.ExtractorImpl extends Object implements Extractor<String,byte[]>
| Constructor and Description |
|---|
ExtractorImpl(WorkUnitState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getExpectedRecordCount() |
long |
getHighWatermark() |
String |
getSchema() |
byte[] |
readRecord(byte[] reuse)
Read a record with configurable idle and compute time.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadRecordEnvelope, readStreamEntity, recordStream, shutdownpublic ExtractorImpl(WorkUnitState state)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getSchema() throws IOException
getSchema in interface Extractor<String,byte[]>IOExceptionpublic byte[] readRecord(byte[] reuse)
throws DataRecordException,
IOException
readRecord in interface Extractor<String,byte[]>DataRecordExceptionIOExceptionpublic long getExpectedRecordCount()
getExpectedRecordCount in interface Extractor<String,byte[]>public long getHighWatermark()
getHighWatermark in interface Extractor<String,byte[]>