org.terrier.querying.parser
Class SegmentQuery

java.lang.Object
  extended by org.terrier.querying.parser.Query
      extended by org.terrier.querying.parser.MultiTermQuery
          extended by org.terrier.querying.parser.SegmentQuery
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class SegmentQuery
extends MultiTermQuery

Used to represent a particular segement of the query terms

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.terrier.querying.parser.Query
Query.ForEachQueryNode
 
Field Summary
 
Fields inherited from class org.terrier.querying.parser.MultiTermQuery
prefix, suffix, v
 
Fields inherited from class org.terrier.querying.parser.Query
child, tmpSTQ
 
Constructor Summary
SegmentQuery()
          Constructs an instance of the SegmentQuery.
 
Method Summary
 Query get(int index)
          get Query
 void replace(int index, Query replacement)
          Replace current query
 
Methods inherited from class org.terrier.querying.parser.MultiTermQuery
add, add, apply, applyTermPipeline, clone, getNumberOfTerms, getTerms, getTermsOf, obtainAllOf, obtainControls, obtainQueryTerms, obtainQueryTerms, parseTree, replace, toString
 
Methods inherited from class org.terrier.querying.parser.Query
setChild
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SegmentQuery

public SegmentQuery()
Constructs an instance of the SegmentQuery.

Method Detail

get

public Query get(int index)
get Query

Parameters:
index -
Returns:
Query

replace

public void replace(int index,
                    Query replacement)
Replace current query

Parameters:
index -
replacement -


Terrier 3.5. Copyright © 2004-2011 University of Glasgow