c

com.ebiznext.comet.job.ingest

JsonIngestionJob

class JsonIngestionJob extends IngestionJob

Main class to complex json delimiter separated values file If your json contains only one level simple attribute aka. kind of dsv but in json format please use SIMPLE_JSON instead. It's way faster

Linear Supertypes
IngestionJob, SparkJob, JobBase, StrictLogging, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonIngestionJob
  2. IngestionJob
  3. SparkJob
  4. JobBase
  5. StrictLogging
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsonIngestionJob(domain: Domain, schema: Schema, types: List[Type], path: List[Path], storageHandler: StorageHandler, schemaHandler: SchemaHandler, options: Map[String, String])(implicit settings: Settings)

    domain

    : Input Dataset Domain

    schema

    : Input Dataset Schema

    types

    : List of globally defined types

    path

    : Input dataset path

    storageHandler

    : Storage Handler

Type Members

  1. type JdbcConfigName = String
    Definition Classes
    JobBase

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def analyze(fullTableName: String): Any
    Attributes
    protected
    Definition Classes
    SparkJob
  5. def applyIgnore(dfIn: DataFrame): Dataset[Row]
    Attributes
    protected
    Definition Classes
    IngestionJob
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def createSparkViews(views: Views, sqlParameters: Map[String, String]): Unit
    Attributes
    protected
    Definition Classes
    SparkJob
  9. val domain: Domain
    Definition Classes
    JsonIngestionJobIngestionJob
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. lazy val extension: String
    Definition Classes
    IngestionJob
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. val flatRowValidator: GenericRowValidator
    Attributes
    protected
    Definition Classes
    IngestionJob
  15. lazy val format: String
    Definition Classes
    IngestionJob
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getWriteMode(): WriteMode
    Definition Classes
    IngestionJob
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def ingest(dataset: DataFrame): (RDD[_], RDD[_])

    Where the magic happen

    Where the magic happen

    dataset

    input dataset as a RDD of string

    Attributes
    protected
    Definition Classes
    JsonIngestionJobIngestionJob
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def loadDataSet(): Try[DataFrame]

    load the json as an RDD of String

    load the json as an RDD of String

    returns

    Spark Dataframe loaded using metadata options

    Attributes
    protected
    Definition Classes
    JsonIngestionJobIngestionJob
  22. def loadJsonData(): Dataset[String]
    Attributes
    protected
  23. val logger: Logger
    Attributes
    protected
    Definition Classes
    StrictLogging
  24. lazy val metadata: Metadata

    Merged metadata

    Merged metadata

    Definition Classes
    IngestionJob
  25. def name: String
    Definition Classes
    JsonIngestionJobJobBase
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. val now: Timestamp
    Definition Classes
    IngestionJob
  30. val options: Map[String, String]
    Definition Classes
    JsonIngestionJobIngestionJob
  31. def parseViewDefinition(valueWithEnv: String): (SinkType, Option[JdbcConfigName], String)

    valueWithEnv

    in the form [SinkType:[configName:]]viewName

    returns

    (SinkType, configName, viewName)

    Attributes
    protected
    Definition Classes
    JobBase
  32. def partitionDataset(dataset: DataFrame, partition: List[String]): DataFrame
    Attributes
    protected
    Definition Classes
    SparkJob
  33. def partitionedDatasetWriter(dataset: DataFrame, partition: List[String]): DataFrameWriter[Row]

    Partition a dataset using dataset columns.

    Partition a dataset using dataset columns. To partition the dataset using the ingestion time, use the reserved column names :

    • comet_date
    • comet_year
    • comet_month
    • comet_day
    • comet_hour
    • comet_minute These columns are renamed to "date", "year", "month", "day", "hour", "minute" in the dataset and their values is set to the current date/time.
    dataset

    : Input dataset

    partition

    : list of columns to use for partitioning.

    returns

    The Spark session used to run this job

    Attributes
    protected
    Definition Classes
    SparkJob
  34. val path: List[Path]
    Definition Classes
    JsonIngestionJobIngestionJob
  35. def registerUdf(udf: String): Unit
    Attributes
    protected
    Definition Classes
    SparkJob
  36. def reorderAttributes(dataFrame: DataFrame): List[Attribute]
    Definition Classes
    IngestionJob
  37. def run(): Try[JobResult]

    Main entry point as required by the Spark Job interface

    Main entry point as required by the Spark Job interface

    returns

    : Spark Session used for the job

    Definition Classes
    IngestionJobJobBase
  38. def saveAccepted(dataframe: DataFrame): (DataFrame, Path)

    Merge new and existing dataset if required Save using overwrite / Append mode

    Merge new and existing dataset if required Save using overwrite / Append mode

    Attributes
    protected
    Definition Classes
    IngestionJob
  39. def saveRejected(rejectedRDD: RDD[String]): Try[Path]
    Attributes
    protected
    Definition Classes
    IngestionJob
  40. val schema: Schema
    Definition Classes
    JsonIngestionJobIngestionJob
  41. val schemaHandler: SchemaHandler
    Definition Classes
    JsonIngestionJobIngestionJob
  42. lazy val schemaSparkType: StructType
  43. lazy val session: SparkSession
    Definition Classes
    SparkJob
  44. implicit val settings: Settings
    Definition Classes
    JsonIngestionJobJobBase
  45. lazy val sparkEnv: SparkEnv
    Definition Classes
    SparkJob
  46. val storageHandler: StorageHandler
    Definition Classes
    JsonIngestionJobIngestionJob
  47. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  48. def toString(): String
    Definition Classes
    AnyRef → Any
  49. val treeRowValidator: GenericRowValidator
    Attributes
    protected
    Definition Classes
    IngestionJob
  50. val types: List[Type]
    Definition Classes
    JsonIngestionJobIngestionJob
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from IngestionJob

Inherited from SparkJob

Inherited from JobBase

Inherited from StrictLogging

Inherited from AnyRef

Inherited from Any

Ungrouped