Terrier IR Platform
1.1.1

uk.ac.gla.terrier.structures
Class Query

java.lang.Object
  extended by uk.ac.gla.terrier.structures.Query
All Implemented Interfaces:
java.io.Serializable

Deprecated.

public class Query
extends java.lang.Object
implements java.io.Serializable

This class implements a data structure representing a query. In this class, a query is represented by a DocumentTree containing the query terms and the associated query number.

Version:
$Revision: 1.16 $
Author:
Ben He
See Also:
Serialized Form

Constructor Summary
Query(TermTreeNode[] query, java.lang.String queryNo)
          Deprecated. Creates a new instance of Query
Query(TermTree query, java.lang.String queryNo)
          Deprecated. Creates a new instance of Query
 
Method Summary
 int getQueryLength()
          Deprecated. Returns the query length, ie the number of non-stopwords in the query
 java.lang.String getQueryNumber()
          Deprecated. Returns the query number
 TermTreeNode[] getQueryTerms()
          Deprecated. Returns a representation of the query as a TermTreeNode array
 java.lang.String[] getQueryTermStrings()
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query

public Query(TermTreeNode[] query,
             java.lang.String queryNo)
Deprecated. 
Creates a new instance of Query


Query

public Query(TermTree query,
             java.lang.String queryNo)
Deprecated. 
Creates a new instance of Query

Method Detail

getQueryLength

public int getQueryLength()
Deprecated. 
Returns the query length, ie the number of non-stopwords in the query

Returns:
int the query length

getQueryNumber

public java.lang.String getQueryNumber()
Deprecated. 
Returns the query number

Returns:
String the query number

getQueryTermStrings

public java.lang.String[] getQueryTermStrings()
Deprecated. 

getQueryTerms

public TermTreeNode[] getQueryTerms()
Deprecated. 
Returns a representation of the query as a TermTreeNode array

Returns:
TermTreeNode[] an array of TermTreeNode

Terrier IR Platform
1.1.1

Terrier Information Retrieval Platform 1.1.1. Copyright 2004-2007 University of Glasgow