case object SparkShreddingUtils extends Product with Serializable

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparkShreddingUtils
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class SparkShreddedResult extends ShreddedResult
  2. class SparkShreddedResultBuilder extends ShreddedResultBuilder

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. val MetadataFieldName: String
  5. val TypedValueFieldName: String
  6. val VARIANT_WRITE_SHREDDING_KEY: String
  7. val VariantValueFieldName: String
  8. def addWriteShreddingMetadata(schema: StructType): StructType

    Given a schema that represents a valid shredding schema (e.g.

    Given a schema that represents a valid shredding schema (e.g. constructed by SparkShreddingUtils.variantShreddingSchema), add metadata to the top-level fields to mark it as a shredding schema for writers.

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def assembleVariant(row: InternalRow, schema: VariantSchema): VariantVal
  11. def assembleVariantBatch(input: WritableColumnVector, output: WritableColumnVector, schema: VariantSchema): Unit
  12. def assembleVariantStruct(inputRow: InternalRow, schema: VariantSchema, fields: Array[FieldToExtract]): InternalRow
  13. def assembleVariantStructBatch(input: WritableColumnVector, output: WritableColumnVector, schema: VariantSchema, fields: Array[FieldToExtract]): Unit
  14. def buildVariantSchema(schema: DataType): VariantSchema
  15. def castShredded(v: Variant, schema: VariantSchema): InternalRow

    Converts an input variant into shredded components.

    Converts an input variant into shredded components. Returns the shredded result.

  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  20. def getFieldsToExtract(targetType: DataType, inputSchema: VariantSchema): Array[FieldToExtract]
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def isVariantShreddingStruct(s: StructType): Boolean
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  26. def parquetTypeToSparkType(parquetType: Type): DataType
  27. def productElementName(n: Int): String
    Definition Classes
    Product
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. def scalarSchemaToSparkType(scalar: ScalarType): DataType
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def variantShreddingSchema(dataType: DataType, isTopLevel: Boolean = true, isObjectField: Boolean = false): StructType

    Given an expected schema of a Variant value, returns a suitable schema for shredding, by inserting appropriate intermediate value/typed_value fields at each level.

    Given an expected schema of a Variant value, returns a suitable schema for shredding, by inserting appropriate intermediate value/typed_value fields at each level. For example, to represent the JSON {"a": 1, "b": "hello"}, the schema struct<a: int, b: string> could be passed into this function, and it would return the shredding schema: struct< metadata: binary, value: binary, typed_value: struct< a: struct<typed_value: int, value: binary>, b: struct<typed_value: string, value: binary>>>

  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped