org.exist.storage
Class OccurrenceList

java.lang.Object
  extended by org.exist.storage.OccurrenceList

public class OccurrenceList
extends Object

Simple list of node ids and their offsets within the text sequence. Mainly used by NativeTextEngine during indexing.


Constructor Summary
OccurrenceList()
           
 
Method Summary
 void add(NodeId id, int offset)
           
 boolean contains(NodeId id)
           
 NodeId getNode(int pos)
           
 int getOccurrences(int start)
           
 int getOffset(int pos)
           
 int getSize()
           
 int getTermCount()
           
 void sort()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OccurrenceList

public OccurrenceList()
Method Detail

add

public void add(NodeId id,
                int offset)

getNode

public NodeId getNode(int pos)

getOffset

public int getOffset(int pos)

getSize

public int getSize()

getTermCount

public int getTermCount()

getOccurrences

public int getOccurrences(int start)

contains

public boolean contains(NodeId id)

sort

public void sort()


Copyright (C) Wolfgang Meier. All rights reserved.