Class

io.eels.component.hive

HiveSource

Related Doc: package hive

Permalink

case class HiveSource(dbName: String, tableName: String, projection: List[String] = Nil, predicate: Option[Predicate] = None, partitionConstraint: Option[PartitionConstraint] = None, principal: Option[String] = None, keytabPath: Option[Path] = None)(implicit fs: FileSystem, client: IMetaStoreClient) extends Source with Logging with Using with Product with Serializable

projection

sets which fields are required by the caller.

predicate

optional predicate which will filter rows at the read level

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

Instance Constructors

  1. new HiveSource(dbName: String, tableName: String, projection: List[String] = Nil, predicate: Option[Predicate] = None, partitionConstraint: Option[PartitionConstraint] = None, principal: Option[String] = None, keytabPath: Option[Path] = None)(implicit fs: FileSystem, client: IMetaStoreClient)

    Permalink

    projection

    sets which fields are required by the caller.

    predicate

    optional predicate which will filter rows at the read level

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. implicit val conf: Configuration

    Permalink
  7. val dbName: String

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

    Permalink
    Definition Classes
    AnyRef
  9. 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.

  10. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. def isPartitionOnlyProjection(): Boolean

    Permalink
  14. val keytabPath: Option[Path]

    Permalink
  15. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  16. lazy val metastoreSchema: StructType

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. val ops: HiveOps

    Permalink
  21. val partitionConstraint: Option[PartitionConstraint]

    Permalink
  22. def parts(): List[Part]

    Permalink
    Definition Classes
    HiveSource → Source
  23. def paths(includePartitionDirs: Boolean = false, includeTableDir: Boolean = false): List[Path]

    Permalink

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

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

    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

  24. val predicate: Option[Predicate]

    Permalink

    optional predicate which will filter rows at the read level

  25. val principal: Option[String]

    Permalink
  26. val projection: List[String]

    Permalink

    sets which fields are required by the caller.

  27. def schema: StructType

    Permalink

    The returned schema should take into account:

    The returned schema should take into account:

    1) Any projection. If a projection is set, then it should return the schema in the same order as the projection. If no projection is set then the schema should be driven from the hive metastore.

    2) Any partitions set. These should be included in the schema columns.

    Definition Classes
    HiveSource → Source
  28. 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

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

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

    Permalink
  31. 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.

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

    Permalink
    Definition Classes
    AnyRef
  33. val tableName: String

    Permalink
  34. def tablePermission(): FsPermission

    Permalink
  35. def toFrame(_listener: Listener): Frame

    Permalink
    Definition Classes
    Source
  36. def toFrame(): Frame

    Permalink
    Definition Classes
    Source
  37. def using[T, U <: AnyRef { def close(): Unit }](closeable: U)(f: (U) ⇒ T): T

    Permalink
    Definition Classes
    Using
  38. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def withKeytabFile(principal: String, keytabPath: Path): HiveSource

    Permalink
  42. def withPartitionConstraint(constraint: PartitionConstraint): HiveSource

    Permalink
  43. def withPredicate(predicate: Predicate): HiveSource

    Permalink
  44. def withProjection(columns: Seq[String]): HiveSource

    Permalink
  45. def withProjection(first: String, rest: String*): HiveSource

    Permalink

Deprecated Value Members

  1. def select(first: String, rest: String*): HiveSource

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.1.0) use withProjection()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Using

Inherited from Source

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped