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, partitionConstraints: Seq[PartitionConstraint] = Nil, 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

partitionConstraints

optional constraits on the partition data to narrow which partitions are read

Linear Supertypes
Serializable, Serializable, Product, scala.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, partitionConstraints: Seq[PartitionConstraint] = Nil, 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

    partitionConstraints

    optional constraits on the partition data to narrow which partitions are read

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 addPartitionConstraint(constraint: PartitionConstraint): HiveSource

    Permalink
  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val dbName: String

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

    Permalink
    Definition Classes
    AnyRef
  9. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  12. def isPartitionOnlyProjection: Boolean

    Permalink

    Returns true if the currently set projection is for partition only fields.

  13. val keytabPath: Option[Path]

    Permalink
  14. def load[T](implicit arg0: Manifest[T]): Seq[T]

    Permalink
    Definition Classes
    Source
  15. val logger: Logger

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. val partitionConstraints: Seq[PartitionConstraint]

    Permalink

    optional constraits on the partition data to narrow which partitions are read

  20. def parts(): Seq[Publisher[Seq[Row]]]

    Permalink
    Definition Classes
    HiveSource → Source
  21. val predicate: Option[Predicate]

    Permalink

    optional predicate which will filter rows at the read level

  22. val principal: Option[String]

    Permalink
  23. val projection: List[String]

    Permalink

    sets which fields are required by the caller.

  24. 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.

    If the projection requests a field that does not exist, then this method will throw an exception.

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

    Definition Classes
    HiveSource → Source
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def table: HiveTable

    Permalink
  27. val tableName: String

    Permalink
  28. def toDataStream(listener: Listener): DataStream

    Permalink
    Definition Classes
    Source
  29. def toDataStream(): DataStream

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

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

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

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

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

    Permalink
  35. def withPartitionConstraints(constraints: Seq[PartitionConstraint]): HiveSource

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

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

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

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from scala.Equals

Inherited from Using

Inherited from Source

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped