Package org.terrier.structures.postings
Interface FieldPosting
-
- All Superinterfaces:
Posting
- All Known Implementing Classes:
ArrayOfBlockFieldIterablePosting
,ArrayOfFieldIterablePosting
,BlockFieldIterablePosting
,BlockFieldORIterablePosting
,BlockFieldPostingImpl
,FieldIterablePosting
,FieldORIterablePosting
,FieldPostingImpl
,MemoryFieldsDirectIterablePosting
,MemoryFieldsIterablePosting
public interface FieldPosting extends Posting
Interface implemented by posting objects that have field information recorded. Field information can be obtained from thegetFieldFrequencies()
method.- Since:
- 3.0
- Author:
- Craig Macdonald
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description int[]
getFieldFrequencies()
Returns the frequencies of the term in each field of the document.int[]
getFieldLengths()
Returns the lengths of the each field in the current document.void
setFieldLengths(int[] newLengths)
Deprecated.-
Methods inherited from interface org.terrier.structures.postings.Posting
asWritablePosting, getDocumentLength, getFrequency, getId, setId
-
-
-
-
Method Detail
-
getFieldFrequencies
int[] getFieldFrequencies()
Returns the frequencies of the term in each field of the document.- Returns:
- the frequencies of the term in each field of the document.
-
getFieldLengths
int[] getFieldLengths()
Returns the lengths of the each field in the current document.- Returns:
- the lengths of the each field in the current document.
-
setFieldLengths
@Deprecated void setFieldLengths(int[] newLengths)
Deprecated.
-
-