-
-
Save tomaszezula/ab672273d84092b93a5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.spark.sql._ | |
import org.apache.spark.streaming.dstream.DStream | |
trait Analyser[T] { | |
def analyse(input: DStream[T]) | |
} | |
class WindowAnalyzer(val ctx: HiveContext) extends Analyser[Row] { | |
override def analyse(input: DStream[T]) { | |
// Applies analysis on the sliding window, such as volume metrics | |
} | |
} | |
class ThreatIntelSweeper(val ctx: HiveContext) extends Analyser[Row] { | |
override def analyse(input: DStream[T]) { | |
// Malicious content identification | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment