Java Code Examples for org.apache.flink.table.utils.TableConnectorUtils#generateRuntimeName()

The following examples show how to use org.apache.flink.table.utils.TableConnectorUtils#generateRuntimeName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HiveBatchSource.java    From Alink with Apache License 2.0 5 votes vote down vote up
@Override
public String explainSource() {
    String explain = String.format(" TablePath: %s, PartitionPruned: %s, PartitionNums: %d",
        tablePath.getFullName(), partitionPruned, null == remainingPartitions ? null : remainingPartitions.size());
    if (projectedFields != null) {
        explain += ", ProjectedFields: " + Arrays.toString(projectedFields);
    }
    if (isLimitPushDown) {
        explain += String.format(", LimitPushDown %s, Limit %d", isLimitPushDown, limit);
    }
    return TableConnectorUtils.generateRuntimeName(getClass(), getTableSchema().getFieldNames()) + explain;
}
 
Example 2
Source File: HiveTableSource.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public String explainSource() {
	String explain = String.format(" TablePath: %s, PartitionPruned: %s, PartitionNums: %d",
			tablePath.getFullName(), partitionPruned, null == remainingPartitions ? null : remainingPartitions.size());
	if (projectedFields != null) {
		explain += ", ProjectedFields: " + Arrays.toString(projectedFields);
	}
	if (isLimitPushDown) {
		explain += String.format(", LimitPushDown %s, Limit %d", isLimitPushDown, limit);
	}
	return TableConnectorUtils.generateRuntimeName(getClass(), getTableSchema().getFieldNames()) + explain;
}
 
Example 3
Source File: FileSystemTableSource.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public String explainSource() {
	return TableConnectorUtils.generateRuntimeName(getClass(), getTableSchema().getFieldNames()) +
			(readPartitions == null ? "" : ", readPartitions=" + readPartitions) +
			(selectFields == null ? "" : ", selectFields=" + Arrays.toString(selectFields)) +
			(limit == null ? "" : ", limit=" + limit) +
			(filters == null ? "" : ", filters=" + filtersString());
}
 
Example 4
Source File: HBaseTableSource.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public String explainSource() {
	return TableConnectorUtils.generateRuntimeName(this.getClass(), getFieldNames());
}
 
Example 5
Source File: KafkaTableSourceBase.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public String explainSource() {
	return TableConnectorUtils.generateRuntimeName(this.getClass(), schema.getFieldNames());
}
 
Example 6
Source File: TableConnectorUtil.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
/**
 * Returns the table connector name used for log and web UI.
 */
public static String generateRuntimeName(Class<?> clazz, String[] fields) {
	return TableConnectorUtils.generateRuntimeName(clazz, fields);
}
 
Example 7
Source File: HBaseTableSource.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public String explainSource() {
	return TableConnectorUtils.generateRuntimeName(this.getClass(), getTableSchema().getFieldNames());
}
 
Example 8
Source File: KafkaTableSourceBase.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public String explainSource() {
	return TableConnectorUtils.generateRuntimeName(this.getClass(), schema.getFieldNames());
}
 
Example 9
Source File: TableConnectorUtil.java    From flink with Apache License 2.0 4 votes vote down vote up
/**
 * Returns the table connector name used for log and web UI.
 */
public static String generateRuntimeName(Class<?> clazz, String[] fields) {
	return TableConnectorUtils.generateRuntimeName(clazz, fields);
}
 
Example 10
Source File: FlinkPravegaTableSource.java    From flink-connectors with Apache License 2.0 4 votes vote down vote up
@Override
public String explainSource() {
    return TableConnectorUtils.generateRuntimeName(this.getClass(), schema.getFieldNames());
}
 
Example 11
Source File: JdbcTableSource.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public String explainSource() {
	final RowTypeInfo rowTypeInfo = (RowTypeInfo) fromDataTypeToLegacyInfo(producedDataType);
	return TableConnectorUtils.generateRuntimeName(getClass(), rowTypeInfo.getFieldNames());
}
 
Example 12
Source File: KafkaTableSourceBase.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public String explainSource() {
	return TableConnectorUtils.generateRuntimeName(this.getClass(), schema.getFieldNames());
}
 
Example 13
Source File: TableConnectorUtil.java    From flink with Apache License 2.0 4 votes vote down vote up
/**
 * Returns the table connector name used for log and web UI.
 */
public static String generateRuntimeName(Class<?> clazz, String[] fields) {
	return TableConnectorUtils.generateRuntimeName(clazz, fields);
}
 
Example 14
Source File: TableSource.java    From Flink-CEPplus with Apache License 2.0 2 votes vote down vote up
/**
 * Describes the table source.
 *
 * @return A String explaining the {@link TableSource}.
 */
default String explainSource() {
	return TableConnectorUtils.generateRuntimeName(getClass(), getTableSchema().getFieldNames());
}
 
Example 15
Source File: TableSource.java    From flink with Apache License 2.0 2 votes vote down vote up
/**
 * Describes the table source.
 *
 * @return A String explaining the {@link TableSource}.
 */
default String explainSource() {
	return TableConnectorUtils.generateRuntimeName(getClass(), getTableSchema().getFieldNames());
}
 
Example 16
Source File: TableSource.java    From flink with Apache License 2.0 2 votes vote down vote up
/**
 * Describes the table source.
 *
 * @return A String explaining the {@link TableSource}.
 */
default String explainSource() {
	return TableConnectorUtils.generateRuntimeName(getClass(), getTableSchema().getFieldNames());
}