public final class InputStreamSuppliers extends Object
InputStreamSupplier
's.Modifier and Type | Method and Description |
---|---|
static InputStreamSupplier |
combine(FileClient client,
List<Path> paths,
boolean ignoreNonExistant)
Creates an InputStreamSupplier that will return an input stream consisting of the streams
of each of the sources, combined together.
|
static InputStreamSupplier |
concat(FileClient client,
List<Path> paths)
Creates an InputStreamSupplier that will return an input stream consisting of the streams
of each of the paths, concatenated together.
|
static InputStreamSupplier |
concat(FileClient client,
List<Path> paths,
boolean ignoreNonExistent)
Creates an InputStreamSupplier that will return an input stream consisting of the streams
of each of the paths, concatenated together.
|
static InputStreamSupplier |
concat(List<? extends InputStreamSupplier> sources)
Creates an InputStreamSupplier that will return an input stream consisting of the streams
of each of the sources, concatenated together.
|
static InputStreamSupplier |
path(FileClient client,
Path path)
Returns an InputStreamSupplier that will open the specified path.
|
static InputStreamSupplier |
path(FileClient client,
Path path,
boolean ignoreNonExistent)
Returns an InputStreamSupplier that will open the specified path.
|
public static InputStreamSupplier concat(FileClient client, List<Path> paths)
client
- the file client that will be used to open the pathspaths
- the paths to openpublic static InputStreamSupplier concat(FileClient client, List<Path> paths, boolean ignoreNonExistent)
client
- the file client that will be used to open the pathspaths
- the paths to openignoreNonExistent
- if true, a non-existent file will be treated as an empty file. if false,
a non-existent file will result in an exception.ctx
- if non-null, provides a monitoring contextpublic static InputStreamSupplier concat(List<? extends InputStreamSupplier> sources)
sources
- the sources to concatenatepublic static InputStreamSupplier path(FileClient client, Path path)
client
- the file client that will be used to open the pathpath
- the path to openpublic static InputStreamSupplier path(FileClient client, Path path, boolean ignoreNonExistent)
client
- the file client that will be used to open the pathpath
- the path to openignoreNonExistent
- if true, a non-existent file will be treated as an empty file. if false,
a non-existent file will result in an exception.ctx
- if non-null, provides a monitoring contextpublic static InputStreamSupplier combine(FileClient client, List<Path> paths, boolean ignoreNonExistant)
FileSystem
will
be fetched in-bulk if the filesystem supports concatenation.
NOTE: Unlike concat(com.pervasive.datarush.io.FileClient, java.util.List<com.pervasive.datarush.io.Path>)
, this method does not make any guarantees as to the order in
which the sources are combined.
client
- the fileclient to use to open the filespaths
- the list of pathsignoreNonExistant
- if true, a non-existent file will be treated as an empty file. if false,
a non-existent file will result in an exception.Copyright © 2020 Actian Corporation. All rights reserved.