gate.creole.annic.apache.lucene.index
Class SegmentInfos

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector
              extended by gate.creole.annic.apache.lucene.index.SegmentInfos
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess

final class SegmentInfos
extends Vector


Field Summary
 int counter
           
static int FORMAT
          The file format version, a negative number.
private  long version
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SegmentInfos()
           
 
Method Summary
 long getVersion()
          version number when this SegmentInfos was generated.
 SegmentInfo info(int i)
           
 void read(Directory directory)
           
static long readCurrentVersion(Directory directory)
          Current version number from segments file.
 void write(Directory directory)
           
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

FORMAT

public static final int FORMAT
The file format version, a negative number.

See Also:
Constant Field Values

counter

public int counter

version

private long version
Constructor Detail

SegmentInfos

SegmentInfos()
Method Detail

info

public final SegmentInfo info(int i)

read

public final void read(Directory directory)
                throws IOException
Throws:
IOException

write

public final void write(Directory directory)
                 throws IOException
Throws:
IOException

getVersion

public long getVersion()
version number when this SegmentInfos was generated.


readCurrentVersion

public static long readCurrentVersion(Directory directory)
                               throws IOException
Current version number from segments file.

Throws:
IOException