public class JDBCResultSet extends InMemoryResultSet
| Modifier and Type | Class and Description | 
|---|---|
| static class  | JDBCResultSet.FieldSchemaDataFieldSchemaData is created so that we don't save FieldSchema as some classes used by it don't have
 default constructors which are required by jackson | 
| static class  | JDBCResultSet.JDBCResultSetMetadataResult set metadata of a JDBC query | 
| Modifier and Type | Field and Description | 
|---|---|
| static org.apache.log4j.Logger | LOGThe Constant LOG. | 
| Constructor and Description | 
|---|
| JDBCResultSet(org.apache.lens.driver.jdbc.JDBCDriver.QueryResult queryResult,
             ResultSet resultSet,
             boolean closeAfterFetch)Instantiates a new JDBC result set. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Close. | 
| static String | getHiveTypeForSQLType(int index,
                     ResultSetMetaData rsmeta)Gets the hive type for sql type. | 
| LensResultSetMetadata | getMetadata()Get the result set metadata | 
| boolean | hasNext()Whether there is another result row available. | 
| ResultRow | next()Read the next result row. | 
| boolean | seekToStart() | 
| void | setFetchSize(int size)Set number of rows to be fetched at time | 
| int | size()Get the size of the result set. | 
toQueryResultpublic JDBCResultSet(org.apache.lens.driver.jdbc.JDBCDriver.QueryResult queryResult,
             ResultSet resultSet,
             boolean closeAfterFetch)
              throws LensException
queryResult - the query resultresultSet - the result setcloseAfterFetch - the close after fetchLensExceptionpublic int size()
         throws LensException
LensResultSetsize in class LensResultSetLensException - the lens exceptionpublic LensResultSetMetadata getMetadata() throws LensException
LensResultSetgetMetadata in class LensResultSetLensResultSetMetadataLensExceptionpublic static String getHiveTypeForSQLType(int index, ResultSetMetaData rsmeta) throws SQLException
index - the indexrsmeta - the rsmetaSQLException - the SQL exceptionpublic void setFetchSize(int size)
                  throws LensException
InMemoryResultSetsetFetchSize in class InMemoryResultSetLensExceptionpublic ResultRow next() throws LensException
InMemoryResultSetnext in class InMemoryResultSetLensException - the lens exceptionpublic boolean seekToStart()
                    throws LensException
seekToStart in class InMemoryResultSetLensExceptionpublic boolean hasNext()
                throws LensException
InMemoryResultSethasNext in class InMemoryResultSetLensException - the lens exceptionpublic void close()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.