Xindice API
version 1.2m1

org.apache.xindice.core.query.ftsearch
Class NodeReader

java.lang.Object
  extended byorg.apache.lucene.index.IndexReader
      extended byorg.apache.xindice.core.query.ftsearch.NodeReader

public class NodeReader
extends org.apache.lucene.index.IndexReader

Implementation of IndexReader that works with set of DOM nodes in memory. Set of nodes is constant - no modifications of it are allowed.

Version:
$Revision: 584476 $, $Date: 2007-10-13 22:41:50 -0400 (Sat, 13 Oct 2007) $

Nested Class Summary
 
Nested classes inherited from class org.apache.lucene.index.IndexReader
org.apache.lucene.index.IndexReader.FieldOption
 
Constructor Summary
protected NodeReader(org.w3c.dom.NodeList list, org.apache.lucene.analysis.Analyzer analyzer)
           
 
Method Summary
 int docFreq(org.apache.lucene.index.Term t)
           
protected  void doClose()
          Not applicable
protected  void doCommit()
          Not applicable
 org.apache.lucene.document.Document document(int n, org.apache.lucene.document.FieldSelector fieldSelector)
          Method is not supported.
protected  void doDelete(int docNum)
          Deletion is not supported.
protected  void doSetNorm(int doc, String field, byte value)
           
protected  void doUndeleteAll()
          Deletion is not supported.
 Collection getFieldNames(org.apache.lucene.index.IndexReader.FieldOption fldOption)
          Field names are not supported.
 org.apache.lucene.index.TermFreqVector getTermFreqVector(int docNumber, String field)
           
 org.apache.lucene.index.TermFreqVector[] getTermFreqVectors(int docNumber)
           
 boolean hasDeletions()
          Deletion is not supported.
 boolean isDeleted(int n)
          Deletion is not supported.
 int maxDoc()
           
 byte[] norms(String field)
           
 void norms(String field, byte[] bytes, int offset)
           
 int numDocs()
           
 org.apache.lucene.index.TermDocs termDocs()
           
 org.apache.lucene.index.TermPositions termPositions()
           
 org.apache.lucene.index.TermEnum terms()
           
 org.apache.lucene.index.TermEnum terms(org.apache.lucene.index.Term t)
           
 
Methods inherited from class org.apache.lucene.index.IndexReader
close, commit, deleteDocument, deleteDocuments, directory, document, ensureOpen, finalize, getCurrentVersion, getCurrentVersion, getCurrentVersion, getVersion, hasNorms, indexExists, indexExists, indexExists, isCurrent, isLocked, isLocked, isOptimized, lastModified, lastModified, lastModified, main, open, open, open, open, setNorm, setNorm, termDocs, termPositions, undeleteAll, unlock
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeReader

protected NodeReader(org.w3c.dom.NodeList list,
                     org.apache.lucene.analysis.Analyzer analyzer)
Method Detail

getTermFreqVectors

public org.apache.lucene.index.TermFreqVector[] getTermFreqVectors(int docNumber)

getTermFreqVector

public org.apache.lucene.index.TermFreqVector getTermFreqVector(int docNumber,
                                                                String field)

numDocs

public int numDocs()

maxDoc

public int maxDoc()

document

public org.apache.lucene.document.Document document(int n,
                                                    org.apache.lucene.document.FieldSelector fieldSelector)
Method is not supported.


isDeleted

public boolean isDeleted(int n)
Deletion is not supported.


hasDeletions

public boolean hasDeletions()
Deletion is not supported.


norms

public byte[] norms(String field)
             throws IOException
Throws:
IOException

norms

public void norms(String field,
                  byte[] bytes,
                  int offset)

doSetNorm

protected void doSetNorm(int doc,
                         String field,
                         byte value)

terms

public org.apache.lucene.index.TermEnum terms()

terms

public org.apache.lucene.index.TermEnum terms(org.apache.lucene.index.Term t)

docFreq

public int docFreq(org.apache.lucene.index.Term t)

termDocs

public org.apache.lucene.index.TermDocs termDocs()

termPositions

public org.apache.lucene.index.TermPositions termPositions()

doDelete

protected void doDelete(int docNum)
Deletion is not supported.


doUndeleteAll

protected void doUndeleteAll()
Deletion is not supported.


doCommit

protected void doCommit()
Not applicable


doClose

protected void doClose()
Not applicable


getFieldNames

public Collection getFieldNames(org.apache.lucene.index.IndexReader.FieldOption fldOption)
Field names are not supported.


Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.