Toggle navigation
Home
java.util.List<alluxio.thrift.FileBlockInfo> to alluxio.thrift.RenameTResponse
No. of Instances - 1
No. of Commits - 1
No. of Projects - {'alluxio'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Update argument list (Method invocation)
format
to
format
Rename Variable
getFileBlockInfoList
to
rename
getFileBlockInfoList
to
rename
Other
new AlluxioURI(path)
to
srcPath
Add or Remove Method invocation
ThriftUtils.toThrift(fileBlockInfo)
to
options
options
to
RenameOptions.defaults()
String.format("GetFileBlockInfoList: path=%s",path)
to
String.format("Rename: srcPath=%s, dstPath=%s, options=%s",srcPath,dstPath,options)
Cascading Type Change (Different)
RpcCallable<List<FileBlockInfo>>
to
RpcCallableThrowsIOException<RenameTResponse>
ArrayList<>
to
AlluxioURI
alluxio.wire.FileBlockInfo
to
IOException
Cascading Type Change (Similar)
List<FileBlockInfo>
to
RenameTResponse
Update Anonymous class
{ @Override public List<FileBlockInfo> call() throws AlluxioException { List<FileBlockInfo> result=new ArrayList<>(); for ( alluxio.wire.FileBlockInfo fileBlockInfo : mFileSystemMaster.getFileBlockInfoList(new AlluxioURI(path))) { result.add(ThriftUtils.toThrift(fileBlockInfo)); } return result; } @Override public String toString(){ return String.format("GetFileBlockInfoList: path=%s",path); } }
to
{ @Override public RenameTResponse call() throws AlluxioException, IOException { mFileSystemMaster.rename(new AlluxioURI(srcPath),new AlluxioURI(dstPath),RenameOptions.defaults()); return new RenameTResponse(); } @Override public String toString(){ return String.format("Rename: srcPath=%s, dstPath=%s, options=%s",srcPath,dstPath,options); } }