public class BlockMapBuilder extends Object
| Constructor and Description |
|---|
BlockMapBuilder(org.apache.hadoop.fs.FileSystem fs,
Collection<CoordinationProtos.DrillbitEndpoint> endpoints) |
| Modifier and Type | Method and Description |
|---|---|
List<CompleteFileWork> |
generateFileWork(List<org.apache.hadoop.fs.FileStatus> files,
boolean blockify) |
EndpointByteMap |
getEndpointByteMap(Set<String> noDrillbitHosts,
FileWork work)
For a given FileWork, calculate how many bytes are available on each on drillbit endpoint
|
public BlockMapBuilder(org.apache.hadoop.fs.FileSystem fs,
Collection<CoordinationProtos.DrillbitEndpoint> endpoints)
public List<CompleteFileWork> generateFileWork(List<org.apache.hadoop.fs.FileStatus> files, boolean blockify) throws IOException
IOExceptionpublic EndpointByteMap getEndpointByteMap(Set<String> noDrillbitHosts, FileWork work) throws IOException
work - the FileWork to calculate endpoint bytes forIOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.