Class IndexGeneratorBase
- java.lang.Object
-
- org.apache.flink.streaming.connectors.elasticsearch.table.IndexGeneratorBase
-
- All Implemented Interfaces:
Serializable
@Internal public abstract class IndexGeneratorBase extends Object
Base class forIndexGenerator.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IndexGeneratorBase(String index)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Default Methods Modifier and Type Method Description booleanequals(Object o)Stringgenerate(org.apache.flink.table.data.RowData row)Generate index name according the the given row.inthashCode()default voidopen()Initialize the index generator, this will be called only once beforegenerate(RowData)is called.
-
-
-
Field Detail
-
index
protected final String index
-
-
Constructor Detail
-
IndexGeneratorBase
public IndexGeneratorBase(String index)
-
-
Method Detail
-
open
public default void open()
Initialize the index generator, this will be called only once beforegenerate(RowData)is called.
-
generate
public abstract String generate(org.apache.flink.table.data.RowData row)
Generate index name according the the given row.
-
-