c

au.csiro.pathling.encoders

GetHapiValue

case class GetHapiValue(value: Expression, dataType: DataType, hasMethod: String, getMethod: String) extends Expression with NonSQLExpression with Product with Serializable

Gets value of an element of a HAPI object. This is could be composed from If and Invoke expression but having it as a dedicated expression makes the serializer expression more readable and also avoids the problems with 'If' optimisations.

value

the expression with the reference to the HAPI object

dataType

the data type of the element to get

hasMethod

the name of method to check if the element is present, e.g. hasNameElement()

getMethod

the name of method to get the value of the element, e.g. getNameElement()

returns

the value of the element or null if the element is not present or the object is null

Linear Supertypes
Serializable, Serializable, NonSQLExpression, Expression, TreeNode[Expression], WithOrigin, TreePatternBits, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GetHapiValue
  2. Serializable
  3. Serializable
  4. NonSQLExpression
  5. Expression
  6. TreeNode
  7. WithOrigin
  8. TreePatternBits
  9. Product
  10. Equals
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GetHapiValue(value: Expression, dataType: DataType, hasMethod: String, getMethod: String)

    value

    the expression with the reference to the HAPI object

    dataType

    the data type of the element to get

    hasMethod

    the name of method to check if the element is present, e.g. hasNameElement()

    getMethod

    the name of method to get the value of the element, e.g. getNameElement()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(number: Int): TreeNode[_]
    Definition Classes
    TreeNode
  5. def argString(maxFields: Int): String
    Definition Classes
    TreeNode
  6. def asCode: String
    Definition Classes
    TreeNode
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. lazy val canonicalized: Expression
    Definition Classes
    Expression
  9. def checkInputDataTypes(): TypeCheckResult
    Definition Classes
    Expression
  10. def children: Seq[Expression]
    Definition Classes
    GetHapiValue → TreeNode
  11. def childrenResolved: Boolean
    Definition Classes
    Expression
  12. def clone(): Expression
    Definition Classes
    TreeNode → AnyRef
  13. def collect[B](pf: PartialFunction[Expression, B]): Seq[B]
    Definition Classes
    TreeNode
  14. def collectFirst[B](pf: PartialFunction[Expression, B]): Option[B]
    Definition Classes
    TreeNode
  15. def collectLeaves(): Seq[Expression]
    Definition Classes
    TreeNode
  16. final def containsAllPatterns(patterns: TreePattern*): Boolean
    Definition Classes
    TreePatternBits
  17. final def containsAnyPattern(patterns: TreePattern*): Boolean
    Definition Classes
    TreePatternBits
  18. lazy val containsChild: Set[TreeNode[_]]
    Definition Classes
    TreeNode
  19. final def containsPattern(t: TreePattern): Boolean
    Definition Classes
    TreePatternBits
    Annotations
    @inline()
  20. def copyTagsFrom(other: Expression): Unit
    Definition Classes
    TreeNode
  21. val dataType: DataType
    Definition Classes
    GetHapiValue → Expression
  22. lazy val deterministic: Boolean
    Definition Classes
    Expression
  23. def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode
    Definition Classes
    GetHapiValue → Expression
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def eval(input: InternalRow): Any
    Definition Classes
    GetHapiValue → Expression
  26. def exists(f: (Expression) ⇒ Boolean): Boolean
    Definition Classes
    TreeNode
  27. def fastEquals(other: TreeNode[_]): Boolean
    Definition Classes
    TreeNode
  28. def find(f: (Expression) ⇒ Boolean): Option[Expression]
    Definition Classes
    TreeNode
  29. def flatArguments: Iterator[Any]
    Attributes
    protected
    Definition Classes
    Expression
  30. def flatMap[A](f: (Expression) ⇒ TraversableOnce[A]): Seq[A]
    Definition Classes
    TreeNode
  31. def foldable: Boolean
    Definition Classes
    Expression
  32. def foreach(f: (Expression) ⇒ Unit): Unit
    Definition Classes
    TreeNode
  33. def foreachUp(f: (Expression) ⇒ Unit): Unit
    Definition Classes
    TreeNode
  34. def freshCopyIfContainsStatefulExpression(): Expression
    Definition Classes
    Expression
  35. def genCode(ctx: CodegenContext): ExprCode
    Definition Classes
    Expression
  36. def generateTreeString(depth: Int, lastChildren: ArrayList[Boolean], append: (String) ⇒ Unit, verbose: Boolean, prefix: String, addSuffix: Boolean, maxFields: Int, printNodeId: Boolean, indent: Int): Unit
    Definition Classes
    TreeNode
  37. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  38. def getDefaultTreePatternBits: BitSet
    Attributes
    protected
    Definition Classes
    TreeNode
  39. val getMethod: String
  40. def getTagValue[T](tag: TreeNodeTag[T]): Option[T]
    Definition Classes
    TreeNode
  41. val hasMethod: String
  42. def hashCode(): Int
    Definition Classes
    TreeNode → AnyRef → Any
  43. def innerChildren: Seq[TreeNode[_]]
    Definition Classes
    TreeNode
  44. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  45. def isRuleIneffective(ruleId: RuleId): Boolean
    Attributes
    protected
    Definition Classes
    TreeNode
  46. def jsonFields: List[JField]
    Attributes
    protected
    Definition Classes
    TreeNode
  47. final def legacyWithNewChildren(newChildren: Seq[Expression]): Expression
    Attributes
    protected
    Definition Classes
    TreeNode
  48. def makeCopy(newArgs: Array[AnyRef]): Expression
    Definition Classes
    TreeNode
  49. def map[A](f: (Expression) ⇒ A): Seq[A]
    Definition Classes
    TreeNode
  50. def mapChildren(f: (Expression) ⇒ Expression): Expression
    Definition Classes
    TreeNode
  51. def mapProductIterator[B](f: (Any) ⇒ B)(implicit arg0: ClassTag[B]): Array[B]
    Attributes
    protected
    Definition Classes
    TreeNode
  52. def markRuleAsIneffective(ruleId: RuleId): Unit
    Attributes
    protected
    Definition Classes
    TreeNode
  53. def multiTransformDown(rule: PartialFunction[Expression, Seq[Expression]]): Stream[Expression]
    Definition Classes
    TreeNode
  54. def multiTransformDownWithPruning(cond: (TreePatternBits) ⇒ Boolean, ruleId: RuleId)(rule: PartialFunction[Expression, Seq[Expression]]): Stream[Expression]
    Definition Classes
    TreeNode
  55. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  56. def nodeName: String
    Definition Classes
    TreeNode
  57. val nodePatterns: Seq[TreePattern]
    Attributes
    protected
    Definition Classes
    TreeNode
  58. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  59. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  60. def nullable: Boolean
    Definition Classes
    GetHapiValue → Expression
  61. def numberedTreeString: String
    Definition Classes
    TreeNode
  62. val origin: Origin
    Definition Classes
    TreeNode → WithOrigin
  63. def otherCopyArgs: Seq[AnyRef]
    Attributes
    protected
    Definition Classes
    TreeNode
  64. def p(number: Int): Expression
    Definition Classes
    TreeNode
  65. def prettyJson: String
    Definition Classes
    TreeNode
  66. def prettyName: String
    Definition Classes
    Expression
  67. def references: AttributeSet
    Definition Classes
    Expression
  68. lazy val resolved: Boolean
    Definition Classes
    Expression
  69. final def semanticEquals(other: Expression): Boolean
    Definition Classes
    Expression
  70. def semanticHash(): Int
    Definition Classes
    Expression
  71. def setTagValue[T](tag: TreeNodeTag[T], value: T): Unit
    Definition Classes
    TreeNode
  72. def simpleString(maxFields: Int): String
    Definition Classes
    Expression → TreeNode
  73. def simpleStringWithNodeId(): String
    Definition Classes
    Expression → TreeNode
  74. final def sql: String
    Definition Classes
    NonSQLExpression → Expression
  75. def stateful: Boolean
    Definition Classes
    Expression
  76. def stringArgs: Iterator[Any]
    Attributes
    protected
    Definition Classes
    TreeNode
  77. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  78. def toJSON: String
    Definition Classes
    TreeNode
  79. def toString(): String
    Definition Classes
    Expression → TreeNode → AnyRef → Any
  80. def transform(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  81. def transformDown(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  82. def transformDownWithPruning(cond: (TreePatternBits) ⇒ Boolean, ruleId: RuleId)(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  83. def transformUp(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  84. def transformUpWithBeforeAndAfterRuleOnChildren(cond: (Expression) ⇒ Boolean, ruleId: RuleId)(rule: PartialFunction[(Expression, Expression), Expression]): Expression
    Definition Classes
    TreeNode
  85. def transformUpWithPruning(cond: (TreePatternBits) ⇒ Boolean, ruleId: RuleId)(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  86. def transformWithPruning(cond: (TreePatternBits) ⇒ Boolean, ruleId: RuleId)(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  87. lazy val treePatternBits: BitSet
    Definition Classes
    TreeNode → TreePatternBits
  88. def treeString(append: (String) ⇒ Unit, verbose: Boolean, addSuffix: Boolean, maxFields: Int, printOperatorId: Boolean): Unit
    Definition Classes
    TreeNode
  89. final def treeString(verbose: Boolean, addSuffix: Boolean, maxFields: Int, printOperatorId: Boolean): String
    Definition Classes
    TreeNode
  90. final def treeString: String
    Definition Classes
    TreeNode
  91. def typeSuffix: String
    Attributes
    protected
    Definition Classes
    Expression
  92. def unsetTagValue[T](tag: TreeNodeTag[T]): Unit
    Definition Classes
    TreeNode
  93. val value: Expression
  94. final def verboseString(maxFields: Int): String
    Definition Classes
    Expression → TreeNode
  95. def verboseStringWithSuffix(maxFields: Int): String
    Definition Classes
    TreeNode
  96. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  97. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  98. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  99. final def withCanonicalizedChildren: Expression
    Attributes
    protected
    Definition Classes
    Expression
  100. final def withNewChildren(newChildren: Seq[Expression]): Expression
    Definition Classes
    TreeNode
  101. def withNewChildrenInternal(newChildren: IndexedSeq[Expression]): Expression
    Attributes
    protected
    Definition Classes
    GetHapiValue → TreeNode

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from NonSQLExpression

Inherited from Expression

Inherited from TreeNode[Expression]

Inherited from WithOrigin

Inherited from TreePatternBits

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped