Search in sources :

Example 1 with ExistsPOptions

use of alluxio.grpc.ExistsPOptions in project alluxio by Alluxio.

the class ExistsContext method mergeFrom.

/**
 * Merges and embeds the given {@link ExistsPOptions} with the corresponding master
 * options.
 *
 * @param optionsBuilder Builder for proto {@link ExistsPOptions} to merge with defaults
 * @return the instance of {@link ExistsContext} with default values for master
 */
public static ExistsContext mergeFrom(ExistsPOptions.Builder optionsBuilder) {
    ExistsPOptions masterOptions = FileSystemOptions.existsDefaults(ServerConfiguration.global());
    ExistsPOptions.Builder mergedOptionsBuilder = masterOptions.toBuilder().mergeFrom(optionsBuilder.build());
    return create(mergedOptionsBuilder);
}
Also used : ExistsPOptions(alluxio.grpc.ExistsPOptions)

Aggregations

ExistsPOptions (alluxio.grpc.ExistsPOptions)1