@Test public void testHandleOutOfBoundsIndex() { SpannerRowMetadata metadata = new SpannerRowMetadata(ResultSetMetadata.newBuilder().build()); assertThatThrownBy(() -> metadata.getColumnMetadata(4)) .isInstanceOf(IndexOutOfBoundsException.class); }
@Override public ColumnMetadata getColumnMetadata(int index) { return this.columnMetadatas.get(index); }
SpannerRowMetadata implements RowMetadata { @Override public ColumnMetadata getColumnMetadata(int index) { return this.columnMetadatas.get(index); } }
SpannerRowMetadata implements RowMetadata { @Override public ColumnMetadata getColumnMetadata(int index) { return this.columnMetadatas.get(index); } SpannerRowMetadata(ResultSetMetadata resultSetMetadata); }
SpannerRowMetadata implements RowMetadata { @Override public ColumnMetadata getColumnMetadata(int index) { return this.columnMetadatas.get(index); } SpannerRowMetadata(ResultSetMetadata resultSetMetadata); @Override ColumnMetadata getColumnMetadata(int index); @Override ColumnMetadata getColumnMetadata(String identifier); @Override Iterable<? extends ColumnMetadata> getColumnMetadatas(); @Override Collection<String> getColumnNames(); }
SpannerRowMetadata implements RowMetadata { @Override public ColumnMetadata getColumnMetadata(int index) { return this.columnMetadatas.get(index); } SpannerRowMetadata(ResultSetMetadata resultSetMetadata); @Override ColumnMetadata getColumnMetadata(int index); @Override ColumnMetadata getColumnMetadata(String identifier); @Override Iterable<? extends ColumnMetadata> getColumnMetadatas(); @Override Collection<String> getColumnNames();  }