home
Let be a job that contains two phases that (for convenience) cannot be merged. Let's call A the...
here is my code which is used to extract content and metadata, unfortunately this code runs into...
I would like to pattern-match against a generic parameter. I wrote the following example: new...
This code compiles with an error: def f1[T](e: T): T = e match { case i:Int => i case...
I have a dataframe: yearDF with the following columns: name, id_number, location,...
Does Delphi support lower / upper type bounds for generics, e.g. such as those supported by Scala...
I have a Scala model class, whose object I want to store it onto Cassandra table.there is a...
I’m trying to generate synthetic logs of different types and push to a Kafka topic. In my current...
This question already has an answer here: What's the difference...
I have been working as scala developer last 3 month,facing difficulty to apply batch process while...
I am using scala to run this project , Code looks like this: package com.salesforce.hw import...
I have a dataframe which is like : df: col1 col2 a [p1,p2,p3] b [p1,p4] Desired...
This question already has an answer here: What are all the uses of an...
I have a dataframe id lat long lag_lat lag_long detector lag_interval gpsdt lead_gpsdt 1 12 ...
I have a dataframe with a array column. val json = """[ {"id": 1, "value": [11, 12, 18]}, {"id":...
For example, I have class C[T, U] { ... } class D[T, L <: HList, M <: HList] { ... } I...
I am a newbie in scala. Please be patient. I have this code. import...
I have a ListBuffer of Maps in scala. All maps inside the buffer contain some keys. For...
Imagine I have OptionT[IO, Value] like this case class FailureMsg(code: String, ex:...
I'm trying to write a simple series of routes, here's what I want to happen: GET / should print...
I am very much new to scala and trying to copy multiple csv files from one directory to another...
I am running spark program in scala and getting below runtime error: Exception in thread "main"...
I came across the following scala code: val x = 10 match { case _: Int => data: Any =>...
var versionMap = scala.collection.immutable.Map.empty[String, List[String]] var queryType =...
I am trying to define schema to CSV file using case class in Scala. case class userSchema(name :...
I have a function wrote on Spray and i want to change it to akka http code, but i havn't found how...
I'm new to Scala and IntelliJ. I have already installed Scala on my Unbuntu PC: printd[email protected]$...
Hi so I have a trait that takes some representation of itself as a type parameter. I also have a...
I've noticed that every time I try to do declare a class or case class with parameters like...
After reading across blogs, I get the impression that the tagged types provided by shapeless have...