@InterfaceAudience.Public @InterfaceStability.Stable public abstract class ReplicaAccessorBuilder extends Object
Constructor and Description |
---|
ReplicaAccessorBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract ReplicaAccessor |
build()
Build a new ReplicaAccessor.
|
abstract ReplicaAccessorBuilder |
setAllowShortCircuitReads(boolean allowShortCircuit)
Set whether short-circuit is enabled.
|
abstract ReplicaAccessorBuilder |
setBlock(long blockId,
String blockPoolId)
Set the block ID and block pool ID which are being opened.
|
abstract ReplicaAccessorBuilder |
setBlockAccessToken(byte[] token)
Set the block access token to use.
|
abstract ReplicaAccessorBuilder |
setClientName(String clientName)
Set the name of the HDFS client.
|
abstract ReplicaAccessorBuilder |
setConfiguration(Configuration conf)
Set the configuration to use.
|
abstract ReplicaAccessorBuilder |
setFileName(String fileName)
Set the file name which is being opened.
|
abstract ReplicaAccessorBuilder |
setVerifyChecksum(boolean verifyChecksum)
Set whether checksums must be verified.
|
abstract ReplicaAccessorBuilder |
setVisibleLength(long visibleLength)
Set the length of the replica which is visible to this client.
|
public ReplicaAccessorBuilder()
public abstract ReplicaAccessorBuilder setFileName(String fileName)
public abstract ReplicaAccessorBuilder setBlock(long blockId, String blockPoolId)
public abstract ReplicaAccessorBuilder setVerifyChecksum(boolean verifyChecksum)
public abstract ReplicaAccessorBuilder setClientName(String clientName)
public abstract ReplicaAccessorBuilder setAllowShortCircuitReads(boolean allowShortCircuit)
public abstract ReplicaAccessorBuilder setVisibleLength(long visibleLength)
public abstract ReplicaAccessorBuilder setConfiguration(Configuration conf)
public abstract ReplicaAccessorBuilder setBlockAccessToken(byte[] token)
public abstract ReplicaAccessor build()
Copyright © 2015 Apache Software Foundation. All rights reserved.