public class HiveInMemoryResultSet extends InMemoryResultSet
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
Integer |
size()
Get the size of the result set.
|
canBePurged, getOutputPath, isHttpResultAvailable, setFullyAccessed, toQueryResult
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 fecthorg.apache.hive.service.cli.HiveSQLException
- the hive sql exceptionpublic Integer 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 seekToStart()
seekToStart
in class InMemoryResultSet
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
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.