public abstract class ForestDocument extends Object implements MarkLogicDocument
MarkLogicDocument
retrieved from a MarkLogic forest through
Direct Access.ForestInputFormat
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
ForestDocument() |
Modifier and Type | Method and Description |
---|---|
static ForestDocument |
createDocument(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path forestDir,
ExpandedTree tree,
String uri) |
String[] |
getCollections() |
InputStream |
getContentAsByteStream()
Return content as byte stream.
|
long |
getContentSize()
Return byte length of the content.
|
long |
getFragmentOrdinal() |
boolean |
isStreamable()
Whether the content can be streamed.
|
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentAsByteArray, getContentAsMarkLogicNode, getContentAsString, getContentAsText, getContentType
public static ForestDocument createDocument(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path forestDir, ExpandedTree tree, String uri)
public long getFragmentOrdinal()
public String[] getCollections()
public void readFields(DataInput in) throws IOException
readFields
in interface MarkLogicDocument
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface MarkLogicDocument
write
in interface org.apache.hadoop.io.Writable
IOException
public InputStream getContentAsByteStream()
MarkLogicDocument
getContentAsByteStream
in interface MarkLogicDocument
public long getContentSize()
MarkLogicDocument
getContentSize
in interface MarkLogicDocument
public boolean isStreamable()
MarkLogicDocument
isStreamable
in interface MarkLogicDocument
> Copyright © 2017 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com