public class ObjectLocation extends Object
| Constructor and Description |
|---|
ObjectLocation() |
ObjectLocation(String scheme,
String repository,
String ref) |
ObjectLocation(String scheme,
String repository,
String ref,
String path) |
| Modifier and Type | Method and Description |
|---|---|
ObjectLocation |
clone() |
boolean |
equals(Object obj) |
static String |
formatPath(String scheme,
String repository,
String ref) |
static String |
formatPath(String scheme,
String repository,
String ref,
String path) |
ObjectLocation |
getParent() |
String |
getPath() |
String |
getRef() |
String |
getRepository() |
String |
getScheme() |
boolean |
isValidPath() |
boolean |
onSameBranch(ObjectLocation otherObjLoc)
Checks if an ObjectLocation is on the same branch.
|
static ObjectLocation |
pathToObjectLocation(org.apache.hadoop.fs.Path path)
Returns Location with repository, ref and path used by lakeFS based on filesystem path.
|
static ObjectLocation |
pathToObjectLocation(org.apache.hadoop.fs.Path workingDirectory,
org.apache.hadoop.fs.Path path)
Returns Location with repository, ref and path used by lakeFS based on filesystem path.
|
void |
setPath(String path) |
void |
setRef(String ref) |
void |
setRepository(String repository) |
void |
setScheme(String scheme) |
ObjectLocation |
toDirectory() |
org.apache.hadoop.fs.Path |
toFSPath() |
String |
toRefString() |
String |
toString() |
@Nonnull public static ObjectLocation pathToObjectLocation(org.apache.hadoop.fs.Path workingDirectory, org.apache.hadoop.fs.Path path)
workingDirectory - used if path is local.path - to extract information from.@Nonnull public static ObjectLocation pathToObjectLocation(org.apache.hadoop.fs.Path path)
path - to extract information from.public static String formatPath(String scheme, String repository, String ref, String path)
public String getScheme()
public void setScheme(String scheme)
public ObjectLocation clone()
public ObjectLocation getParent()
public String getRepository()
public void setRepository(String repository)
public String getRef()
public void setRef(String ref)
public String getPath()
public void setPath(String path)
public boolean isValidPath()
public boolean onSameBranch(ObjectLocation otherObjLoc)
otherObjLoc - the objectLocation to comparepublic String toRefString()
public ObjectLocation toDirectory()
public org.apache.hadoop.fs.Path toFSPath()
Copyright © 2023. All rights reserved.