public class VolumeFSFile extends LazyLoad implements Iterable<VolumeFSFile>
| Modifier and Type | Class and Description |
|---|---|
static class |
VolumeFSFile.ItemType |
static class |
VolumeFSFile.ParamKey |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DIRECTORY_PERMISSION |
static String |
DEFAULT_GROUP |
static String |
DEFAULT_OWNER |
| Modifier and Type | Method and Description |
|---|---|
static VolumeFSFile |
create(String project,
String path,
boolean isDir,
com.aliyun.odps.rest.RestClient client)
Create new file (Only support to create directory now)
|
void |
delete(boolean recursive)
Delete file (or dir)
|
Date |
getAccessTime() |
Integer |
getBlockReplications() |
Long |
getBlockSize() |
Date |
getCreationTime() |
String |
getGroup() |
Boolean |
getIsdir() |
Long |
getLength() |
Date |
getModificationTime() |
String |
getOwner() |
String |
getPath() |
String |
getPermission() |
String |
getProject() |
Long |
getQuota() |
static VolumeFSFile |
getRoot(String project,
Odps odps)
Get a mocked root path
|
String |
getSymlink() |
String |
getVolume() |
static String |
getVolume(String path) |
Iterator<VolumeFSFile> |
iterator() |
void |
reload()
重新加载属性值
|
static VolumeFSFile |
transferVolumeToVolumeFSFile(String project,
Volume volume,
com.aliyun.odps.rest.RestClient client)
Transfer
Volume to VolumeFSFile |
VolumeFSFile |
update(Map<String,String> param) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final String DEFAULT_OWNER
public static final String DEFAULT_GROUP
public static final String DEFAULT_DIRECTORY_PERMISSION
public static VolumeFSFile getRoot(String project, Odps odps)
public void reload()
throws OdpsException
LazyLoadreload in class LazyLoadOdpsExceptionpublic static VolumeFSFile create(String project, String path, boolean isDir, com.aliyun.odps.rest.RestClient client) throws VolumeException
project - path - isDir - client - OdpsExceptionVolumeExceptionpublic void delete(boolean recursive)
throws VolumeException
recursive - OdpsExceptionVolumeExceptionpublic VolumeFSFile update(Map<String,String> param) throws VolumeException
VolumeExceptionpublic Iterator<VolumeFSFile> iterator()
iterator in interface Iterable<VolumeFSFile>public String getProject()
public String getVolume()
public String getPath()
public Boolean getIsdir()
public String getPermission()
public Integer getBlockReplications()
public Long getLength()
public Long getQuota()
public Long getBlockSize()
public String getOwner()
public String getGroup()
public Date getCreationTime()
public Date getAccessTime()
public Date getModificationTime()
public String getSymlink()
public static VolumeFSFile transferVolumeToVolumeFSFile(String project, Volume volume, com.aliyun.odps.rest.RestClient client)
Volume to VolumeFSFileproject - volume - Copyright © 2022 Alibaba Cloud Computing. All rights reserved.