Package org.openrefine.runners.local.pll
Class TextFilePLL.TextFilePartition
- java.lang.Object
-
- org.openrefine.runners.local.pll.TextFilePLL.TextFilePartition
-
- All Implemented Interfaces:
Partition
- Enclosing class:
- TextFilePLL
protected static class TextFilePLL.TextFilePartition extends Object implements Partition
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TextFilePartition(File path, int index, long start, long end)
Represents a split in an uncompressed text file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getEnd()
int
getIndex()
Returns the index of this partition in the underlying PLLPartition
getParent()
Returns the partition of the parent PLL this is derived from (if any - otherwise null)File
getPath()
long
getStart()
-
-
-
Constructor Detail
-
TextFilePartition
protected TextFilePartition(File path, int index, long start, long end)
Represents a split in an uncompressed text file.- Parameters:
path
- the path to the file being readindex
- position of the split in the filestart
- starting byte where to read from in the fileend
- first byte not to be read after the end of the file
-
-
Method Detail
-
getPath
public File getPath()
-
getIndex
public int getIndex()
Description copied from interface:Partition
Returns the index of this partition in the underlying PLL
-
getParent
public Partition getParent()
Description copied from interface:Partition
Returns the partition of the parent PLL this is derived from (if any - otherwise null)
-
getStart
public long getStart()
-
getEnd
public long getEnd()
-
-