Class TRECDocumentCollection.TRECDocumentDescriptor

  • All Implemented Interfaces:
    Cloneable
    Enclosing class:
    TRECDocumentCollection

    protected static class TRECDocumentCollection.TRECDocumentDescriptor
    extends Object
    implements Cloneable
    A compact description of the location and of the internal segmentation of a TREC document inside a file.
    • Field Detail

      • fileIndex

        public int fileIndex
        A reference to the file containing this document.
      • startMarker

        public long startMarker
        The starting position of this document in the file.
      • intermediateMarkerDiff

        public int intermediateMarkerDiff
        The starting position of the content of this document in the file.
      • stopMarkerDiff

        public int stopMarkerDiff
        The ending position.
    • Constructor Detail

      • TRECDocumentDescriptor

        public TRECDocumentDescriptor​(int findex,
                                      long start,
                                      long intermediateMarker,
                                      long stop)
      • TRECDocumentDescriptor

        public TRECDocumentDescriptor​(int findex,
                                      long start,
                                      int intermediateMarkerDiff,
                                      int stopMarkerDiff)
    • Method Detail

      • toSegments

        public final long[] toSegments()