Interface MarkLogicDocument

    • Method Detail

      • getContentType

        ContentType getContentType()
        Return content type of the document.
        Returns:
        content type of the document.
      • getContentAsText

        org.apache.hadoop.io.Text getContentAsText()
        Return content as Text.
        Returns:
        content.
        Throws:
        UnsupportedOperationException - for binary documents.
      • getContentAsByteArray

        byte[] getContentAsByteArray()
        Return content as byte array.
        Returns:
        content.
      • getContentAsByteStream

        InputStream getContentAsByteStream()
        Return content as byte stream.
        Returns:
        content.
      • getContentSize

        long getContentSize()
        Return byte length of the content.
        Returns:
        byte length of the content.
      • isStreamable

        boolean isStreamable()
        Whether the content can be streamed.
        Returns:
        true for LargeBinaryDocument, false for the rest.
      • readFields

        void readFields​(DataInput in)
                 throws IOException
        Specified by:
        readFields in interface org.apache.hadoop.io.Writable
        Throws:
        IOException