by Diego Calvo | Jun 22, 2018 | Scala-example
Function without parameters Simple Scala function Example def hello_world() = { println (“Hello world!”) } Hello world! Function with parameters Example of a scalar function that supports parameters def sum_data(x: Int = 2, y: Int = 3): Int = { x +... by Diego Calvo | Jun 22, 2018 | Apache Spark, Big Data, Scala-example
IF Example of conditional use where it determines whether a note is approved or suspense var x = 6 if (x > = 5) { println (“approved”) } else {} println (“Substeno”) } X: Int = 6 Approved FOR Example of using “for” where... by Diego Calvo | Jun 22, 2018 | Big Data
ElasticSearch definition Elasticsearch is an open-source real-time search server that provides indexed and distributed storage based on Lucene. It provides all the Lucene search power for full-text searches, but simplifies queries through its to RestFul Web interface.... by Diego Calvo | Jun 20, 2018 | Big Data
Metric Scala Java Python R Type Compiled Compiled Interpreted Interpreted Based on JVM If If Not Not Cumbersome (-) (+) (-) (-) Length of code (-) (+) (-) (-) Productivity (+) (-) (+) (+) Scalability (+) (+) (-)... by Diego Calvo | Jun 20, 2018 | Apache Spark, Big Data
Spark definition Apache Spark is a distributed computing system of free software, which allows to process large sets of data on a set of machines simultaneously, providing horizontal scalability and fault tolerance. To meet these features provides a program...