|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectorg.apache.spark.input.PortableDataStream
public class PortableDataStream
A class that allows DataStreams to be serialized and moved around by not creating them until they need to be read
| Constructor Summary | |
|---|---|
PortableDataStream(org.apache.hadoop.mapreduce.lib.input.CombineFileSplit isplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context,
Integer index)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the file (if it is currently open) |
String |
getPath()
|
java.io.DataInputStream |
open()
Create a new DataInputStream from the split and context |
byte[] |
toArray()
Read the file as a byte array |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortableDataStream(org.apache.hadoop.mapreduce.lib.input.CombineFileSplit isplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context,
Integer index)
| Method Detail |
|---|
public java.io.DataInputStream open()
public byte[] toArray()
public void close()
public String getPath()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||