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 |
---|---|
abstract
com.marklogic.xcc.Content |
createContent(String uri,
com.marklogic.xcc.ContentCreateOptions options,
boolean copyCollections, boolean copyMetadata,
boolean copyQuality) |
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() |
Map<String,String> |
getMetadata() |
int |
getQuality() |
boolean |
isStreamable()
Whether the content can be streamed.
|
void |
readFields(DataInput in) |
protected void |
setContentOptions(com.marklogic.xcc.ContentCreateOptions options,
boolean copyCollections, boolean copyMetadata,
boolean copyQuality) |
void |
setQuality(int quality) |
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 int getQuality()
public void setQuality(int quality)
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
public abstract com.marklogic.xcc.Content createContent(String uri, com.marklogic.xcc.ContentCreateOptions options, boolean copyCollections, boolean copyMetadata, boolean copyQuality) throws IOException
IOException
protected void setContentOptions(com.marklogic.xcc.ContentCreateOptions options, boolean copyCollections, boolean copyMetadata, boolean copyQuality)
Copyright © 2020 MarkLogic
Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com