uk.ac.gla.dcs.renaissance.mg4j.trec
Class TRECDocumentCollection.TRECDocumentDescriptor

java.lang.Object
  extended by uk.ac.gla.dcs.renaissance.mg4j.trec.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 Summary
 String docid
          The document ID
 int fileIndex
          A reference to the file containing this document.
 long startMarker
          The starting position of this document in the file.
 int stopMarkerDiff
          The ending position.
 
Constructor Summary
TRECDocumentCollection.TRECDocumentDescriptor(String docid, int findex, long start, int stopMarkerDiff)
           
TRECDocumentCollection.TRECDocumentDescriptor(String docid, int findex, long start, long stop)
           
 
Method Summary
 Object clone()
           
 long[] toSegments()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


stopMarkerDiff

public int stopMarkerDiff
The ending position.


docid

public String docid
The document ID

Constructor Detail

TRECDocumentCollection.TRECDocumentDescriptor

public TRECDocumentCollection.TRECDocumentDescriptor(String docid,
                                                     int findex,
                                                     long start,
                                                     int stopMarkerDiff)

TRECDocumentCollection.TRECDocumentDescriptor

public TRECDocumentCollection.TRECDocumentDescriptor(String docid,
                                                     int findex,
                                                     long start,
                                                     long stop)
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

toSegments

public final long[] toSegments()


Copyright © 2011. All Rights Reserved.