public interface Splitter<T extends AbstractWriteHandle>
Modifier and Type | Interface and Description |
---|---|
static interface |
Splitter.UriMaker
UriMaker generates URI for each split
file.
|
Modifier and Type | Method and Description |
---|---|
long |
getCount() |
java.util.stream.Stream<T> |
split(java.io.InputStream input)
Converts the incoming input stream to a stream
of AbstractWriteHandle objects.
|
java.util.stream.Stream<DocumentWriteOperation> |
splitWriteOperations(java.io.InputStream input)
Converts the incoming input stream to a stream
of DocumentWriteOperation objects.
|
java.util.stream.Stream<DocumentWriteOperation> |
splitWriteOperations(java.io.InputStream input,
java.lang.String splitFilename)
Converts the incoming input stream to a stream
of DocumentWriteOperation objects.
|
java.util.stream.Stream<T> split(java.io.InputStream input) throws java.lang.Exception
input
- is the incoming input stream.java.lang.Exception
- if the input cannot be
splitjava.util.stream.Stream<DocumentWriteOperation> splitWriteOperations(java.io.InputStream input) throws java.lang.Exception
input
- is the incoming input stream.java.lang.Exception
- if the input cannot be
splitjava.util.stream.Stream<DocumentWriteOperation> splitWriteOperations(java.io.InputStream input, java.lang.String splitFilename) throws java.lang.Exception
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.java.lang.Exception
- if the input cannot be
splitlong getCount()
Copyright © 2024 MarkLogic Corporation. All Rights Reserved.