public abstract class DocBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
protected StringBuilder |
sb |
| Constructor and Description |
|---|
DocBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
build()
Build the document.
|
void |
configFields(org.apache.hadoop.conf.Configuration conf,
String[] fields)
Check document header fields.
|
String |
getDoc()
Return the built doc.
|
abstract void |
init(org.apache.hadoop.conf.Configuration conf)
Init the document.
|
abstract void |
newDoc()
Start to build the document.
|
abstract void |
put(String key,
String value)
Put a new key-value pair into the document.
|
public static final org.apache.commons.logging.Log LOG
protected StringBuilder sb
public abstract void init(org.apache.hadoop.conf.Configuration conf)
conf - public abstract void newDoc()
throws IOException
IOExceptionpublic abstract void put(String key, String value) throws Exception
key - value - IOExceptionExceptionpublic abstract void build()
throws IOException
IOExceptionpublic void configFields(org.apache.hadoop.conf.Configuration conf,
String[] fields)
throws IllegalArgumentException,
IOException
fields - IOExceptionIllegalArgumentExceptionpublic String getDoc()
Copyright © 2023 MarkLogic Corporation
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com