public class SegmentPart extends Object
Modifier and Type | Field and Description |
---|---|
String |
partName
Name of the segment part (ie.
|
String |
segmentName
Name of the segment (just the last path component).
|
Constructor and Description |
---|
SegmentPart() |
SegmentPart(String segmentName,
String partName) |
Modifier and Type | Method and Description |
---|---|
static SegmentPart |
get(org.apache.hadoop.mapred.FileSplit split)
Create SegmentPart from a FileSplit.
|
static SegmentPart |
get(String path)
Create SegmentPart from a full path of a location inside any segment part.
|
static SegmentPart |
parse(String string)
Create SegmentPart from a String in format "segmentName/partName".
|
String |
toString()
Return a String representation of this class, in the form
"segmentName/partName".
|
public String segmentName
public String partName
public String toString()
public static SegmentPart get(org.apache.hadoop.mapred.FileSplit split) throws IOException
split
- SegmentPart
resultant from a
FileSplit
.Exception
IOException
public static SegmentPart get(String path) throws IOException
path
- full path into a segment part (may include "part-xxxxx" components)IOException
- if any required path components are missing.public static SegmentPart parse(String string) throws IOException
string
- input StringIOException
- if "/" is missing.Copyright © 2014 The Apache Software Foundation