org.terrier.structures.postings
Class FieldORIterablePosting
java.lang.Object
org.terrier.structures.postings.IterablePostingImpl
org.terrier.structures.postings.ORIterablePosting
org.terrier.structures.postings.FieldORIterablePosting
- All Implemented Interfaces:
- java.io.Closeable, FieldPosting, IterablePosting, Posting
- Direct Known Subclasses:
- BlockFieldORIterablePosting
public class FieldORIterablePosting
- extends ORIterablePosting
- implements FieldPosting
ORIterablePosting implementation that implements FieldPosting
- Since:
- 3.5
- Author:
- Craig Macdonald
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldORIterablePosting
public FieldORIterablePosting(IterablePosting[] ips)
throws java.io.IOException
- Constructs an instance of FieldORIterablePosting.
- Parameters:
ips
-
- Throws:
java.io.IOException
getFieldFrequencies
public int[] getFieldFrequencies()
- Description copied from interface:
FieldPosting
- Returns the frequencies of the term in each field of the document
- Specified by:
getFieldFrequencies
in interface FieldPosting
getFieldLengths
public int[] getFieldLengths()
- Description copied from interface:
FieldPosting
- Returns the lengths of the each fields in the current document
- Specified by:
getFieldLengths
in interface FieldPosting
addPosting
protected void addPosting(Posting _p)
- Overrides:
addPosting
in class ORIterablePosting
firstPosting
protected void firstPosting(Posting _p)
- Overrides:
firstPosting
in class ORIterablePosting
asWritablePosting
public WritablePosting asWritablePosting()
- Description copied from class:
ORIterablePosting
- Copies this posting to one free of an iterator. Kind of like a clone.
- Specified by:
asWritablePosting
in interface Posting
- Overrides:
asWritablePosting
in class ORIterablePosting
- Returns:
- an identical posting, but which can be maniulated free of this iterator
Terrier 3.5. Copyright © 2004-2011 University of Glasgow