Class TestByteStateSource
- java.lang.Object
-
- org.apache.pulsar.tests.integration.io.TestByteStateSource
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.apache.pulsar.io.core.Source<byte[]>
public class TestByteStateSource extends java.lang.Object implements org.apache.pulsar.io.core.Source<byte[]>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVALUE_BASE64
-
Constructor Summary
Constructors Constructor Description TestByteStateSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidopen(java.util.Map<java.lang.String,java.lang.Object> config, org.apache.pulsar.io.core.SourceContext sourceContext)org.apache.pulsar.functions.api.Record<byte[]>read()
-
-
-
Field Detail
-
VALUE_BASE64
public static final java.lang.String VALUE_BASE64
- See Also:
- Constant Field Values
-
-
Method Detail
-
open
public void open(java.util.Map<java.lang.String,java.lang.Object> config, org.apache.pulsar.io.core.SourceContext sourceContext) throws java.lang.Exception- Specified by:
openin interfaceorg.apache.pulsar.io.core.Source<byte[]>- Throws:
java.lang.Exception
-
read
public org.apache.pulsar.functions.api.Record<byte[]> read() throws java.lang.Exception- Specified by:
readin interfaceorg.apache.pulsar.io.core.Source<byte[]>- Throws:
java.lang.Exception
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-