public class GuaguaFileSplit extends Object
GuaguaFileSplit is used for WorkerComputable to read data.
GuaguaFileSplit is using to wrap FileSplit in hadoop to make guagua read split data easy. Which is also to
make guagua independent from hadoop packages.
| Constructor and Description |
|---|
GuaguaFileSplit()
Default constructor.
|
GuaguaFileSplit(String path,
long offset,
long length)
Constructor which is used to build full
GuaguaFileSplit. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getExtension() |
long |
getLength() |
long |
getOffset() |
String |
getPath() |
void |
setExtension(Object extension) |
void |
setLength(long length) |
void |
setOffset(long offset) |
void |
setPath(String path) |
String |
toString() |
public GuaguaFileSplit()
public GuaguaFileSplit(String path, long offset, long length)
GuaguaFileSplit.public String getPath()
public void setPath(String path)
public long getOffset()
public void setOffset(long offset)
public long getLength()
public void setLength(long length)
public Object getExtension()
public void setExtension(Object extension)
Copyright © 2018. All Rights Reserved.