public class TQuery
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
TQuery(java.lang.String expression)
Initializes the query with the given query expression.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.lang.String |
getExpression()
Gets the query expression.
|
TQuerySearchMode |
getQuerySearchMode()
Gets the _querysearchmode parameter for this query.
|
static TQuery |
newInstance(java.lang.String expression)
Factory method for the instantiation of a TQuery instance.
|
protected void |
setExpression(java.lang.String expression)
Sets the concrete query expression.
|
void |
setQuerySearchMode(TQuerySearchMode querySearchMode)
Sets the _querysearchmode parameter for this query.
|
java.lang.String |
toString()
Returns the String representation of this TQuery instance.
|
public TQuery(java.lang.String expression)
expression
- is the query expression.public static TQuery newInstance(java.lang.String expression)
expression
- is the Tamino query expression.protected void setExpression(java.lang.String expression)
expression
- is the Tamino query expression.public java.lang.String getExpression()
public void setQuerySearchMode(TQuerySearchMode querySearchMode)
It has turned out that these “short-term” locks might live too long. Then, while a query request is reading indizes, concurrent updates have to wait until this short lock becomes available. To prevent starvation of these update requests, newly arriving read request have to queue up behind the update requests. As a consequence, even very short read requests need a long time until they can be processed.
To increase transaction throughput and to solve above mentioned problem we may require to process queries without these “short-term” doctype locks. But giving up the “short-term” doctype lock during index processing implies that one can no longer rely on many assumptions about the correctness of the result.
In order to specify that query request should not use "short-term" locks, set _querysearchmode=approximate i.e. TQuery.setQuerySearchMode(TQuerySearchMode.APPROXIMATE). Default value for this parameter is - "accurate"
_querysearchmode
- parameter for this query.public TQuerySearchMode getQuerySearchMode()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.Copyright (c) 2015 Software AG. All Rights Reserved.