Class

io.eels.component.hive

HiveTable

Related Doc: package hive

Permalink

case class HiveTable(dbName: String, tableName: String)(implicit fs: FileSystem, conf: Configuration, client: IMetaStoreClient) extends Logging with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, scala.Equals, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HiveTable
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Logging
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HiveTable(dbName: String, tableName: String)(implicit fs: FileSystem, conf: Configuration, 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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def compact(finalFilename: String = "eel_compacted_" + System.nanoTime): Unit

    Permalink
  7. def create(schema: StructType, partitionFields: Seq[String] = Nil, tableType: TableType = TableType.MANAGED_TABLE, dialect: HiveDialect = ParquetHiveDialect(), props: Map[String, String] = Map.empty): Unit

    Permalink
  8. val dbName: String

    Permalink
  9. def deletePartition(partition: Partition, deleteData: Boolean): Unit

    Permalink
  10. def dialect: HiveDialect

    Permalink
  11. def drop(deleteData: Boolean = true): Unit

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

    Permalink
    Definition Classes
    AnyRef
  13. def exists(): Boolean

    Permalink
  14. def files(): Map[Path, Seq[Path]]

    Permalink

    Returns all the files used by this table.

    Returns all the files used by this table. The result is a mapping of partition path to the files contained in that partition.

  15. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hasPartitions: Boolean

    Permalink
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def location(): Path

    Permalink
  20. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  21. def login(principal: String, keytabPath: Path): Unit

    Permalink
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  25. lazy val ops: HiveOps

    Permalink
  26. def partitionMetaData(constraints: Seq[PartitionConstraint]): Seq[PartitionMetaData]

    Permalink
  27. def partitionMetaData(partition: Partition): Option[PartitionMetaData]

    Permalink
  28. def partitionMetaData(): Seq[PartitionMetaData]

    Permalink

    Returns all the partitions along with extra meta data per partition, eg location, creation time.

  29. def partitionValues(key: String): Set[String]

    Permalink

    Returns just the values for the given partition key

  30. def partitions(): Seq[Partition]

    Permalink

    Returns all the partitions used by this hive source.

  31. def paths(includePartitionDirs: Boolean, includeTableDir: Boolean, regex: Regex): Seq[Path]

    Permalink

    Returns a list of all files used by this hive table that match the given regex.

    Returns a list of all files used by this hive table that match the given regex. The full path of the file will be used when matching against the regex.

    includePartitionDirs

    if true then the partition directories will be included

    includeTableDir

    if true then the main table directory will be included

    returns

    paths of all files and directories

  32. def paths(includePartitionDirs: Boolean, includeTableDir: Boolean): Seq[Path]

    Permalink

    Returns a list of all files used by this hive table.

    Returns a list of all files used by this hive table.

    includePartitionDirs

    if true then the partition directories will be included

    includeTableDir

    if true then the main table directory will be included

    returns

    paths of all files and directories

  33. def schema: StructType

    Permalink
  34. def setAcl(acl: AclSpec, includePartitionDirs: Boolean = false, includeTableDir: Boolean = false): Unit

    Permalink

    Sets the acl for all files of this hive source.

    Sets the acl for all files of this hive source. Even if the files are not located inside the table directory, this function will find them and correctly update the spec.

    acl

    the acl values to set

  35. def setPermissions(permission: FsPermission, includePartitionDirs: Boolean = false, includeTableDir: Boolean = false): Unit

    Permalink
  36. def showDdl(ifNotExists: Boolean = true): String

    Permalink
  37. def sink: HiveSink

    Permalink
  38. def source: HiveSource

    Permalink
  39. def spec(): TableSpec

    Permalink

    Returns a TableSpec which contains details of the underlying table.

    Returns a TableSpec which contains details of the underlying table. Similar to the Table class in the Hive API but using scala friendly types.

  40. def stats(): HiveStats

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

    Permalink
    Definition Classes
    AnyRef
  42. val tableName: String

    Permalink
  43. def tablePermission(): FsPermission

    Permalink
  44. def toHdfsSource: HdfsSource

    Permalink
  45. def truncate(removePartitions: Boolean): Unit

    Permalink
  46. def truncatePartition(partition: Partition): Unit

    Permalink
  47. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from scala.Equals

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped