Skip to content

Commit

Permalink
Add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
aiguofer committed Dec 20, 2023
1 parent 83006ec commit 2cdd339
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,17 @@ public static void jdbcToArrowVectors(ResultSet rs, VectorSchemaRoot root, JdbcT
}
}

/**
* Default function used for JdbcConsumerFactory. This function gets a JdbcConsumer for the
* given column based on the Arrow type and provided vector.
*
* @param arrowType Arrow type for the column.
* @param columnIndex Column index to fetch from the ResultSet
* @param nullable Whether the value is nullable or not
* @param vector Vector to store the consumed value
* @param config Associated JdbcToArrowConfig, used mainly for the Calendar.
* @return {@link JdbcConsumer}
*/
public static JdbcConsumer getConsumer(ArrowType arrowType, int columnIndex, boolean nullable,
FieldVector vector, JdbcToArrowConfig config) {
final Calendar calendar = config.getCalendar();
Expand Down

0 comments on commit 2cdd339

Please sign in to comment.