use of org.apache.flink.connector.hbase1.source.HBaseRowDataInputFormat in project flink by apache.
the class HBaseConnectorITCase method testTableInputFormatOpenClose.
@Test
public void testTableInputFormatOpenClose() throws IOException {
HBaseTableSchema tableSchema = new HBaseTableSchema();
tableSchema.addColumn(FAMILY1, F1COL1, byte[].class);
AbstractTableInputFormat<?> inputFormat = new HBaseRowDataInputFormat(getConf(), TEST_TABLE_1, tableSchema, "null");
inputFormat.open(inputFormat.createInputSplits(1)[0]);
assertNotNull(inputFormat.getConnection());
assertNotNull(inputFormat.getConnection().getTable(TableName.valueOf(TEST_TABLE_1)));
inputFormat.close();
assertNull(inputFormat.getConnection());
}
use of org.apache.flink.connector.hbase1.source.HBaseRowDataInputFormat in project flink by apache.
the class HBaseConnectorITCase method testTableInputFormatOpenClose.
@Test
public void testTableInputFormatOpenClose() throws IOException {
HBaseTableSchema tableSchema = new HBaseTableSchema();
tableSchema.addColumn(FAMILY1, F1COL1, byte[].class);
AbstractTableInputFormat<?> inputFormat = new HBaseRowDataInputFormat(getConf(), TEST_TABLE_1, tableSchema, "null");
inputFormat.open(inputFormat.createInputSplits(1)[0]);
assertNotNull(inputFormat.getConnection());
assertNotNull(inputFormat.getConnection().getTable(TableName.valueOf(TEST_TABLE_1)));
inputFormat.close();
assertNull(inputFormat.getConnection());
}
Aggregations