Class NonIncrementalDocumentIndexEntry

  • All Implemented Interfaces:
    org.apache.hadoop.io.Writable, BitFilePosition, BitIndexPointer, Pointer

    public class NonIncrementalDocumentIndexEntry
    extends BasicDocumentIndexEntry
    This class is created to represent a DocumentIndexEntry that do not assume an incremental docids, but instead maintains the docid.
    Since:
    4.0
    Author:
    Dyaa Albakour
    • Constructor Detail

      • NonIncrementalDocumentIndexEntry

        public NonIncrementalDocumentIndexEntry()
      • NonIncrementalDocumentIndexEntry

        public NonIncrementalDocumentIndexEntry​(int docid)
      • NonIncrementalDocumentIndexEntry

        public NonIncrementalDocumentIndexEntry​(DocumentIndexEntry in,
                                                int docid)
      • NonIncrementalDocumentIndexEntry

        public NonIncrementalDocumentIndexEntry​(int length,
                                                byte fileId,
                                                long byteOffset,
                                                byte bitOffset,
                                                int numberOfTerms,
                                                int docid)
    • Method Detail

      • getDocid

        public int getDocid()
      • readFields

        public void readFields​(java.io.DataInput in)
                        throws java.io.IOException
        Description copied from class: BasicDocumentIndexEntry
        Specified by:
        readFields in interface org.apache.hadoop.io.Writable
        Overrides:
        readFields in class BasicDocumentIndexEntry
        Throws:
        java.io.IOException
      • write

        public void write​(java.io.DataOutput out)
                   throws java.io.IOException
        Description copied from class: BasicDocumentIndexEntry
        Specified by:
        write in interface org.apache.hadoop.io.Writable
        Overrides:
        write in class BasicDocumentIndexEntry
        Throws:
        java.io.IOException
      • setDocid

        public void setDocid​(int docid)