Class/Object

com.ebiznext.comet.schema.model

Metadata

Related Docs: object Metadata | package model

Permalink

case class Metadata(mode: Option[Mode] = None, format: Option[Format] = None, encoding: Option[String] = None, multiline: Option[Boolean] = None, array: Option[Boolean] = None, withHeader: Option[Boolean] = None, separator: Option[String] = None, quote: Option[String] = None, escape: Option[String] = None, write: Option[WriteMode] = None, partition: Option[Partition] = None, index: Option[IndexSink] = None, properties: Option[Map[String, String]] = None) extends Product with Serializable

Specify Schema properties. These properties may be specified at the schema or domain level Any property non specified at the schema level is taken from the one specified at the domain level or else the default value is returned.

mode

: FILE mode by default

format

: DSV by default

encoding

: UTF-8 by default

multiline

: are json objects on a single line or multiple line ? Single by default. false means single. false also means faster

array

: Is a json stored as a single object array ? false by default

withHeader

: does the dataset has a header ? true bu default

separator

: the column separator, ';' by default

quote

: The String quote char, '"' by default

escape

: escaping char '\' by default

write

: Write mode, APPEND by default

partition

: Partition columns, no partitioning by default

index

: should the dataset be indexed in elasticsearch after ingestion ?

Annotations
@JsonDeserialize()
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Metadata
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Metadata(mode: Option[Mode] = None, format: Option[Format] = None, encoding: Option[String] = None, multiline: Option[Boolean] = None, array: Option[Boolean] = None, withHeader: Option[Boolean] = None, separator: Option[String] = None, quote: Option[String] = None, escape: Option[String] = None, write: Option[WriteMode] = None, partition: Option[Partition] = None, index: Option[IndexSink] = None, properties: Option[Map[String, String]] = None)

    Permalink

    mode

    : FILE mode by default

    format

    : DSV by default

    encoding

    : UTF-8 by default

    multiline

    : are json objects on a single line or multiple line ? Single by default. false means single. false also means faster

    array

    : Is a json stored as a single object array ? false by default

    withHeader

    : does the dataset has a header ? true bu default

    separator

    : the column separator, ';' by default

    quote

    : The String quote char, '"' by default

    escape

    : escaping char '\' by default

    write

    : Write mode, APPEND by default

    partition

    : Partition columns, no partitioning by default

    index

    : should the dataset be indexed in elasticsearch after ingestion ?

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. val array: Option[Boolean]

    Permalink

    : Is a json stored as a single object array ? false by default

  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 encoding: Option[String]

    Permalink

    : UTF-8 by default

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

    Permalink
    Definition Classes
    AnyRef
  9. val escape: Option[String]

    Permalink

    : escaping char '\' by default

  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. val format: Option[Format]

    Permalink

    : DSV by default

  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getEncoding(): String

    Permalink
  14. def getEscape(): String

    Permalink
  15. def getFormat(): Format

    Permalink
  16. def getIndexSink(): Option[IndexSink]

    Permalink
  17. def getIngestMode(): Mode

    Permalink
  18. def getMultiline(): Boolean

    Permalink
  19. def getPartitionAttributes(): List[String]

    Permalink
  20. def getProperties(): Map[String, String]

    Permalink
  21. def getQuote(): String

    Permalink
  22. def getSamplingStrategy(): Double

    Permalink
  23. def getSeparator(): String

    Permalink
  24. def getWriteMode(): WriteMode

    Permalink
  25. def import(child: Metadata): Metadata

    Permalink

    Merge this metadata with its child.

    Merge this metadata with its child. Any property defined at the child level overrides the one defined at this level This allow a schema to override the domain metadata attribute Applied to a Domain level metadata

    child

    : Schema level metadata

    returns

    the metadata resulting of the merge of the schema and the domain metadata.

  26. val index: Option[IndexSink]

    Permalink

    : should the dataset be indexed in elasticsearch after ingestion ?

  27. def isArray(): Boolean

    Permalink
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def isWithHeader(): Boolean

    Permalink
  30. def merge[T](parent: Option[T], child: Option[T]): Option[T]

    Permalink

    Merge a single attribute

    Merge a single attribute

    parent

    : Domain level metadata attribute

    child

    : Schema level metadata attribute

    returns

    attribute if merge, the domain attribute otherwise.

    Attributes
    protected
  31. val mode: Option[Mode]

    Permalink

    : FILE mode by default

  32. val multiline: Option[Boolean]

    Permalink

    : are json objects on a single line or multiple line ? Single by default.

    : are json objects on a single line or multiple line ? Single by default. false means single. false also means faster

  33. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  36. val partition: Option[Partition]

    Permalink

    : Partition columns, no partitioning by default

  37. val properties: Option[Map[String, String]]

    Permalink
  38. val quote: Option[String]

    Permalink

    : The String quote char, '"' by default

  39. val separator: Option[String]

    Permalink

    : the column separator, ';' by default

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

    Permalink
    Definition Classes
    AnyRef
  41. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. val withHeader: Option[Boolean]

    Permalink

    : does the dataset has a header ? true bu default

  46. val write: Option[WriteMode]

    Permalink

    : Write mode, APPEND by default

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped