public class PathSplitter
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
DEFAULT_SPLITTER_KEY |
The default splitter key in splitterMap
|
Constructor | Description |
---|---|
PathSplitter() |
Create a new PathSplitter with set
splitterMap.
|
Modifier and Type | Method | Description |
---|---|---|
java.nio.file.Path |
getDocumentUriAfter() |
Get documentUriAfter, which is the path of the
directory to process
|
java.util.Map<java.lang.String,Splitter<?
extends AbstractWriteHandle>> |
getSplitters() |
Get the splitterMap of the PathSplitter
|
java.util.stream.Stream<DocumentWriteOperation> |
splitDocumentWriteOperations(java.util.stream.Stream<java.nio.file.Path> paths) |
Take a stream of Paths and convert the content
into a stream of DocumentWriteOperation
|
java.util.stream.Stream<? extends
AbstractWriteHandle> |
splitHandles(java.util.stream.Stream<java.nio.file.Path> paths) |
Take a stream of Paths and convert the content
into a stream of AbstractWriteHandle
|
PathSplitter |
withDocumentUriAfter(java.nio.file.Path path) |
set documentUriAfter to the PathSplitter
|
public static final java.lang.String DEFAULT_SPLITTER_KEY
public PathSplitter()
public java.util.Map<java.lang.String,Splitter<? extends AbstractWriteHandle>> getSplitters()
public java.nio.file.Path getDocumentUriAfter()
public PathSplitter withDocumentUriAfter(java.nio.file.Path path) throws java.io.IOException
path
- the path of the directory which contains
documentsjava.io.IOException
- if the path is not
accessiblepublic java.util.stream.Stream<? extends AbstractWriteHandle> splitHandles(java.util.stream.Stream<java.nio.file.Path> paths) throws java.lang.Exception
paths
- a stream of Paths of target filesjava.lang.Exception
- if the path is not
accessiblepublic java.util.stream.Stream<DocumentWriteOperation> splitDocumentWriteOperations(java.util.stream.Stream<java.nio.file.Path> paths) throws java.lang.Exception
paths
- a stream of Paths of target filesjava.lang.Exception
- if the path is not
accessibleCopyright © 2022 MarkLogic Corporation