@Override public RecordCursor cursor(ConnectorTransactionHandle transactionHandle, ConnectorSession connectorSession, TupleDomain<Integer> constraint) { Builder table = InMemoryRecordSet.builder(METADATA); for (Type type : typeManager.getTypes()) { addTypeRow(table, type); } addParametricTypeRows(table, typeManager.getParametricTypes()); return table.build().cursor(); }
@Override public RecordCursor cursor(ConnectorTransactionHandle transactionHandle, ConnectorSession connectorSession, TupleDomain<Integer> constraint) { Builder table = InMemoryRecordSet.builder(METADATA); for (Type type : typeManager.getTypes()) { addTypeRow(table, type); } addParametricTypeRows(table, typeManager.getParametricTypes()); return table.build().cursor(); }