Class IcebergBlockMapBuilder
java.lang.Object
org.apache.drill.exec.store.iceberg.IcebergBlockMapBuilder
-
Constructor Summary
ConstructorDescriptionIcebergBlockMapBuilder
(org.apache.hadoop.fs.FileSystem fs, Collection<CoordinationProtos.DrillbitEndpoint> endpoints) -
Method Summary
Modifier and TypeMethodDescriptiongenerateFileWork
(Iterable<org.apache.iceberg.CombinedScanTask> combinedScanTasks) getEndpointByteMap
(org.apache.iceberg.CombinedScanTask scanTask) For a given FileWork, calculate how many bytes are available on each on drillbit endpoint
-
Constructor Details
-
IcebergBlockMapBuilder
public IcebergBlockMapBuilder(org.apache.hadoop.fs.FileSystem fs, Collection<CoordinationProtos.DrillbitEndpoint> endpoints)
-
-
Method Details
-
generateFileWork
public List<IcebergCompleteWork> generateFileWork(Iterable<org.apache.iceberg.CombinedScanTask> combinedScanTasks) throws IOException - Throws:
IOException
-
getEndpointByteMap
public EndpointByteMap getEndpointByteMap(org.apache.iceberg.CombinedScanTask scanTask) throws IOException For a given FileWork, calculate how many bytes are available on each on drillbit endpoint- Parameters:
scanTask
- the CombinedScanTask to calculate endpoint bytes for- Throws:
IOException
-