public class HiveContinuousMonitoringFunction extends org.apache.flink.streaming.api.functions.source.RichSourceFunction<TimestampedHiveInputSplit> implements org.apache.flink.streaming.api.checkpoint.CheckpointedFunction
HiveTableInputFormat,
it is responsible for:
splits corresponding to those partitions.The splits to be read are forwarded to the downstream ContinuousFileReaderOperator
which can have parallelism greater than one.
IMPORTANT NOTE: Splits are forwarded downstream for reading in ascending partition time order, based on the partition time of the partitions they belong to.
| 构造器和说明 |
|---|
HiveContinuousMonitoringFunction(HiveShim hiveShim,
org.apache.hadoop.mapred.JobConf conf,
org.apache.flink.table.catalog.ObjectPath tablePath,
org.apache.flink.table.catalog.CatalogTable catalogTable,
int readerParallelism,
ConsumeOrder consumeOrder,
String consumeOffset,
String extractorKind,
String extractorClass,
String extractorPattern,
long interval) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cancel() |
void |
close() |
void |
initializeState(org.apache.flink.runtime.state.FunctionInitializationContext context) |
void |
run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<TimestampedHiveInputSplit> context) |
void |
snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext context) |
public HiveContinuousMonitoringFunction(HiveShim hiveShim, org.apache.hadoop.mapred.JobConf conf, org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogTable catalogTable, int readerParallelism, ConsumeOrder consumeOrder, String consumeOffset, String extractorKind, String extractorClass, String extractorPattern, long interval)
public void initializeState(org.apache.flink.runtime.state.FunctionInitializationContext context)
throws Exception
initializeState 在接口中 org.apache.flink.streaming.api.checkpoint.CheckpointedFunctionExceptionpublic void run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<TimestampedHiveInputSplit> context) throws Exception
run 在接口中 org.apache.flink.streaming.api.functions.source.SourceFunction<TimestampedHiveInputSplit>Exceptionpublic void snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext context)
throws Exception
snapshotState 在接口中 org.apache.flink.streaming.api.checkpoint.CheckpointedFunctionExceptionpublic void close()
close 在接口中 org.apache.flink.api.common.functions.RichFunctionclose 在类中 org.apache.flink.api.common.functions.AbstractRichFunctionpublic void cancel()
cancel 在接口中 org.apache.flink.streaming.api.functions.source.SourceFunction<TimestampedHiveInputSplit>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.