Java Code Examples for org.apache.flink.table.api.Types#ROW
The following examples show how to use
org.apache.flink.table.api.Types#ROW .
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: FlinkTaskInstanceBusiness.java From PoseidonX with Apache License 2.0 | 6 votes |
/** * 构建 FlinkKafka010InputComponent 对应的业务逻辑 * @param flinkComponent */ private void dealFlinkKafka010InputComponent(FlinkKafka010InputComponent flinkComponent) { TypeInformation<Row> typeInfo = Types.ROW( flinkComponent.getColumnAliasNames(), flinkComponent.getColumnTypes() ); Properties kafkaProperties = new Properties(); kafkaProperties.setProperty("bootstrap.servers",flinkComponent.getBrokerHostPorts()); kafkaProperties.setProperty("group.id",flinkComponent.getGroup()); MyKafkaJsonTableSource kafkaTableSource = new MyKafkaJsonTableSource( flinkComponent.getTopic(), kafkaProperties, typeInfo, flinkComponent.getColumnNames()); tEnv.registerTableSource(flinkComponent.getName(), kafkaTableSource); }
Example 2
Source File: FlinkTaskInstanceBusiness.java From PoseidonX with Apache License 2.0 | 6 votes |
/** * 构建 dealFlinkHBaseOutputComponent 对应的业务逻辑 * @param flinkComponent */ private void dealFlinkHBaseOutputComponent(FlinkHBaseOutputComponent flinkComponent) { TypeInformation<Row> typeInfo = Types.ROW( flinkComponent.getColumnNames(), flinkComponent.getDataTypeStrArray() ); Properties sourceProperties = new Properties(); sourceProperties.put(HBaseConstant.ZKHOST,flinkComponent.getZkHost()); sourceProperties.put(HBaseConstant.ZKPORT,flinkComponent.getZkPort()); sourceProperties.put(HBaseConstant.ZKPREFIX,flinkComponent.getZkPrefix()); sourceProperties.put(HBaseConstant.TABLE_NAME,flinkComponent.getTableName()); sourceProperties.put(HBaseConstant.COLFAMILY, flinkComponent.getColFamily()); HBaseJsonTableSink hBaseJsonTableSink = new HBaseJsonTableSink(sourceProperties); tableSinkMap.put(flinkComponent.getName(),hBaseJsonTableSink); }
Example 3
Source File: TestTableSourceFactoryBase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public TypeInformation<Row> getReturnType() { return Types.ROW(schema.getFieldNames(), schema.getFieldTypes()); }
Example 4
Source File: TestTableSinkFactoryBase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public TypeInformation<Row> getOutputType() { return Types.ROW(schema.getFieldNames(), schema.getFieldTypes()); }
Example 5
Source File: UserDefinedFunctions.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public TypeInformation<Row> getResultType() { return Types.ROW(Types.STRING(), Types.LONG()); }
Example 6
Source File: CatalogStructureBuilder.java From flink with Apache License 2.0 | 4 votes |
@Override public TypeInformation<Row> getReturnType() { return Types.ROW(); }
Example 7
Source File: TestTableSourceFactoryBase.java From flink with Apache License 2.0 | 4 votes |
@Override public TypeInformation<Row> getReturnType() { return Types.ROW(schema.getFieldNames(), schema.getFieldTypes()); }
Example 8
Source File: TestTableSinkFactoryBase.java From flink with Apache License 2.0 | 4 votes |
@Override public TypeInformation<Row> getOutputType() { return Types.ROW(schema.getFieldNames(), schema.getFieldTypes()); }
Example 9
Source File: UserDefinedFunctions.java From flink with Apache License 2.0 | 4 votes |
@Override public TypeInformation<Row> getResultType() { return Types.ROW(Types.STRING(), Types.LONG()); }
Example 10
Source File: TestTableSourceFactoryBase.java From flink with Apache License 2.0 | 4 votes |
@Override public TypeInformation<Row> getReturnType() { return Types.ROW(schema.getFieldNames(), schema.getFieldTypes()); }
Example 11
Source File: TestTableSinkFactoryBase.java From flink with Apache License 2.0 | 4 votes |
@Override public TypeInformation<Row> getOutputType() { return Types.ROW(schema.getFieldNames(), schema.getFieldTypes()); }
Example 12
Source File: UserDefinedFunctions.java From flink with Apache License 2.0 | 4 votes |
@Override public TypeInformation<Row> getResultType() { return Types.ROW(Types.STRING(), Types.LONG()); }