|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.server.api.driver.LensResultSet org.apache.lens.server.api.driver.InMemoryResultSet org.apache.lens.driver.hive.HiveInMemoryResultSet
public class HiveInMemoryResultSet
The Class HiveInMemoryResultSet.
Constructor Summary | |
---|---|
HiveInMemoryResultSet(org.apache.hive.service.cli.OperationHandle hiveHandle,
org.apache.hive.service.cli.CLIServiceClient client,
boolean closeAfterFecth)
Instantiates a new hive in memory result set. |
Method Summary | |
---|---|
LensResultSetMetadata |
getMetadata()
Get the result set metadata |
boolean |
hasNext()
Whether there is another result row available. |
ResultRow |
next()
Read the next result row. |
void |
setFetchSize(int size)
Set number of rows to be fetched at time |
int |
size()
Get the size of the result set. |
Methods inherited from class org.apache.lens.server.api.driver.InMemoryResultSet |
---|
toQueryResult |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HiveInMemoryResultSet(org.apache.hive.service.cli.OperationHandle hiveHandle, org.apache.hive.service.cli.CLIServiceClient client, boolean closeAfterFecth) throws org.apache.hive.service.cli.HiveSQLException
hiveHandle
- the hive handleclient
- the clientcloseAfterFecth
- the close after fecth
org.apache.hive.service.cli.HiveSQLException
- the hive sql exceptionMethod Detail |
---|
public int size() throws LensException
LensResultSet
size
in class LensResultSet
LensException
- the lens exceptionpublic LensResultSetMetadata getMetadata() throws LensException
LensResultSet
getMetadata
in class LensResultSet
LensResultSetMetadata
LensException
public boolean hasNext() throws LensException
InMemoryResultSet
hasNext
in class InMemoryResultSet
LensException
- the lens exceptionpublic ResultRow next() throws LensException
InMemoryResultSet
next
in class InMemoryResultSet
LensException
- the lens exceptionpublic void setFetchSize(int size) throws LensException
InMemoryResultSet
setFetchSize
in class InMemoryResultSet
LensException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |