Operations
Implementations for advanced transformation.
Usage
Loading data into Spark
import org.datavec.api.writable.Writable;
import org.datavec.api.records.reader.impl.csv.CSVRecordReader;
import org.datavec.spark.transform.misc.StringToWritablesFunction;
SparkConf conf = new SparkConf();
JavaSparkContext sc = new JavaSparkContext(conf)
String customerInfoPath = new ClassPathResource("CustomerInfo.csv").getFile().getPath();
JavaRDD<List<Writable>> customerInfo = sc.textFile(customerInfoPath).map(new StringToWritablesFunction(rr));Available ops
AggregableCheckingOp
AggregableMultiOp
ByteWritableOp
DispatchOp
DispatchWithConditionOp
DoubleWritableOp
FloatWritableOp
IntWritableOp
LongWritableOp
StringWritableOp
CalculateSortedRank
Last updated
Was this helpful?