@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BlockLocation)) { return false; } BlockLocation that = (BlockLocation) o; return mWorkerId == that.mWorkerId && mWorkerAddress.equals(that.mWorkerAddress) && mTierAlias.equals(that.mTierAlias); }
/** * @param workerInfoList the list of worker info * @param address the address to look for * @return the worker info in the list that matches the host name, null if not found */ private BlockWorkerInfo findBlockWorkerInfo(Iterable<BlockWorkerInfo> workerInfoList, WorkerNetAddress address) { for (BlockWorkerInfo info : workerInfoList) { if (info.getNetAddress().equals(address)) { return info; } } return null; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BlockLocation)) { return false; } BlockLocation that = (BlockLocation) o; return mWorkerId == that.mWorkerId && mWorkerAddress.equals(that.mWorkerAddress) && mTierAlias.equals(that.mTierAlias); }
/** * @param workerInfoList the list of worker info * @param address the address to look for * @return the worker info in the list that matches the host name, null if not found */ private BlockWorkerInfo findBlockWorkerInfo(List<BlockWorkerInfo> workerInfoList, WorkerNetAddress address) { for (BlockWorkerInfo info : workerInfoList) { if (info.getNetAddress().equals(address)) { return info; } } return null; } }
((RemoteBlockInStream) mCurrentBlockInStream).getWorkerNetAddress(); if (readAddress.equals(address)) { mShouldCacheCurrentBlock = false; } else { BlockInfo blockInfo = mContext.getAluxioBlockStore().getInfo(currentBlockId); for (BlockLocation location : blockInfo.getLocations()) { if (address.equals(location.getWorkerAddress())) { mShouldCacheCurrentBlock = false;