@PublicEvolving
public interface FileSplitAssigner
FileSplitAssigner is responsible for deciding what split should be processed next by
which node. It determines split processing order and locality.| Modifier and Type | Interface and Description |
|---|---|
static interface |
FileSplitAssigner.Provider
Factory for the
FileSplitAssigner, to allow the FileSplitAssigner to be
eagerly initialized and to not be serializable. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSplits(Collection<FileSourceSplit> splits)
Adds a set of splits to this assigner.
|
Optional<FileSourceSplit> |
getNext(String hostname)
Gets the next split.
|
Collection<FileSourceSplit> |
remainingSplits()
Gets the remaining splits that this assigner has pending.
|
Optional<FileSourceSplit> getNext(@Nullable String hostname)
When this method returns an empty Optional, then the set of splits is assumed to
be done and the source will finish once the readers finished their current splits.
void addSplits(Collection<FileSourceSplit> splits)
Collection<FileSourceSplit> remainingSplits()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.