|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 exception| Method Detail |
|---|
public int size()
throws LensException
LensResultSet
size in class LensResultSetLensException - the lens exception
public LensResultSetMetadata getMetadata()
throws LensException
LensResultSet
getMetadata in class LensResultSetLensResultSetMetadata
LensException
public boolean hasNext()
throws LensException
InMemoryResultSet
hasNext in class InMemoryResultSetLensException - the lens exception
public ResultRow next()
throws LensException
InMemoryResultSet
next in class InMemoryResultSetLensException - the lens exception
public void setFetchSize(int size)
throws LensException
InMemoryResultSet
setFetchSize in class InMemoryResultSetLensException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||