Package org.apache.calcite.avatica.util
Interface ArrayImpl.Factory
- All Known Implementing Classes:
ArrayFactoryImpl,AvaticaResultSet
- Enclosing class:
- ArrayImpl
public static interface ArrayImpl.Factory
Factory that can create a ResultSet or Array based on a stream of values.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(ColumnMetaData.AvaticaType elementType, Iterable<Object> iterable) Creates aResultSetfrom the given list of values perArray.getResultSet().createArray(ColumnMetaData.AvaticaType elementType, Iterable<Object> elements) Creates anArrayfrom the given list of values, converting any primitive values into the corresponding objects.
-
Method Details
-
create
ResultSet create(ColumnMetaData.AvaticaType elementType, Iterable<Object> iterable) throws SQLException Creates aResultSetfrom the given list of values perArray.getResultSet().- Parameters:
elementType- The type of the elementsiterable- The elements- Throws:
SQLException- on error
-
createArray
Creates anArrayfrom the given list of values, converting any primitive values into the corresponding objects.- Parameters:
elementType- The type of the elementselements- The elements
-