Package org.apache.calcite.avatica.util
Class ArrayFactoryImpl
java.lang.Object
org.apache.calcite.avatica.util.ArrayFactoryImpl
- All Implemented Interfaces:
ArrayImpl.Factory
- Direct Known Subclasses:
AvaticaResultSet
Implementation of
ArrayImpl.Factory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ColumnMetaData.AvaticaType elementType, Iterable<Object> elements) 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.
-
Constructor Details
-
ArrayFactoryImpl
-
-
Method Details
-
create
public ResultSet create(ColumnMetaData.AvaticaType elementType, Iterable<Object> elements) throws SQLException Description copied from interface:ArrayImpl.FactoryCreates aResultSetfrom the given list of values perArray.getResultSet().- Specified by:
createin interfaceArrayImpl.Factory- Parameters:
elementType- The type of the elementselements- The elements- Throws:
SQLException- on error
-
createArray
Description copied from interface:ArrayImpl.FactoryCreates anArrayfrom the given list of values, converting any primitive values into the corresponding objects.- Specified by:
createArrayin interfaceArrayImpl.Factory- Parameters:
elementType- The type of the elementselements- The elements
-