SMILA (incubation) API documentation

org.eclipse.smila.search
Class QueryScope

java.lang.Object
  extended by org.eclipse.smila.search.QueryScope

public class QueryScope
extends java.lang.Object

Author:
August Georg Schmidt (BROX) The QueryScope class is a data structure for defining which part of data must be resolved from a index.

Constructor Summary
QueryScope(java.lang.String indexName, int start, int hits)
           
QueryScope(java.lang.String indexName, int start, int hits, int recordsToSelect, int startSelection)
           
 
Method Summary
 void addHits(int hitsToAdd)
           
 boolean equals(java.lang.Object object)
           
 int getHits()
           
 java.lang.String getIndexName()
           
 int getRecordsToSelect()
           
 int getStart()
           
 int getStartSelection()
           
 int hashCode()
           
 void setRecordsToSelect(int toSelect)
           
 void setStartSelection(int selection)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryScope

public QueryScope(java.lang.String indexName,
                  int start,
                  int hits)
Parameters:
indexName - Index name.
start - Start in result list.
hits - Hits to return.

QueryScope

public QueryScope(java.lang.String indexName,
                  int start,
                  int hits,
                  int recordsToSelect,
                  int startSelection)
Parameters:
indexName - Index name.
start - Start in result list.
hits - Hits to return.
recordsToSelect - Records to select.
startSelection - Start selection.
Method Detail

getHits

public int getHits()
Returns:
Returns the number of hits.

getIndexName

public java.lang.String getIndexName()
Returns:
Returns the indexName.

getStart

public int getStart()
Returns:
Returns the start.

addHits

public void addHits(int hitsToAdd)
Parameters:
hitsToAdd - Hits to add.

getRecordsToSelect

public int getRecordsToSelect()
Returns:
Returns the recordsToSelect.

setRecordsToSelect

public void setRecordsToSelect(int toSelect)
Parameters:
toSelect - The recordsToSelect to set.

getStartSelection

public int getStartSelection()
Returns:
Returns the startSelection.

setStartSelection

public void setStartSelection(int selection)
Parameters:
selection - The startSelection to set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Object as String.
See Also:
Object.toString()

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object
Parameters:
object - Object to compare.
Returns:
Whether object is equals.
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
Hash code.
See Also:
Object.hashCode()

SMILA (incubation) API documentation