Routing routing = new Routing(MapBuilder.<String, Map<String, Set<Integer>>>newMapBuilder().put(
null, MapBuilder.<String, Set<Integer>>newMapBuilder().put("information_schema.tables", null).map()
).map());
CollectNode collectNode = new CollectNode("tablesCollect", routing);
InformationSchemaInfo schemaInfo = cluster().getInstance(InformationSchemaInfo.class);
TableInfo tablesTableInfo = schemaInfo.getTableInfo("tables");
List<Symbol> toCollect = new ArrayList<>();
for (ReferenceInfo info : tablesTableInfo.columns()) {
toCollect.add(new Reference(info));
}
Symbol tableNameRef = toCollect.get(1);