- All Implemented Interfaces:
- Serializable, org.apache.spark.api.java.function.PairFunction<scala.Tuple2<String,org.apache.spark.input.PortableDataStream>,org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable>
public class FilesAsBytesFunction
extends Object
implements org.apache.spark.api.java.function.PairFunction<scala.Tuple2<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.
- Author:
- Alex Black
- See Also:
- Serialized Form