library(sparklyr)
<- spark_connect(master = "spark://HOST:PORT")
sc <- jfloat(sc, 1.23e-8)
jflt # jflt is now a reference to a java.lang.Float object
Instantiate a Java float type.
R/utils.R
jfloat
Description
Instantiate a java.lang.Float
object with the value specified. NOTE: this method is useful when one has to invoke a Java/Scala method requiring a float (instead of double) type for at least one of its parameters.
Usage
jfloat(sc, x)
Arguments
Arguments | Description |
---|---|
sc | A spark_connection . |
x | A numeric value in R. |