public alluxio.thrift.FileInfo toThrift() {
List<alluxio.thrift.FileBlockInfo> fileBlockInfos = new ArrayList<>();
for (FileBlockInfo fileBlockInfo : mFileBlockInfos) {
fileBlockInfos.add(fileBlockInfo.toThrift());
}
alluxio.thrift.FileInfo info =
new alluxio.thrift.FileInfo(mFileId, mName, mPath, mUfsPath, mLength, mBlockSizeBytes,
mCreationTimeMs, mCompleted, mFolder, mPinned, mCacheable, mPersisted, mBlockIds,
mInMemoryPercentage, mLastModificationTimeMs, mTtl, mOwner, mGroup, mMode,
mPersistenceState, mMountPoint, fileBlockInfos, TtlAction.toThrift(mTtlAction), mMountId,
mInAlluxioPercentage, mUfsFingerprint);
return info;
}