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