Class

io.eels.component.hive

HiveOps

Related Doc: package hive

Permalink

class HiveOps extends Logging

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

Instance Constructors

  1. new HiveOps(client: IMetaStoreClient)

    Permalink

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 addColumn(dbName: String, tableName: String, field: Field): Unit

    Permalink

    Adds this column to the hive schema.

    Adds this column to the hive schema. This is schema evolution. The column must be marked as nullable and cannot have the same name as an existing column.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val client: IMetaStoreClient

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def createDatabase(name: String, description: String = null, overwrite: Boolean = false): Unit

    Permalink
  9. def createPartition(dbName: String, tableName: String, location: Path, values: Seq[String]): Unit

    Permalink

    Creates a new partition in Hive in the given database.table.

    Creates a new partition in Hive in the given database.table. The location of the partition must be specified. If you want to use the default location then use the other variant that doesn't require the location path. The values for the serialization formats are taken from the values for the table.

  10. def createPartition(dbName: String, tableName: String, partition: Partition, strategy: PartitionPathStrategy): Unit

    Permalink

    Creates a new partition in Hive in the given database.table in the default location, which will be a subdirectory of the table location.

    Creates a new partition in Hive in the given database.table in the default location, which will be a subdirectory of the table location. The supplied partition path strategy will be used to generate the partition name.

  11. def createPartitionIfNotExists(dbName: String, tableName: String, partition: Partition, partitionPathStrategy: PartitionPathStrategy): Unit

    Permalink
  12. def createTable(databaseName: String, tableName: String, schema: StructType, partitionKeys: Seq[String], format: HiveFormat = HiveFormat.Text, props: Map[String, String] = Map.empty, tableType: TableType = TableType.MANAGED_TABLE, location: String = null, overwrite: Boolean = false): Boolean

    Permalink
  13. def createTimeAsInt(): Int

    Permalink
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hivePartitions(dbName: String, tableName: String): List[Partition]

    Permalink

    Returns hive API partitions for the given dbName:tableName

    Returns hive API partitions for the given dbName:tableName

    In Hive, a partition is a set

  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def location(dbName: String, tableName: String): String

    Permalink
  22. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  26. def partitionExists(dbName: String, tableName: String, partition: Partition): Boolean

    Permalink
  27. def partitionFieldSchemas(dbName: String, tableName: String): List[FieldSchema]

    Permalink

    Returns the hive FieldSchema's for partition columns.

    Returns the hive FieldSchema's for partition columns. Hive calls these "partition partitionKeys"

  28. def partitionFields(dbName: String, tableName: String): List[Field]

    Permalink
  29. def partitionKeys(dbName: String, tableName: String): List[String]

    Permalink
  30. def partitionMap(dbName: String, tableName: String): Map[String, Seq[String]]

    Permalink

    Returns a map of all partition keys to the distinct values.

    Returns a map of all partition keys to the distinct values. This operation is optimized, in that it does not need to scan files, but can retrieve the information directly from the hive metastore.

  31. def partitionValues(dbName: String, tableName: String, key: String): Seq[String]

    Permalink

    Returns all partition values for a given partition key.

    Returns all partition values for a given partition key. This operation is optimized, in that it does not need to scan files, but can retrieve the information directly from the hive metastore.

  32. def partitions(dbName: String, tableName: String): List[Partition]

    Permalink
  33. def partitionsMetaData(dbName: String, tableName: String): Seq[PartitionMetaData]

    Permalink
  34. def schema(dbName: String, tableName: String): StructType

    Permalink
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def tableExists(databaseName: String, tableName: String): Boolean

    Permalink
  37. def tableFormat(dbName: String, tableName: String): String

    Permalink
  38. def tablePath(dbName: String, tableName: String): Path

    Permalink
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped