public class LensPersistentResult extends PersistentResultSet
Constructor and Description |
---|
LensPersistentResult(FinishedLensQuery query,
org.apache.hadoop.conf.Configuration conf) |
LensPersistentResult(QueryContext ctx,
org.apache.hadoop.conf.Configuration conf) |
LensPersistentResult(QueryHandle queryHandle,
LensResultSetMetadata metadata,
String outputPath,
Integer numRows,
Long fileSize,
org.apache.hadoop.conf.Configuration conf)
Instantiates a new lens persistent result.
|
Modifier and Type | Method and Description |
---|---|
Long |
getFileSize()
Get the size of the result set file.
|
String |
getHttpResultUrl() |
LensResultSetMetadata |
getMetadata()
Get the result set metadata
|
String |
getOutputPath() |
boolean |
isHttpResultAvailable() |
Integer |
size()
Get the size of the result set.
|
canBePurged, toQueryResult
public LensPersistentResult(QueryHandle queryHandle, LensResultSetMetadata metadata, String outputPath, Integer numRows, Long fileSize, org.apache.hadoop.conf.Configuration conf)
queryHandle
- the query handlemetadata
- the metadataoutputPath
- the output pathnumRows
- the num rowsconf
- the lens server confpublic LensPersistentResult(QueryContext ctx, org.apache.hadoop.conf.Configuration conf)
public LensPersistentResult(FinishedLensQuery query, org.apache.hadoop.conf.Configuration conf) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
public String getOutputPath() throws LensException
getOutputPath
in class LensResultSet
LensException
public Integer size() throws LensException
LensResultSet
size
in class LensResultSet
LensException
- the lens exceptionpublic Long getFileSize() throws LensException
PersistentResultSet
getFileSize
in class PersistentResultSet
LensException
- the lens exceptionpublic LensResultSetMetadata getMetadata() throws LensException
LensResultSet
getMetadata
in class LensResultSet
LensResultSetMetadata
LensException
public boolean isHttpResultAvailable()
isHttpResultAvailable
in class PersistentResultSet
@Generated(value="lombok") public String getHttpResultUrl()
getHttpResultUrl
in class PersistentResultSet
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.