public class InLineFSUtils extends Object
| Constructor and Description |
|---|
InLineFSUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.fs.Path |
getInlineFilePath(org.apache.hadoop.fs.Path outerPath,
String origScheme,
long inLineStartOffset,
long inLineLength)
Fetch inline file path from outer path.
|
static org.apache.hadoop.fs.Path |
getOuterfilePathFromInlinePath(org.apache.hadoop.fs.Path inlinePath)
Inline file format
"inlinefs://
|
static int |
length(org.apache.hadoop.fs.Path inlinePath)
Eg input : "inlinefs:/file1/s3a/?start_offset=20&length=40".
|
static int |
startOffset(org.apache.hadoop.fs.Path inlinePath)
Eg input : "inlinefs://file1/s3a/?start_offset=20&length=40".
|
public static org.apache.hadoop.fs.Path getInlineFilePath(org.apache.hadoop.fs.Path outerPath,
String origScheme,
long inLineStartOffset,
long inLineLength)
outerPath - origScheme - inLineStartOffset - inLineLength - public static org.apache.hadoop.fs.Path getOuterfilePathFromInlinePath(org.apache.hadoop.fs.Path inlinePath)
Eg input : "inlinefs://file1/sa3/?start_offset=20&length=40". Output : "sa3://file1"
inlinePath - inline file system pathpublic static int startOffset(org.apache.hadoop.fs.Path inlinePath)
inlinePath - public static int length(org.apache.hadoop.fs.Path inlinePath)
inlinePath - Copyright © 2021 The Apache Software Foundation. All rights reserved.