Class

it.agilelab.bigdata.wasp.consumers.spark.utils

AvroDeserializerExpression

Related Doc: package utils

Permalink

case class AvroDeserializerExpression(child: Expression, schemaAvroJson: String, darwinConfig: Option[Config], avoidReevaluation: Boolean = true) extends UnaryExpression with ExpectsInputTypes with Product with Serializable

An Expression which deserializes a binary field encoded in Avro and returns the corresponding representation in Spark.

child

the Expression containing the binary Avro to be deserialized

schemaAvroJson

the JSON representation of the Avro schema

darwinConfig

the configuration for the AvroSchemaManager

avoidReevaluation

this filed forces the Expression to be non-deterministic. Setting this to true measn that this expression is executed only once even though the Optimizer creates several copies of it (eg. it happens usually with CollapseProject if the value returned by the expression is used several times, as with a selection of fields of the struct returned). If you set this flag to false, the expression may be evaluated once for each occurence of ti you see in the physical plan.

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

Instance Constructors

  1. new AvroDeserializerExpression(child: Expression, schemaAvroJson: String, darwinConfig: Option[Config], avoidReevaluation: Boolean = true)

    Permalink

    child

    the Expression containing the binary Avro to be deserialized

    schemaAvroJson

    the JSON representation of the Avro schema

    darwinConfig

    the configuration for the AvroSchemaManager

    avoidReevaluation

    this filed forces the Expression to be non-deterministic. Setting this to true measn that this expression is executed only once even though the Optimizer creates several copies of it (eg. it happens usually with CollapseProject if the value returned by the expression is used several times, as with a selection of fields of the struct returned). If you set this flag to false, the expression may be evaluated once for each occurence of ti you see in the physical plan.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(number: Int): TreeNode[_]

    Permalink
    Definition Classes
    TreeNode
  5. def argString(maxFields: Int): String

    Permalink
    Definition Classes
    TreeNode
  6. def asCode: String

    Permalink
    Definition Classes
    TreeNode
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. val avoidReevaluation: Boolean

    Permalink

    this filed forces the Expression to be non-deterministic.

    this filed forces the Expression to be non-deterministic. Setting this to true measn that this expression is executed only once even though the Optimizer creates several copies of it (eg. it happens usually with CollapseProject if the value returned by the expression is used several times, as with a selection of fields of the struct returned). If you set this flag to false, the expression may be evaluated once for each occurence of ti you see in the physical plan.

  9. def avroDatumReader(avroValue: SeekableByteArrayInput): GenericDatumReader[AnyRef]

    Permalink
  10. lazy val canonicalized: Expression

    Permalink
    Definition Classes
    Expression
  11. def checkInputDataTypes(): TypeCheckResult

    Permalink
    Definition Classes
    ExpectsInputTypes → Expression
  12. val child: Expression

    Permalink

    the Expression containing the binary Avro to be deserialized

    the Expression containing the binary Avro to be deserialized

    Definition Classes
    AvroDeserializerExpression → UnaryExpression
  13. final def children: Seq[Expression]

    Permalink
    Definition Classes
    UnaryExpression → TreeNode
  14. def childrenResolved: Boolean

    Permalink
    Definition Classes
    Expression
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def collect[B](pf: PartialFunction[Expression, B]): Seq[B]

    Permalink
    Definition Classes
    TreeNode
  17. def collectFirst[B](pf: PartialFunction[Expression, B]): Option[B]

    Permalink
    Definition Classes
    TreeNode
  18. def collectLeaves(): Seq[Expression]

    Permalink
    Definition Classes
    TreeNode
  19. lazy val containsChild: Set[TreeNode[_]]

    Permalink
    Definition Classes
    TreeNode
  20. def convertRecordToInternalRow(record: AnyRef): AnyRef

    Permalink
  21. val convertString: (Any) ⇒ AnyRef

    Permalink
  22. val darwinConfig: Option[Config]

    Permalink

    the configuration for the AvroSchemaManager

  23. def dataType: DataType

    Permalink
    Definition Classes
    AvroDeserializerExpression → Expression
  24. def defineCodeGen(ctx: CodegenContext, ev: ExprCode, f: (String) ⇒ String): ExprCode

    Permalink
    Attributes
    protected
    Definition Classes
    UnaryExpression
  25. lazy val deterministic: Boolean

    Permalink
    Definition Classes
    AvroDeserializerExpression → Expression
  26. def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode

    Permalink
    Attributes
    protected
    Definition Classes
    AvroDeserializerExpression → Expression
  27. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. def eval(input: InternalRow): Any

    Permalink
    Definition Classes
    UnaryExpression → Expression
  29. def fastEquals(other: TreeNode[_]): Boolean

    Permalink
    Definition Classes
    TreeNode
  30. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  31. def find(f: (Expression) ⇒ Boolean): Option[Expression]

    Permalink
    Definition Classes
    TreeNode
  32. def flatArguments: Iterator[Any]

    Permalink
    Attributes
    protected
    Definition Classes
    Expression
  33. def flatMap[A](f: (Expression) ⇒ TraversableOnce[A]): Seq[A]

    Permalink
    Definition Classes
    TreeNode
  34. def foldable: Boolean

    Permalink
    Definition Classes
    UnaryExpression → Expression
  35. def foreach(f: (Expression) ⇒ Unit): Unit

    Permalink
    Definition Classes
    TreeNode
  36. def foreachUp(f: (Expression) ⇒ Unit): Unit

    Permalink
    Definition Classes
    TreeNode
  37. def genCode(ctx: CodegenContext): ExprCode

    Permalink
    Definition Classes
    Expression
  38. def generateTreeString(depth: Int, lastChildren: Seq[Boolean], append: (String) ⇒ Unit, verbose: Boolean, prefix: String, addSuffix: Boolean, maxFields: Int): Unit

    Permalink
    Definition Classes
    TreeNode
  39. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  40. def hashCode(): Int

    Permalink
    Definition Classes
    TreeNode → AnyRef → Any
  41. def innerChildren: Seq[TreeNode[_]]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  42. def inputTypes: Seq[DataType]

    Permalink
    Definition Classes
    AvroDeserializerExpression → ExpectsInputTypes
  43. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  44. def jsonFields: List[JField]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  45. def makeCopy(newArgs: Array[AnyRef]): Expression

    Permalink
    Definition Classes
    TreeNode
  46. def map[A](f: (Expression) ⇒ A): Seq[A]

    Permalink
    Definition Classes
    TreeNode
  47. def mapChildren(f: (Expression) ⇒ Expression): Expression

    Permalink
    Definition Classes
    TreeNode
  48. val mapDatumReader: HashMap[Long, GenericDatumReader[AnyRef]]

    Permalink
  49. def mapProductIterator[B](f: (Any) ⇒ B)(implicit arg0: ClassTag[B]): Array[B]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  50. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  51. def nodeName: String

    Permalink
    Definition Classes
    TreeNode
  52. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  53. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  54. def nullSafeCodeGen(ctx: CodegenContext, ev: ExprCode, f: (String) ⇒ String): ExprCode

    Permalink
    Attributes
    protected
    Definition Classes
    UnaryExpression
  55. def nullSafeEval(input: Any): Any

    Permalink
    Attributes
    protected
    Definition Classes
    AvroDeserializerExpression → UnaryExpression
  56. def nullable: Boolean

    Permalink
    Definition Classes
    UnaryExpression → Expression
  57. def numberedTreeString: String

    Permalink
    Definition Classes
    TreeNode
  58. val origin: Origin

    Permalink
    Definition Classes
    TreeNode
  59. def otherCopyArgs: Seq[AnyRef]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  60. def p(number: Int): Expression

    Permalink
    Definition Classes
    TreeNode
  61. def prettyJson: String

    Permalink
    Definition Classes
    TreeNode
  62. def prettyName: String

    Permalink
    Definition Classes
    Expression
  63. def references: AttributeSet

    Permalink
    Definition Classes
    Expression
  64. lazy val resolved: Boolean

    Permalink
    Definition Classes
    Expression
  65. val schemaAvroJson: String

    Permalink

    the JSON representation of the Avro schema

  66. def semanticEquals(other: Expression): Boolean

    Permalink
    Definition Classes
    Expression
  67. def semanticHash(): Int

    Permalink
    Definition Classes
    Expression
  68. def simpleString(maxFields: Int): String

    Permalink
    Definition Classes
    Expression → TreeNode
  69. def sql: String

    Permalink
    Definition Classes
    Expression
  70. def stringArgs: Iterator[Any]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  71. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  72. def toJSON: String

    Permalink
    Definition Classes
    TreeNode
  73. def toString(): String

    Permalink
    Definition Classes
    Expression → TreeNode → AnyRef → Any
  74. def transform(rule: PartialFunction[Expression, Expression]): Expression

    Permalink
    Definition Classes
    TreeNode
  75. def transformDown(rule: PartialFunction[Expression, Expression]): Expression

    Permalink
    Definition Classes
    TreeNode
  76. def transformUp(rule: PartialFunction[Expression, Expression]): Expression

    Permalink
    Definition Classes
    TreeNode
  77. def treeString(append: (String) ⇒ Unit, verbose: Boolean, addSuffix: Boolean, maxFields: Int): Unit

    Permalink
    Definition Classes
    TreeNode
  78. def treeString(verbose: Boolean, addSuffix: Boolean, maxFields: Int): String

    Permalink
    Definition Classes
    TreeNode
  79. def treeString: String

    Permalink
    Definition Classes
    TreeNode
  80. final def verboseString(maxFields: Int): String

    Permalink
    Definition Classes
    Expression → TreeNode
  81. def verboseStringWithSuffix(maxFields: Int): String

    Permalink
    Definition Classes
    TreeNode
  82. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  83. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  84. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  85. def withNewChildren(newChildren: Seq[Expression]): Expression

    Permalink
    Definition Classes
    TreeNode

Inherited from Serializable

Inherited from Serializable

Inherited from ExpectsInputTypes

Inherited from UnaryExpression

Inherited from Expression

Inherited from TreeNode[Expression]

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped