From 80ce95709b003fa8af512d01e6fdd01ef58cebb3 Mon Sep 17 00:00:00 2001 From: Diego Fernandez Date: Fri, 5 Jan 2024 23:09:57 +0000 Subject: [PATCH] Add @throws to docstring --- .../java/org/apache/arrow/adapter/jdbc/ArrowVectorIterator.java | 1 + .../java/org/apache/arrow/adapter/jdbc/JdbcToArrowUtils.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/java/adapter/jdbc/src/main/java/org/apache/arrow/adapter/jdbc/ArrowVectorIterator.java b/java/adapter/jdbc/src/main/java/org/apache/arrow/adapter/jdbc/ArrowVectorIterator.java index e61b782752578..427c766982f30 100644 --- a/java/adapter/jdbc/src/main/java/org/apache/arrow/adapter/jdbc/ArrowVectorIterator.java +++ b/java/adapter/jdbc/src/main/java/org/apache/arrow/adapter/jdbc/ArrowVectorIterator.java @@ -173,6 +173,7 @@ public boolean hasNext() { * Gets the next vector. * If {@link JdbcToArrowConfig#isReuseVectorSchemaRoot()} is false, * the client is responsible for freeing its resources. + * @throws JdbcConsumerException on error from VectorConsumer */ @Override public VectorSchemaRoot next() { diff --git a/java/adapter/jdbc/src/main/java/org/apache/arrow/adapter/jdbc/JdbcToArrowUtils.java b/java/adapter/jdbc/src/main/java/org/apache/arrow/adapter/jdbc/JdbcToArrowUtils.java index b66e133785f42..6949469bfcd7d 100644 --- a/java/adapter/jdbc/src/main/java/org/apache/arrow/adapter/jdbc/JdbcToArrowUtils.java +++ b/java/adapter/jdbc/src/main/java/org/apache/arrow/adapter/jdbc/JdbcToArrowUtils.java @@ -58,6 +58,7 @@ import org.apache.arrow.adapter.jdbc.consumer.TimestampTZConsumer; import org.apache.arrow.adapter.jdbc.consumer.TinyIntConsumer; import org.apache.arrow.adapter.jdbc.consumer.VarCharConsumer; +import org.apache.arrow.adapter.jdbc.consumer.exceptions.JdbcConsumerException; import org.apache.arrow.memory.RootAllocator; import org.apache.arrow.util.Preconditions; import org.apache.arrow.vector.BigIntVector; @@ -386,6 +387,7 @@ static boolean isColumnNullable(ResultSetMetaData resultSetMetadata, int index, * @param root Arrow {@link VectorSchemaRoot} object to populate * @param config The configuration to use when reading the data. * @throws SQLException on error + * @throws JdbcConsumerException on error from VectorConsumer */ public static void jdbcToArrowVectors(ResultSet rs, VectorSchemaRoot root, JdbcToArrowConfig config) throws SQLException, IOException {