- All Implemented Interfaces:
AutoCloseable, Sink<T>
- Direct Known Subclasses:
HbaseGenericRecordSink
public abstract class HbaseAbstractSink<T>
extends Object
implements Sink<T>
A Simple abstract class for Hbase sink.
Users need to implement extractKeyValue function to use this sink
-
Nested Class Summary
Nested Classes
-
-
Constructor Summary
Constructors
-
Method Summary
abstract void
bindValue(org.apache.pulsar.functions.api.Record<T> message,
List<org.apache.hadoop.hbase.client.Put> puts)
void
void
void
write(org.apache.pulsar.functions.api.Record<T> record)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Details
-
HbaseAbstractSink
public HbaseAbstractSink()
-
Method Details
-
open
- Specified by:
open in interface Sink<T>
- Throws:
Exception
-
-
write
public void write(org.apache.pulsar.functions.api.Record<T> record)
throws Exception
- Specified by:
write in interface Sink<T>
- Throws:
Exception
-
bindValue
public abstract void bindValue(org.apache.pulsar.functions.api.Record<T> message,
List<org.apache.hadoop.hbase.client.Put> puts)
throws Exception
- Throws:
Exception