o

ca.dataedu.savro

HiveSchema

object HiveSchema

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HiveSchema
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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(avroSchema: Schema): Either[AvroSchemaError, String]

    Returns a CREATE TABLE statement from the input Avro schema

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def avroFieldToHiveField(field: Field, level: Int): Either[AvroSchemaError, String]

    Converts an Avro field definition to an equivalent column definition compatible with HiveQL

    Converts an Avro field definition to an equivalent column definition compatible with HiveQL

    field

    input Avro field definition

    level

    the level of nested records for formatting

    returns

    a HiveQL compatible column definition

  7. def avroFieldToHiveField(fields: List[Field], level: Int): Either[AvroSchemaError, String]

    Gets a list of Avro field definitions and returns a single string that represents comma+new_line separated of the Hive compatible column definitions.

    Gets a list of Avro field definitions and returns a single string that represents comma+new_line separated of the Hive compatible column definitions.

    For example,

    [{"name":"ruleName","type":"string"},{"name":"ruleVersion","type":"int"}]}

    returns

    ruleName        string,
    ruleVersion        int
    fields

    list of Avro field definitions

    level

    0 for top level and more for the nested records

    returns

    comma+new_line separated of Hive definitions

  8. def avroTypeToHiveType(schema: Schema, level: Int): Either[AvroSchemaError, String]

    Gets an AVRO type definition of array and converts it to ARRAY in HiveQL compatible field definition.

    Gets an AVRO type definition of array and converts it to ARRAY in HiveQL compatible field definition.

    schema

    field schema

    returns

    column type in HiveQL

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped