org.egothor.store
Class IListMetadata

java.lang.Object
  extended by org.egothor.store.IListMetadata
All Implemented Interfaces:
IListMetadata
Direct Known Subclasses:
IListMetadataRead, IListMetadataWrite

public class IListMetadata
extends java.lang.Object
implements IListMetadata

The IListMetadata class defines the core metadata of the inverted list, its length. The length of the list will be needed for many calculations, for example, calculation of inverted document frequency. Other properties are not important for core operations so they are implemented in sub-classes.

Author:
Leo Galambos

Field Summary
 java.lang.String term
          Metadata is related to this term, however this String is never counted as a part of metadata.
 
Constructor Summary
protected IListMetadata()
           
protected IListMetadata(java.lang.String term, long offset, long list_len)
           
 
Method Summary
 long getLength()
          Return the length of the list.
 boolean isBitmap()
           
 boolean isSeparated()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

term

public java.lang.String term
Metadata is related to this term, however this String is never counted as a part of metadata.

Constructor Detail

IListMetadata

protected IListMetadata()

IListMetadata

protected IListMetadata(java.lang.String term,
                        long offset,
                        long list_len)
Method Detail

isSeparated

public boolean isSeparated()

isBitmap

public boolean isBitmap()

getLength

public long getLength()
Return the length of the list. The length counts all list items, both removed and active documents.

Specified by:
getLength in interface IListMetadata
Returns:
the length