@PublicEvolving public interface FileEnumerator
FileEnumerator's task is to discover all files to be read and to split them into a set of
This includes possibly, path traversals, file filtering (by name or other patterns) and deciding whether to split files into multiple splits, and how to split them.
|Modifier and Type||Interface and Description|
Factory for the
|Modifier and Type||Method and Description|
Generates all file splits for the relevant files under the given paths.
Collection<FileSourceSplit> enumerateSplits(Path paths, int minDesiredSplits) throws IOException
minDesiredSplitsis an optional hint indicating how many splits would be necessary to exploit parallelism properly.
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.