Class/Object

ksb.csle.component.reader

PhoenixReaderBySql

Related Docs: object PhoenixReaderBySql | package reader

Permalink

class PhoenixReaderBySql extends BaseReader[DataFrame, BatchReaderInfo, SparkSession] with HBaseFuncAPI

:: ApplicationDeveloperApi ::

Reader that loads records from HBase using Phoenix SQL.

Linear Supertypes
HBaseFuncAPI, BaseReader[DataFrame, BatchReaderInfo, SparkSession], BaseDoer, Logging, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PhoenixReaderBySql
  2. HBaseFuncAPI
  3. BaseReader
  4. BaseDoer
  5. Logging
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PhoenixReaderBySql(o: BatchReaderInfo)

    Permalink

    o

    Object that contains message ksb.csle.common.proto.DatasourceProto.PhoenixInfo PhoenixInfo contains attributes as follows:

    • jdbcUrl: JDBC URL of Phoenix (required)
    • zkUrl: Address of HBase Zookeeper (required)
    • tableName: Table name to access (required)
    • userName: User name if requires authentication (optional)
    • password: Password if requires authentication (optional)
    • sql: List of SQL to execute when loads records (optional)

    PhoenixInfo

    message PhoenixInfo {
      required string jdbcUrl = 1;
      required string zkUrl = 2;
      required string tableName = 3;
      optional string userName = 4;
      optional string password = 5;
      repeated string sql = 8;
    }

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 close: Unit

    Permalink
    Definition Classes
    PhoenixReaderBySql → BaseReader
  7. val conn: Connection

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def executeQuery(stmt: Statement, sql: String): ResultSet

    Permalink
    Definition Classes
    HBaseFuncAPI
  11. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getTableSchema(stmt: Statement, tableName: String): StructType

    Permalink
    Definition Classes
    HBaseFuncAPI
  14. def getValueByType(rs: ResultSet, typeStr: String, index: Int): Any

    Permalink
    Definition Classes
    HBaseFuncAPI
  15. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  17. val logger: Logger

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. val o: BatchReaderInfo

    Permalink

    Object that contains message ksb.csle.common.proto.DatasourceProto.PhoenixInfo PhoenixInfo contains attributes as follows:

    Object that contains message ksb.csle.common.proto.DatasourceProto.PhoenixInfo PhoenixInfo contains attributes as follows:

    • jdbcUrl: JDBC URL of Phoenix (required)
    • zkUrl: Address of HBase Zookeeper (required)
    • tableName: Table name to access (required)
    • userName: User name if requires authentication (optional)
    • password: Password if requires authentication (optional)
    • sql: List of SQL to execute when loads records (optional)

    PhoenixInfo

    message PhoenixInfo {
      required string jdbcUrl = 1;
      required string zkUrl = 2;
      required string tableName = 3;
      optional string userName = 4;
      optional string password = 5;
      repeated string sql = 8;
    }
  22. def read(spark: SparkSession): DataFrame

    Permalink

    This reads DataFrame from HBase table using Apache Phoenix.

    This reads DataFrame from HBase table using Apache Phoenix.

    spark

    SparkSession.

    returns

    DataFrame.

    Definition Classes
    PhoenixReaderBySql → BaseReader
  23. def read(spark: SparkSession, info: PhoenixInfo): DataFrame

    Permalink
    Definition Classes
    HBaseFuncAPI
  24. val stmt: Statement

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

    Permalink
    Definition Classes
    AnyRef
  26. def toDataFrameType(name: String, dataType: String): StructField

    Permalink
    Definition Classes
    HBaseFuncAPI
  27. def toString(): String

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

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

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

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

Inherited from HBaseFuncAPI

Inherited from BaseReader[DataFrame, BatchReaderInfo, SparkSession]

Inherited from BaseDoer

Inherited from Logging

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped