Xindice API
version 1.2m1

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

java.lang.Object
  extended byorg.apache.xindice.core.query.ftsearch.NodeTermDocs
      extended byorg.apache.xindice.core.query.ftsearch.NodeTermPositions
All Implemented Interfaces:
org.apache.lucene.index.TermDocs, org.apache.lucene.index.TermPositions

public class NodeTermPositions
extends NodeTermDocs
implements org.apache.lucene.index.TermPositions

TermPositions for searching over DOM nodes in memory

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

Field Summary
 
Fields inherited from class org.apache.xindice.core.query.ftsearch.NodeTermDocs
freqs, nodes, num, termMap
 
Constructor Summary
NodeTermPositions(NodeReader reader)
           
 
Method Summary
 byte[] getPayload(byte[] data, int offset)
           
 int getPayloadLength()
           
 boolean isPayloadAvailable()
           
 boolean next()
           
 int nextPosition()
           
 void seek(org.apache.lucene.index.Term term)
           
 
Methods inherited from class org.apache.xindice.core.query.ftsearch.NodeTermDocs
close, doc, freq, read, seek, skipTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.lucene.index.TermDocs
close, doc, freq, read, seek, skipTo
 

Constructor Detail

NodeTermPositions

public NodeTermPositions(NodeReader reader)
Method Detail

seek

public void seek(org.apache.lucene.index.Term term)
Specified by:
seek in interface org.apache.lucene.index.TermDocs
Overrides:
seek in class NodeTermDocs

nextPosition

public int nextPosition()
                 throws IOException
Specified by:
nextPosition in interface org.apache.lucene.index.TermPositions
Throws:
IOException

next

public boolean next()
Specified by:
next in interface org.apache.lucene.index.TermDocs
Overrides:
next in class NodeTermDocs

getPayloadLength

public int getPayloadLength()
Specified by:
getPayloadLength in interface org.apache.lucene.index.TermPositions

getPayload

public byte[] getPayload(byte[] data,
                         int offset)
                  throws IOException
Specified by:
getPayload in interface org.apache.lucene.index.TermPositions
Throws:
IOException

isPayloadAvailable

public boolean isPayloadAvailable()
Specified by:
isPayloadAvailable in interface org.apache.lucene.index.TermPositions

Xindice API
version 1.2m1

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