@Test public void testGetColumnLabels() { ResultSet resultSet = new ResultSet(); resultSet.setColumnTypes(new ColumnType[] {column1, column2, column3}); assertEquals( Lists.newArrayList(new String[] {"column1", "column2", "column3"}), Pql.getColumnLabels(resultSet)); }
public static List<String> getColumnLabels(ResultSet resultSet) { return Lists.transform( Lists.newArrayList(resultSet.getColumnTypes()), new Function<ColumnType, String>() { @Override public String apply(ColumnType input) { return input.getLabelName(); } }); }
Pql { public static List<String> getColumnLabels(ResultSet resultSet) { return Lists.transform( Lists.newArrayList(resultSet.getColumnTypes()), new Function<ColumnType, String>() { @Override public String apply(ColumnType input) { return input.getLabelName(); } }); } }
Pql { public static List<String> getColumnLabels(ResultSet resultSet) { return Lists.transform( Lists.newArrayList(resultSet.getColumnTypes()), new Function<ColumnType, String>() { @Override public String apply(ColumnType input) { return input.getLabelName(); } }); } private  Pql(); }
Pql { public static List<String> getColumnLabels(ResultSet resultSet) { return Lists.transform( Lists.newArrayList(resultSet.getColumnTypes()), new Function<ColumnType, String>() { @Override public String apply(ColumnType input) { return input.getLabelName(); } }); } private  Pql(); static Value createValue(Object value); static String toString(Value value); static Object getApiValue(Value value); static Object getNativeValue(Value value); static Object getCsvValue(Value value); static List<String[]> resultSetToStringArrayList(ResultSet resultSet); static String resultSetToString(ResultSet resultSet); static List<String> getColumnLabels(ResultSet resultSet); static List<String> getRowStringValues(Row row); static ResultSet combineResultSets(ResultSet first, ResultSet second); }
Pql { public static List<String> getColumnLabels(ResultSet resultSet) { return Lists.transform( Lists.newArrayList(resultSet.getColumnTypes()), new Function<ColumnType, String>() { @Override public String apply(ColumnType input) { return input.getLabelName(); } }); } private  Pql(); static Value createValue(Object value); static String toString(Value value); static Object getApiValue(Value value); static Object getNativeValue(Value value); static Object getCsvValue(Value value); static List<String[]> resultSetToStringArrayList(ResultSet resultSet); static String resultSetToString(ResultSet resultSet); static List<String> getColumnLabels(ResultSet resultSet); static List<String> getRowStringValues(Row row); static ResultSet combineResultSets(ResultSet first, ResultSet second);  }