public void setTokenRewriteStream(TokenRewriteStream tokenRewriteStream) {
    assert (this.tokenRewriteStream == null || this.getExplainAnalyze() == AnalyzeState.RUNNING ||
        skipTableMasking);
    this.tokenRewriteStream = tokenRewriteStream;
  }
Set the token rewrite stream being used to parse the current top-level SQL
statement. Note that this should <b>not</b> be used for other parsing
activities; for example, when we encounter a reference to a view, we switch
to a new stream for parsing the stored view definition from the catalog,
but we don't clobber the top-level stream in the context.

@param tokenRewriteStream
         the stream being used
ql/src/java/org/apache/hadoop/hive/ql/Context.java