Object

com.coxautodata.waimak.storage

Storage

Related Doc: package storage

Permalink

object Storage

Contains methods to create tables, open tables.

Created by Alexei Perelighin on 2018/04/11

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Storage
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 createFileTable(sparkSession: SparkSession, basePath: Path, tableInfo: AuditTableInfo): Try[AuditTable]

    Permalink

    Creates file table with default configurations, region ids will Longs with zeros added to the left to make it 20 chars.

    Creates file table with default configurations, region ids will Longs with zeros added to the left to make it 20 chars.

    basePath

    parent folder which contains folders with table names

    tableInfo

    table metadata

    Exceptions thrown

    StorageException : Storage exceptions when: 1) primary keys are not specified; 2) the folder already exists

  7. def createFops(sparkSession: SparkSession, basePath: Path): FileStorageOps

    Permalink

    Creates File Operations object that is a bridge between the process actions and actual storage and handle write to temp with move to permanent operations.

    Creates File Operations object that is a bridge between the process actions and actual storage and handle write to temp with move to permanent operations.

    basePath

    parent folder which contains folders with table names, .tmp and .Trash folders will be underneath.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  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. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. def openFileTables(sparkSession: SparkSession, basePath: Path, tableNames: Seq[String], includeHot: Boolean = true): (Map[String, Try[AuditTable]], Seq[String])

    Permalink

    Opens multiple tables, reads their metadata and reads the state of the table regions (ids, count of records per region, values of region latest timestamp).

    Opens multiple tables, reads their metadata and reads the state of the table regions (ids, count of records per region, values of region latest timestamp).

    You can specify to only read the cold (compacted) state of the table. This is useful to avoid consistency issues during development on tables into which data is currently flowing. This is useful to avoid consistency issues during development on tables into which data is currently flowing.

    basePath

    parent folder which contains folders with table names

    tableNames

    list of tables to open

    includeHot

    include freshly appended data that has not been compacted yet. Useful for using production data in development.

    returns

    (Map[TABLE NAME, AuditTable], Seq[MISSING TABLES]) - audit table objects that exist and of table names that were not found under the basePath

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped