org.terrier.structures.postings
Class ArrayOfFieldIterablePosting
java.lang.Object
org.terrier.structures.postings.IterablePostingImpl
org.terrier.structures.postings.ArrayOfIdsIterablePosting
org.terrier.structures.postings.ArrayOfBasicIterablePosting
org.terrier.structures.postings.ArrayOfFieldIterablePosting
- All Implemented Interfaces:
- Closeable, FieldPosting, IterablePosting, Posting
public class ArrayOfFieldIterablePosting
- extends ArrayOfBasicIterablePosting
- implements FieldPosting
An instance of IterablePostings that works with passed arrays of ids and frequencies
for each field.
- Author:
- Craig Macdonald
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayOfFieldIterablePosting
public ArrayOfFieldIterablePosting(int[] _ids,
int[] _freqs,
int[] _lens,
int[][] _tff,
int[][] _lf)
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
setFieldLengths
public void setFieldLengths(int[] newLengths)
- Specified by:
setFieldLengths
in interface FieldPosting
Terrier 3.6. Copyright © 2004-2011 University of Glasgow