@PublicApi @NotThreadSafe public final class BlockLocation extends Object implements Serializable
Constructor and Description |
---|
BlockLocation()
Creates a new instance of
BlockLocation . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static BlockLocation |
fromThrift(BlockLocation blockLocation)
Creates a new instance of
BlockLocation from a thrift representation. |
String |
getTierAlias() |
WorkerNetAddress |
getWorkerAddress() |
long |
getWorkerId() |
int |
hashCode() |
BlockLocation |
setTierAlias(String tierAlias) |
BlockLocation |
setWorkerAddress(WorkerNetAddress workerAddress) |
BlockLocation |
setWorkerId(long workerId) |
String |
toString() |
protected BlockLocation |
toThrift() |
public BlockLocation()
BlockLocation
.public long getWorkerId()
public WorkerNetAddress getWorkerAddress()
public String getTierAlias()
public BlockLocation setWorkerId(long workerId)
workerId
- the worker id to usepublic BlockLocation setWorkerAddress(WorkerNetAddress workerAddress)
workerAddress
- the worker address to usepublic BlockLocation setTierAlias(String tierAlias)
tierAlias
- the tier alias to useprotected BlockLocation toThrift()
public static BlockLocation fromThrift(BlockLocation blockLocation)
BlockLocation
from a thrift representation.blockLocation
- the thrift representation of a block locationCopyright © 2023. All Rights Reserved.