Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Davies Liu committed Jun 5, 2015
1 parent b145047 commit 8c6d82d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ abstract class Expression extends TreeNode[Expression] {
/**
* Returns an [[EvaluatedExpression]], which contains Java source code that
* can be used to generate the result of evaluating the expression on an input row.
*
* @param ctx a [[CodeGenContext]]
* @return [[EvaluatedExpression]]
*/
def gen(ctx: CodeGenContext): EvaluatedExpression = {
val nullTerm = ctx.freshName("nullTerm")
Expand All @@ -67,7 +69,11 @@ abstract class Expression extends TreeNode[Expression] {
}

/**
* Returns Java source code for this expression
* Returns Java source code for this expression.
*
* @param ctx a [[CodeGenContext]]
* @param ev an [[EvaluatedExpression]] with unique terms.
* @return Java source code
*/
def genCode(ctx: CodeGenContext, ev: EvaluatedExpression): Code = {
val e = this.asInstanceOf[Expression]
Expand Down

0 comments on commit 8c6d82d

Please sign in to comment.