コード例 #1
0
 private UiFileInfo(ClientFileInfo fileInfo) {
   ID = fileInfo.getId();
   NAME = fileInfo.getName();
   ABSOLUATE_PATH = fileInfo.getPath();
   CHECKPOINT_PATH = fileInfo.getCheckpointPath();
   SIZE = fileInfo.getSizeBytes();
   CREATION_TIME_MS = fileInfo.getCreationTimeMs();
   IN_MEMORY = fileInfo.isInMemory();
   IS_DIRECTORY = fileInfo.isFolder();
   mFileLocations = new ArrayList<String>();
 }
コード例 #2
0
ファイル: InodeFile.java プロジェクト: hao707822882/tachyon
  @Override
  public ClientFileInfo generateClientFileInfo(String path) {
    ClientFileInfo ret = new ClientFileInfo();

    ret.id = getId();
    ret.name = getName();
    ret.path = path;
    ret.ufsPath = mUfsPath;
    ret.length = mLength;
    ret.blockSizeByte = mBlockSizeByte;
    ret.creationTimeMs = getCreationTimeMs();
    ret.isComplete = isComplete();
    ret.isFolder = false;
    ret.isPinned = isPinned();
    ret.isCache = mCache;
    ret.blockIds = getBlockIds();
    ret.dependencyId = mDependencyId;
    ret.inMemoryPercentage = getInMemoryPercentage();
    ret.lastModificationTimeMs = getLastModificationTimeMs();

    return ret;
  }