@Test public void testFindColumn() throws Exception { ResultSetGroup resultSetGroup = getResultSet(TEST_RESULT_SET_RESOURCE); ResultSet resultSet = resultSetGroup.getResultSet(0); PinotResultSet pinotResultSet = new PinotResultSet(resultSet); for (int i = 0; i < resultSet.getColumnCount(); i++) { Assert.assertEquals(pinotResultSet.findColumn(resultSet.getColumnName(i)), i + 1); } }
@Override public int findColumn(String columnLabel) throws SQLException { if (_columns.containsKey(columnLabel)) { return _columns.get(columnLabel); } else { throw new SQLException("Column with label " + columnLabel + " not found in ResultSet"); } }
PinotResultSet extends AbstractBaseResultSet { @Override public int findColumn(String columnLabel) throws SQLException { if (_columns.containsKey(columnLabel)) { return _columns.get(columnLabel); } else { throw new SQLException("Column with label " + columnLabel + " not found in ResultSet"); } } }
PinotResultSet extends AbstractBaseResultSet { @Override public int findColumn(String columnLabel) throws SQLException { if (_columns.containsKey(columnLabel)) { return _columns.get(columnLabel); } else { throw new SQLException("Column with label " + columnLabel + " not found in ResultSet"); } } PinotResultSet(org.apache.pinot.client.ResultSet resultSet);  PinotResultSet(); }
PinotResultSet extends AbstractBaseResultSet { @Override public int findColumn(String columnLabel) throws SQLException { if (_columns.containsKey(columnLabel)) { return _columns.get(columnLabel); } else { throw new SQLException("Column with label " + columnLabel + " not found in ResultSet"); } } PinotResultSet(org.apache.pinot.client.ResultSet resultSet);  PinotResultSet(); static PinotResultSet empty(); static PinotResultSet fromJson(String jsonText); static PinotResultSet fromResultTable(ResultSet resultSet); @Override boolean absolute(int row); @Override void afterLast(); @Override void beforeFirst(); @Override void close(); @Override int findColumn(String columnLabel); @Override ResultSetMetaData getMetaData(); @Override boolean first(); @Override InputStream getAsciiStream(int columnIndex); @Override BigDecimal getBigDecimal(int columnIndex, int scale); @Override boolean getBoolean(int columnIndex); @Override byte[] getBytes(int columnIndex); @Override Reader getCharacterStream(int columnIndex); @Override Date getDate(int columnIndex, Calendar cal); @Override double getDouble(int columnIndex); @Override float getFloat(int columnIndex); @Override int getInt(int columnIndex); @Override long getLong(int columnIndex); @Override int getRow(); @Override short getShort(int columnIndex); @Override String getString(int columnIndex); @Override Time getTime(int columnIndex, Calendar cal); @Override Timestamp getTimestamp(int columnIndex, Calendar cal); @Override URL getURL(int columnIndex); @Override InputStream getUnicodeStream(int columnIndex); @Override boolean isAfterLast(); @Override boolean isBeforeFirst(); @Override boolean isClosed(); @Override boolean isFirst(); @Override boolean isLast(); @Override boolean last(); @Override boolean next(); @Override boolean previous(); @Override boolean relative(int rows); @Override boolean wasNull(); }
PinotResultSet extends AbstractBaseResultSet { @Override public int findColumn(String columnLabel) throws SQLException { if (_columns.containsKey(columnLabel)) { return _columns.get(columnLabel); } else { throw new SQLException("Column with label " + columnLabel + " not found in ResultSet"); } } PinotResultSet(org.apache.pinot.client.ResultSet resultSet);  PinotResultSet(); static PinotResultSet empty(); static PinotResultSet fromJson(String jsonText); static PinotResultSet fromResultTable(ResultSet resultSet); @Override boolean absolute(int row); @Override void afterLast(); @Override void beforeFirst(); @Override void close(); @Override int findColumn(String columnLabel); @Override ResultSetMetaData getMetaData(); @Override boolean first(); @Override InputStream getAsciiStream(int columnIndex); @Override BigDecimal getBigDecimal(int columnIndex, int scale); @Override boolean getBoolean(int columnIndex); @Override byte[] getBytes(int columnIndex); @Override Reader getCharacterStream(int columnIndex); @Override Date getDate(int columnIndex, Calendar cal); @Override double getDouble(int columnIndex); @Override float getFloat(int columnIndex); @Override int getInt(int columnIndex); @Override long getLong(int columnIndex); @Override int getRow(); @Override short getShort(int columnIndex); @Override String getString(int columnIndex); @Override Time getTime(int columnIndex, Calendar cal); @Override Timestamp getTimestamp(int columnIndex, Calendar cal); @Override URL getURL(int columnIndex); @Override InputStream getUnicodeStream(int columnIndex); @Override boolean isAfterLast(); @Override boolean isBeforeFirst(); @Override boolean isClosed(); @Override boolean isFirst(); @Override boolean isLast(); @Override boolean last(); @Override boolean next(); @Override boolean previous(); @Override boolean relative(int rows); @Override boolean wasNull(); static final String NULL_STRING; }