All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.ytsaurus.spyt.wrapper.model.EventLogSchema.scala Maven / Gradle / Ivy

package tech.ytsaurus.spyt.wrapper.model

import tech.ytsaurus.spyt.wrapper.model.EventLogSchema.Key._
import tech.ytsaurus.core.tables.{ColumnValueType, TableSchema}

object EventLogSchema {
  object Key {
    val ID = "id"
    val ORDER = "order"
    val LOG = "log"

    val FILENAME = "file_name"
    val META = "meta"

    val ROW_SIZE = "rowSize"
    val BLOCKS_CNT = "blocksCnt"
    val LENGTH = "length"
    val MODIFICATION_TS = "modificationTs"
  }

  val schema: TableSchema = TableSchema.builder()
    .setUniqueKeys(true)
    .addKey(ID, ColumnValueType.STRING)
    .addKey(ORDER, ColumnValueType.INT64)
    .addValue(LOG, ColumnValueType.STRING)
    .build()

  val metaSchema: TableSchema = TableSchema.builder()
    .setUniqueKeys(true)
    .addKey(FILENAME, ColumnValueType.STRING)
    .addValue(ID, ColumnValueType.STRING)
    .addValue(META, ColumnValueType.ANY)
    .build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy