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
IOException
public EndpointByteMap getEndpointByteMap(Set<String> noDrillbitHosts, FileWork work) throws IOException
work
- the FileWork to calculate endpoint bytes forIOException
Copyright © 1970 The Apache Software Foundation. All rights reserved.