public class SequenceFileRDDFunctions<K,V>
extends java.lang.Object
implements scala.Serializable
Constructor and Description |
---|
SequenceFileRDDFunctions(RDD<scala.Tuple2<K,V>> self,
java.lang.Class<? extends org.apache.hadoop.io.Writable> _keyWritableClass,
java.lang.Class<? extends org.apache.hadoop.io.Writable> _valueWritableClass,
scala.Function1<K,org.apache.hadoop.io.Writable> evidence$1,
scala.reflect.ClassTag<K> evidence$2,
scala.Function1<V,org.apache.hadoop.io.Writable> evidence$3,
scala.reflect.ClassTag<V> evidence$4) |
Modifier and Type | Method and Description |
---|---|
void |
saveAsSequenceFile(java.lang.String path,
scala.Option<java.lang.Class<? extends org.apache.hadoop.io.compress.CompressionCodec>> codec)
Output the RDD as a Hadoop SequenceFile using the Writable types we infer from the RDD's key
and value types.
|
public SequenceFileRDDFunctions(RDD<scala.Tuple2<K,V>> self, java.lang.Class<? extends org.apache.hadoop.io.Writable> _keyWritableClass, java.lang.Class<? extends org.apache.hadoop.io.Writable> _valueWritableClass, scala.Function1<K,org.apache.hadoop.io.Writable> evidence$1, scala.reflect.ClassTag<K> evidence$2, scala.Function1<V,org.apache.hadoop.io.Writable> evidence$3, scala.reflect.ClassTag<V> evidence$4)
public void saveAsSequenceFile(java.lang.String path, scala.Option<java.lang.Class<? extends org.apache.hadoop.io.compress.CompressionCodec>> codec)
path
can be on any Hadoop-supported
file system.path
- (undocumented)codec
- (undocumented)