org.apache.lens.server.api.driver
Class InMemoryResultSet

java.lang.Object
  extended by org.apache.lens.server.api.driver.LensResultSet
      extended by org.apache.lens.server.api.driver.InMemoryResultSet
Direct Known Subclasses:
HiveInMemoryResultSet, JDBCResultSet

public abstract class InMemoryResultSet
extends LensResultSet

The Class InMemoryResultSet.


Constructor Summary
InMemoryResultSet()
           
 
Method Summary
abstract  boolean hasNext()
          Whether there is another result row available.
abstract  ResultRow next()
          Read the next result row.
abstract  void setFetchSize(int size)
          Set number of rows to be fetched at time
 QueryResult toQueryResult()
          Get the corresponding query result object.
 
Methods inherited from class org.apache.lens.server.api.driver.LensResultSet
getMetadata, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryResultSet

public InMemoryResultSet()
Method Detail

hasNext

public abstract boolean hasNext()
                         throws LensException
Whether there is another result row available.

Returns:
true if next row if available, false otherwise
Throws:
LensException - the lens exception

next

public abstract ResultRow next()
                        throws LensException
Read the next result row.

Returns:
The row as list of object
Throws:
LensException - the lens exception

setFetchSize

public abstract void setFetchSize(int size)
                           throws LensException
Set number of rows to be fetched at time

Parameters:
size -
Throws:
LensException

toQueryResult

public QueryResult toQueryResult()
                          throws LensException
Description copied from class: LensResultSet
Get the corresponding query result object.

Specified by:
toQueryResult in class LensResultSet
Returns:
QueryResult
Throws:
LensException - the lens exception


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.