public static class OutputStreamInserter.DocBuilder
extends java.lang.Object
implements java.lang.Runnable
OutputStream
. This is a
brain-dead example that simply generates dummy content. A real implementation might be
fetching rows from an SQL database or some other transient source. You should only use this
approach if you don't have a better option. If the data can be written to a temp file or
provided as a standard InputStream
then one of the provided implementations
in ContentFactory
should be used. Note also that inserting content
this way is not eligible for automatic error recovery and you can get in trouble if you don't
manage threads properly.Constructor and Description |
---|
DocBuilder(java.io.OutputStream out,
int lines)
Initialize this instance.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Entry point when the new
Thread starts. |
Copyright © 2022 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com