|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp2pMapReduce.mapreduceModule.input.InputSplit
p2pMapReduce.mapreduceModule.input.TextFileInputSplit_old
public class TextFileInputSplit_old
Field Summary | |
---|---|
static java.lang.String |
LINE_SEPARATOR
|
Fields inherited from class p2pMapReduce.mapreduceModule.input.InputSplit |
---|
DESCRIPTOR_SUFFIX |
Constructor Summary | |
---|---|
TextFileInputSplit_old()
|
|
TextFileInputSplit_old(java.lang.String filePath,
java.lang.String inputFilePath)
|
Method Summary | |
---|---|
long |
append(java.io.BufferedReader br,
long bytesRemaining)
|
long |
appendFrom(java.io.BufferedReader br)
Deprecated. |
long |
appendFrom(java.io.BufferedReader br,
long bytesRemaining)
Deprecated. |
void |
close()
|
java.io.File |
getFile()
|
java.lang.String |
getInputFilePath()
|
long |
getLength()
Get the size of the split, so that the input splits can be sorted by size. |
java.lang.String[] |
getLocations()
Get the list of nodes by name where the data for the split would be local. |
void |
readFields(java.io.DataInput in)
Deserialize the fields of this object from in . |
java.lang.String |
toString()
|
void |
write(java.io.DataOutput out)
Serialize the fields of this object to out . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LINE_SEPARATOR
Constructor Detail |
---|
public TextFileInputSplit_old()
public TextFileInputSplit_old(java.lang.String filePath, java.lang.String inputFilePath) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
Method Detail |
---|
public java.io.File getFile()
public java.lang.String getInputFilePath()
@Deprecated public long appendFrom(java.io.BufferedReader br) throws java.io.FileNotFoundException, java.io.IOException
srcFile
-
java.io.FileNotFoundException
java.io.IOException
@Deprecated public long appendFrom(java.io.BufferedReader br, long bytesRemaining) throws java.io.FileNotFoundException, java.io.IOException
srcFile
- bytesRemaining
-
java.io.FileNotFoundException
java.io.IOException
public long append(java.io.BufferedReader br, long bytesRemaining) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public long getLength() throws java.io.IOException, java.lang.InterruptedException
InputSplit
getLength
in class InputSplit
java.io.IOException
java.lang.InterruptedException
public java.lang.String[] getLocations() throws java.io.IOException, java.lang.InterruptedException
InputSplit
getLocations
in class InputSplit
java.io.IOException
java.lang.InterruptedException
public java.lang.String toString()
toString
in class java.lang.Object
public void write(java.io.DataOutput out) throws java.io.IOException
Writable
out
.
out
- DataOuput
to serialize this object into.
java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in
- DataInput
to deseriablize this object from.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |