- All Known Implementing Classes:
JacksonCSVSplitter,
JSONSplitter,
LineSplitter,
UnarySplitter,
XMLSplitter,
ZipSplitter
Splitter splits an input stream into a Java
stream of write handles. It is not thread-safe.
-
Nested Class Summary
Nested Classes
static
interface
UriMaker generates URI for each split
file.
-
Method Summary
long
Converts the incoming input stream to a stream
of AbstractWriteHandle objects.
Converts the incoming input stream to a stream
of DocumentWriteOperation objects.
Converts the incoming input stream to a stream
of DocumentWriteOperation objects.
-
Method Details
-
split
Converts the incoming input stream to a stream
of AbstractWriteHandle objects.
- Parameters:
input - is the incoming input stream.
- Returns:
- a stream of AbstractWriteHandle objects.
- Throws:
Exception - if the input cannot be
split
-
splitWriteOperations
Converts the incoming input stream to a stream
of DocumentWriteOperation objects.
- Parameters:
input - is the incoming input stream.
- Returns:
- a stream of DocumentWriteOperation objects.
- Throws:
Exception - if the input cannot be
split
-
splitWriteOperations
Converts the incoming input stream to a stream
of DocumentWriteOperation objects.
- Parameters:
input - is the incoming input stream.
splitFilename - the name and extension given to
current input file. The names of split files are generated from
it.
- Returns:
- a stream of DocumentWriteOperation objects.
- Throws:
Exception - if the input cannot be
split
-
getCount
long getCount()
- Returns:
- the number of objects in the stream.
Copyright (c) 2010-2025 Progress
Software Corporation and/or its subsidiaries or affiliates. All
Rights Reserved.