org.apache.xindice.core.query.ftsearch
Class NodeTermDocs
java.lang.Object
org.apache.xindice.core.query.ftsearch.NodeTermDocs
- All Implemented Interfaces:
- org.apache.lucene.index.TermDocs
- Direct Known Subclasses:
- NodeTermPositions
- public class NodeTermDocs
- extends Object
- implements org.apache.lucene.index.TermDocs
TermDocs for searching over DOM nodes in memory
- Version:
- $Revision: 584476 $, $Date: 2007-10-13 22:41:50 -0400 (Sat, 13 Oct 2007) $
Method Summary |
void |
close()
Not applicable |
int |
doc()
|
int |
freq()
|
boolean |
next()
|
int |
read(int[] docs,
int[] freqs)
|
void |
seek(org.apache.lucene.index.Term term)
|
void |
seek(org.apache.lucene.index.TermEnum termEnum)
|
boolean |
skipTo(int target)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
num
protected int num
nodes
protected ArrayList[] nodes
termMap
protected Map termMap
freqs
protected int[] freqs
NodeTermDocs
public NodeTermDocs(NodeReader reader)
seek
public void seek(org.apache.lucene.index.Term term)
- Specified by:
seek
in interface org.apache.lucene.index.TermDocs
seek
public void seek(org.apache.lucene.index.TermEnum termEnum)
- Specified by:
seek
in interface org.apache.lucene.index.TermDocs
doc
public int doc()
- Specified by:
doc
in interface org.apache.lucene.index.TermDocs
freq
public int freq()
- Specified by:
freq
in interface org.apache.lucene.index.TermDocs
next
public boolean next()
- Specified by:
next
in interface org.apache.lucene.index.TermDocs
read
public int read(int[] docs,
int[] freqs)
- Specified by:
read
in interface org.apache.lucene.index.TermDocs
skipTo
public boolean skipTo(int target)
- Specified by:
skipTo
in interface org.apache.lucene.index.TermDocs
close
public void close()
- Not applicable
- Specified by:
close
in interface org.apache.lucene.index.TermDocs
Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.