<commit_before>package com.bwsw.sj.engine.core.entities

import com.fasterxml.jackson.annotation.JsonProperty

/**
 * Represents a message that is received from an OutputExecutor
 *
 * Provides a wrapper for elasticsearch entity.
 */

class EsEnvelope() extends Envelope {
  streamType = "elasticsearch-output"
  @JsonProperty("output-date-time") var outputDateTime: String = null
  @JsonProperty("txn-date-time") var transactionDateTime: String = null

  /**
   * Allows adding the field(s) of Date type to a standard set of fields
   * (that contains 'output-date-time' and 'txn-date-time' fields by default)
   * that is used to define in the mapping which fields contain dates
   * (usually this field represents the time that events occurred)
   */
  def getDateFields(): Array[String] = {
    Array("output-date-time", "txn-date-time")
  }<commit_msg>now EsEnvelope is serializable class<commit_after>package com.bwsw.sj.engine.core.entities

import com.fasterxml.jackson.annotation.JsonProperty

/**
 * Represents a message that is received from an OutputExecutor
 *
 * Provides a wrapper for elasticsearch entity.
 */

class EsEnvelope() extends Envelope with Serializable {
  streamType = "elasticsearch-output"
  @JsonProperty("output-date-time") var outputDateTime: String = null
  @JsonProperty("txn-date-time") var transactionDateTime: String = null

  /**
   * Allows adding the field(s) of Date type to a standard set of fields
   * (that contains 'output-date-time' and 'txn-date-time' fields by default)
   * that is used to define in the mapping which fields contain dates
   * (usually this field represents the time that events occurred)
   */
  def getDateFields(): Array[String] = {
    Array("output-date-time", "txn-date-time")
  }
{'fraction_non_alphanumeric': 0.10028490028490028, 'fraction_numerical': 0.0, 'mean_word_length': 4.210682492581602, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1223416', 'n_tokens_mistral': 503, 'n_tokens_neox': 495, 'n_words': 170}