scray.common.key.api.ScrayKey.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scray-querying Show documentation
Show all versions of scray-querying Show documentation
query engine core source code
package scray.common.key.api
/**
* Some data produced by an aggregation job are identified by key.
* To query this data the scray service requires this key.
* This interface can help to use the same keygeneration class.
*/
abstract class ScrayKey[T](value: T, val version: Float) extends Serializable {
/**
* Provide a string representation of the key.
* Is used by scray service to query the data.
*/
def getKeyAsString: String
/**
* Check if two objects are equals.
* Is used by Spark
*/
override def equals(other: Any): Boolean
/**
* Provides a hash code for this class.
* Is used by Spark
*/
override def hashCode: Int
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy