public class ApiHdfsSnapshot extends Object
Constructor and Description |
---|
ApiHdfsSnapshot() |
ApiHdfsSnapshot(String snapshottedPath,
String snapshotName,
String snapshotPath) |
ApiHdfsSnapshot(String snapshottedPath,
String snapshotName,
String snapshotPath,
Date creationTime) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Date |
getCreationTime()
Snapshot creation time.
|
String |
getPath()
Snapshotted path.
|
String |
getSnapshotName()
Snapshot name.
|
String |
getSnapshotPath()
Read-only.
|
int |
hashCode() |
void |
setCreationTime(Date creationTime) |
void |
setPath(String path) |
void |
setSnapshotName(String snapshotName) |
void |
setSnapshotPath(String snapshotPath) |
String |
toString() |
public ApiHdfsSnapshot()
public ApiHdfsSnapshot(String snapshottedPath, String snapshotName, String snapshotPath)
public String getPath()
public void setPath(String path)
public String getSnapshotName()
public void setSnapshotName(String snapshotName)
public String getSnapshotPath()
For example, if a snapshot "s1" is present at "/a/.snapshot/s1, then the snapshot path corresponding to "s1" for path "/a/b" will be "/a/.snapshot/s1/b".
public void setSnapshotPath(String snapshotPath)
public Date getCreationTime()
public void setCreationTime(Date creationTime)
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.