public class RegularBinaryDocument extends BinaryDocument
BinaryDocument
representing a binary fragment in MarkLogic accessed via Direct
Access.ForestInputFormat
LOG
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) |
createContent
createDocument,
getCollections,
getContentAsByteStream,
getFragmentOrdinal,
getMetadata,
getQuality,
isStreamable,
setContentOptions,
setQuality
public RegularBinaryDocument()
public RegularBinaryDocument(ExpandedTree tree)
public void readFields(DataInput in) throws IOException
readFields
in interface MarkLogicDocument
readFields
in
interface org.apache.hadoop.io.Writable
readFields
in class ForestDocument
IOException
public void write(DataOutput out) throws IOException
write
in interface MarkLogicDocument
write
in
interface org.apache.hadoop.io.Writable
write
in class ForestDocument
IOException
public byte[] getContentAsByteArray()
MarkLogicDocument
public MarkLogicNode getContentAsMarkLogicNode()
MarkLogicDocument
public org.apache.hadoop.io.Text getContentAsText()
MarkLogicDocument
public ContentType getContentType()
MarkLogicDocument
public String getContentAsString() throws UnsupportedEncodingException
MarkLogicDocument
UnsupportedEncodingException
public long getContentSize()
MarkLogicDocument
getContentSize
in interface MarkLogicDocument
getContentSize
in class ForestDocument
Copyright © 2020 MarkLogic
Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com