public class RegularBinaryDocument extends BinaryDocument
BinaryDocument representing a binary fragment in MarkLogic
accessed via Direct Access.ForestInputFormatLOG| Constructor and Description |
|---|
RegularBinaryDocument() |
RegularBinaryDocument(ExpandedTree tree) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContentAsByteArray()
Return content as byte array.
|
MarkLogicNode |
getContentAsMarkLogicNode()
Return content as MarkLogicNode.
|
String |
getContentAsString()
Return content as String.
|
org.apache.hadoop.io.Text |
getContentAsText()
Return content as Text.
|
long |
getContentSize()
Return byte length of the content.
|
ContentType |
getContentType()
Return content type of the document.
|
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
createContentcreateDocument, getCollections, getContentAsByteStream, getFragmentOrdinal, getMetadata, getQuality, isStreamable, setContentOptions, setQualitypublic RegularBinaryDocument()
public RegularBinaryDocument(ExpandedTree tree)
public void readFields(DataInput in) throws IOException
readFields in interface MarkLogicDocumentreadFields in interface org.apache.hadoop.io.WritablereadFields in class ForestDocumentIOExceptionpublic void write(DataOutput out) throws IOException
write in interface MarkLogicDocumentwrite in interface org.apache.hadoop.io.Writablewrite in class ForestDocumentIOExceptionpublic byte[] getContentAsByteArray()
MarkLogicDocumentpublic MarkLogicNode getContentAsMarkLogicNode()
MarkLogicDocumentpublic org.apache.hadoop.io.Text getContentAsText()
MarkLogicDocumentpublic ContentType getContentType()
MarkLogicDocumentpublic String getContentAsString() throws UnsupportedEncodingException
MarkLogicDocumentUnsupportedEncodingExceptionpublic long getContentSize()
MarkLogicDocumentgetContentSize in interface MarkLogicDocumentgetContentSize in class ForestDocumentCopyright © 2021 MarkLogic Corporation
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com