public class ReadSamplingBridge extends java.lang.Object implements Bridge
accessor -> resolver -> output builder
) to make sure there are no
chunks of data instead of single records. Constructor and Description |
---|
ReadSamplingBridge(ProtocolData protData)
C'tor - set the implementation of the bridge.
|
Modifier and Type | Method and Description |
---|---|
boolean |
beginIteration() |
Writable |
getNext()
Fetches next sample, according to the sampling ratio.
|
boolean |
isThreadSafe() |
boolean |
setNext(java.io.DataInputStream inputStream) |
public ReadSamplingBridge(ProtocolData protData) throws java.lang.Exception
protData
- input containing sampling ratiojava.lang.Exception
- if the sampling ratio is wrongpublic Writable getNext() throws java.lang.Exception
public boolean beginIteration() throws java.lang.Exception
beginIteration
in interface Bridge
java.lang.Exception
public boolean setNext(java.io.DataInputStream inputStream) throws java.lang.Exception
public boolean isThreadSafe()
isThreadSafe
in interface Bridge