use of alluxio.grpc.RenamePOptions in project alluxio by Alluxio.
the class RenameContext method mergeFrom.
/**
* Merges and embeds the given {@link RenamePOptions} with the corresponding master options.
*
* @param optionsBuilder Builder for proto {@link RenamePOptions} to merge with defaults
* @return the instance of {@link RenameContext} with default values for master
*/
public static RenameContext mergeFrom(RenamePOptions.Builder optionsBuilder) {
RenamePOptions masterOptions = FileSystemOptions.renameDefaults(ServerConfiguration.global());
RenamePOptions.Builder mergedOptionsBuilder = masterOptions.toBuilder().mergeFrom(optionsBuilder.build());
return create(mergedOptionsBuilder);
}
Aggregations