org.galagosearch.core.index
Class StructuredIndex

java.lang.Object
  extended by org.galagosearch.core.index.StructuredIndex

public class StructuredIndex
extends java.lang.Object

Author:
trevor

Constructor Summary
StructuredIndex(java.lang.String filename)
           
 
Method Summary
 void close()
           
 boolean containsPart(java.lang.String partName)
          Tests to see if a named index part exists.
 long getCollectionLength()
           
 long getDocumentCount()
           
 java.lang.String getDocumentName(int document)
           
 StructuredIterator getIterator(Node node)
           
 int getLength(int document)
           
 NodeType getNodeType(Node node)
           
static StructuredIndexPartReader openIndexPart(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructuredIndex

public StructuredIndex(java.lang.String filename)
                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

openIndexPart

public static StructuredIndexPartReader openIndexPart(java.lang.String path)
                                               throws java.io.IOException
Throws:
java.io.IOException

containsPart

public boolean containsPart(java.lang.String partName)
Tests to see if a named index part exists.

Parameters:
partName - The name of the index part to check.
Returns:
true, if this index has a part called partName, or false otherwise.

getIterator

public StructuredIterator getIterator(Node node)
                               throws java.io.IOException
Throws:
java.io.IOException

getNodeType

public NodeType getNodeType(Node node)
                     throws java.io.IOException
Throws:
java.io.IOException

getCollectionLength

public long getCollectionLength()

getDocumentCount

public long getDocumentCount()

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

getLength

public int getLength(int document)

getDocumentName

public java.lang.String getDocumentName(int document)


Copyright © 2009. All Rights Reserved.