ml.shifu.guagua.io
类 GuaguaFileSplit

java.lang.Object
  继承者 ml.shifu.guagua.io.GuaguaFileSplit

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.


构造方法摘要
GuaguaFileSplit()
          Default constructor.
GuaguaFileSplit(String path, long offset, long length)
          Constructor which is used to build full GuaguaFileSplit.
 
方法摘要
 long getLength()
           
 long getOffset()
           
 String getPath()
           
 void setLength(long length)
           
 void setOffset(long offset)
           
 void setPath(String path)
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

GuaguaFileSplit

public GuaguaFileSplit()
Default constructor.


GuaguaFileSplit

public GuaguaFileSplit(String path,
                       long offset,
                       long length)
Constructor which is used to build full GuaguaFileSplit.

方法详细信息

getPath

public String getPath()

setPath

public void setPath(String path)

getOffset

public long getOffset()

setOffset

public void setOffset(long offset)

getLength

public long getLength()

setLength

public void setLength(long length)

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2015. All Rights Reserved.