com.bwsw.sj.stubs.module.output.data.StubEsData.scala Maven / Gradle / Ivy
The newest version!
package com.bwsw.sj.stubs.module.output.data
import java.util.Date
import com.bwsw.sj.engine.core.entities.OutputData
import com.fasterxml.jackson.annotation.JsonProperty
/**
* @author Kseniya Tomskikh
*/
class StubEsData extends OutputData {
@JsonProperty("test-date") var testDate: Date = null
var value: Int = 0
override def getDateFields(): Array[String] = {
val fields = super.getDateFields().toBuffer
fields.append("test-date")
fields.toArray
}
}