org.terrier.structures
Interface Pointer

All Known Subinterfaces:
BitIndexPointer
All Known Implementing Classes:
BasicDocumentIndexEntry, BasicLexiconEntry, BasicTermStatsLexiconEntry, BlockFieldLexiconEntry, BlockLexiconEntry, DocumentIndexEntry, FieldDocumentIndexEntry, FieldLexiconEntry, LexiconEntry, SimpleBitIndexPointer, SimpleDocumentIndexEntry

public interface Pointer

A base interface for all pointers

Since:
3.0

Method Summary
 int getNumberOfEntries()
          Returns number of "things" that this pointer refers to
 java.lang.String pointerToString()
          Returns a textual representation of the pointer alone
 void setNumberOfEntries(int n)
          Set the number of "things that the pointer refers to
 void setPointer(Pointer p)
          Sets the pointer within this object to that represented by the specified pointer
 

Method Detail

getNumberOfEntries

int getNumberOfEntries()
Returns number of "things" that this pointer refers to


setNumberOfEntries

void setNumberOfEntries(int n)
Set the number of "things that the pointer refers to


pointerToString

java.lang.String pointerToString()
Returns a textual representation of the pointer alone


setPointer

void setPointer(Pointer p)
Sets the pointer within this object to that represented by the specified pointer

Parameters:
p - other pointer to update the pointer in this object


Terrier 3.5. Copyright © 2004-2011 University of Glasgow