org.sourceforge.beanindex.search
Class Query

java.lang.Object
  extended byorg.sourceforge.beanindex.search.Query

public final class Query
extends java.lang.Object

Author:
Sakthivel Muthusamy

Method Summary
 void addIndex(Index index)
           
 void addItem(SearchTerm item)
           
 Index[] getIndexes()
           
 SearchTerm[] getItems()
           
 java.lang.String getSearchPhrase()
           
 boolean isIndexBufferDirectRead()
          checks if this request is a direct buffer read request
 void setIndexBufferDirectRead(boolean readBuffer)
          setting this method to true will result in a direct inverted index buffer read for all the indexes added.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addIndex

public void addIndex(Index index)
Parameters:
index -

getIndexes

public Index[] getIndexes()
Returns:
Index[]

addItem

public void addItem(SearchTerm item)
Parameters:
item -

getItems

public SearchTerm[] getItems()
Returns:
SearchTerm[]

getSearchPhrase

public java.lang.String getSearchPhrase()
                                 throws java.lang.Exception
Returns:
String
Throws:
java.lang.Exception

isIndexBufferDirectRead

public boolean isIndexBufferDirectRead()
checks if this request is a direct buffer read request

Returns:
boolean

setIndexBufferDirectRead

public void setIndexBufferDirectRead(boolean readBuffer)
setting this method to true will result in a direct inverted index buffer read for all the indexes added. Request items added to this request will be ignored.

Parameters:
readBuffer -