Quantcast
Channel: Scala – Applied Math Bytes
Browsing all 14 articles
Browse latest View live

Java and Scala File and Directory Handling

Scala – How to open and read files in Scala How to write to file in Java – BufferedWriter Java File: Reading and Writing Files in Java org.apache.commons.io.FileUtils Example...

View Article



Executing R scripts from within a Spark job

Executing existing R scripts from Spark Executing R scripts from within a Spark job

View Article

Execute (exec) external system shell commands in Scala

How to execute (exec) external system commands in Scala The scala.sys.proces package scala.sys.process.ProcessBuilder How to execute external commands and use their STDOUT in Scala 12.11. Executing...

View Article

Iterating Collections in Scala

Iterating over Scala Lists with foreach and for Iterating over Scala Maps (for and foreach loop examples) Iterating over Map with Scala Iterating Maps in Scala

View Article

Cassandra Spark Working with CSV’s, TSV’s

Using Apache Spark DataFrames for Processing of Tabular Data Working with CSV / TSV files in Spark Import TSV File in spark Importing a Text File into a CQL Table Saving data to Cassandra

View Article


Anonymous Functions in Scala

Anonymous Function Syntax Scala – Passing a function literal as a function argument 9.2. Using Functions as Variables Don’t Use Return in Scala Fun With Scala Functions

View Article

Scala Java Conversions

Conversions Between Java and Scala Collections scala.collection.JavaConversions api docs

View Article

Scala headOption

Prefer headOption to Head in Scala Collection Scala headOption example

View Article


Typesafe Config Stuff

Java Code Examples for com.typesafe.config.Config

View Article


Scala Regex Stuff

Scala: How to extract parts of a string that match a regex scala.util.matching.Regex Safari Scala Cookbook – 1.6. Finding Patterns in Strings Daily Scala – Regular Expression 1 : Basics and findAllIn

View Article

Jetty’s Server in Spark Stack

Spark has a web accessible monitoring interface, as well as, several other mechanisms like remoting, and file-serving that use http protocols. Spark uses the Jetty web server, client and java servlet...

View Article

How to generate TimeUUID in Java/Scala for Cassandra

How to generate TimeUUID in Java/Scala UUIDGen.java

View Article

Reflective Instantiation of Classes at Runtime

Dynamic and Reflective Variable and Method Processing Roughly stated, Reflection is the ability for a program to inspect properties of itself and dynamically identify and invoke particular variables...

View Article


Spark Programmatic Node Communication

Distributed Computing Distributed and parallel data processing has been discussed and explained a million different ways in a million different places, so we’ll keep it brief here. Some of the best...

View Article
Browsing all 14 articles
Browse latest View live




Latest Images