|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.Context
public class Context
Context for Semantic Analyzers. Usage: not reusable - construct a new one for each query should call clear() at end of use to remove temporary folders
Field Summary | |
---|---|
protected boolean |
explain
|
protected int |
pathid
|
protected int |
randomid
|
Constructor Summary | |
---|---|
Context()
|
|
Context(HiveConf conf)
|
Method Summary | |
---|---|
void |
clear()
|
boolean |
getExplain()
Find out whether the current query is an explain query |
String |
getExternalTmpFileURI(URI extURI)
Get a path to store tmp data destined for external URI |
String |
getLocalTmpFileURI()
Get a tmp path on local host to store intermediate data |
String |
getMRTmpFileURI()
Get a path to store map-reduce intermediate data in |
org.apache.hadoop.fs.Path |
getResDir()
|
org.apache.hadoop.fs.Path |
getResFile()
|
DataInput |
getStream()
|
boolean |
isMRTmpFileURI(String uriStr)
check if path is tmp path. |
void |
setExplain(boolean value)
Set the context on whether the current query is an explain query |
void |
setResDir(org.apache.hadoop.fs.Path resDir)
|
void |
setResFile(org.apache.hadoop.fs.Path resFile)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int randomid
protected int pathid
protected boolean explain
Constructor Detail |
---|
public Context()
public Context(HiveConf conf)
Method Detail |
---|
public void setExplain(boolean value)
value
- true if the query is an explain query, false if notpublic boolean getExplain()
public boolean isMRTmpFileURI(String uriStr)
public String getMRTmpFileURI()
public String getLocalTmpFileURI()
public String getExternalTmpFileURI(URI extURI)
extURI
- external URI to which the tmp data has to be
eventually moved
public org.apache.hadoop.fs.Path getResFile()
public void setResFile(org.apache.hadoop.fs.Path resFile)
resFile
- the resFile to setpublic org.apache.hadoop.fs.Path getResDir()
public void setResDir(org.apache.hadoop.fs.Path resDir)
resDir
- the resDir to setpublic void clear() throws IOException
IOException
public DataInput getStream()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |