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
IOException
public abstract void put(String key, String value) throws Exception
key
- value
- IOException
Exception
public abstract void build() throws IOException
IOException
public void configFields(org.apache.hadoop.conf.Configuration conf, String[] fields) throws IllegalArgumentException, IOException
fields
- IOException
IllegalArgumentException
public String getDoc()
Copyright © 2021 MarkLogic Corporation
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com