Class FileArea
- java.lang.Object
-
- org.apache.nemo.runtime.executor.data.FileArea
-
- All Implemented Interfaces:
java.io.Serializable
public final class FileArea extends java.lang.Object implements java.io.Serializable
A file area descriptor. Used to send file contents without copying or encoding/decoding.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileArea(java.lang.String path, long position, long count)
Creates a file area.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
long
getCount()
java.lang.String
getPath()
long
getPosition()
int
hashCode()
-
-
-
Method Detail
-
getPath
public java.lang.String getPath()
- Returns:
- the path to the file
-
getPosition
public long getPosition()
- Returns:
- the starting position of the area
-
getCount
public long getCount()
- Returns:
- the length of the area
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-