- All Implemented Interfaces:
- java.io.Serializable, org.apache.spark.api.java.function.PairFunction<scala.Tuple2<java.lang.String,org.apache.spark.input.PortableDataStream>,org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable>
public class FilesAsBytesFunction
extends java.lang.Object
implements org.apache.spark.api.java.function.PairFunction<scala.Tuple2<java.lang.String,org.apache.spark.input.PortableDataStream>,org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable>
A PairFunction that simply loads bytes[] from a a PortableDataStream, and wraps it (and the String key)
in Text and BytesWritable respectively.
- See Also:
- Serialized Form