@Test void columnNameTypesFromEmptyExprValues() { QueryResult response = new QueryResult( schema, Collections.emptyList()); assertEquals( ImmutableMap.of("name", "string", "age", "integer"), response.columnNameTypes() ); }
public Map<String, String> columnNameTypes() { Map<String, String> colNameTypes = new LinkedHashMap<>(); schema.getColumns().forEach(column -> colNameTypes.put(column.getName(), column.getExprType().typeName().toLowerCase())); return colNameTypes; }
QueryResult implements Iterable<Object[]> { public Map<String, String> columnNameTypes() { Map<String, String> colNameTypes = new LinkedHashMap<>(); schema.getColumns().forEach(column -> colNameTypes.put(column.getName(), column.getExprType().typeName().toLowerCase())); return colNameTypes; } }
QueryResult implements Iterable<Object[]> { public Map<String, String> columnNameTypes() { Map<String, String> colNameTypes = new LinkedHashMap<>(); schema.getColumns().forEach(column -> colNameTypes.put(column.getName(), column.getExprType().typeName().toLowerCase())); return colNameTypes; }  }
QueryResult implements Iterable<Object[]> { public Map<String, String> columnNameTypes() { Map<String, String> colNameTypes = new LinkedHashMap<>(); schema.getColumns().forEach(column -> colNameTypes.put(column.getName(), column.getExprType().typeName().toLowerCase())); return colNameTypes; }  int size(); Map<String, String> columnNameTypes(); @Override Iterator<Object[]> iterator(); }
QueryResult implements Iterable<Object[]> { public Map<String, String> columnNameTypes() { Map<String, String> colNameTypes = new LinkedHashMap<>(); schema.getColumns().forEach(column -> colNameTypes.put(column.getName(), column.getExprType().typeName().toLowerCase())); return colNameTypes; }  int size(); Map<String, String> columnNameTypes(); @Override Iterator<Object[]> iterator();  }