|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.languagecomputer.api.query.MergedQuery
public class MergedQuery
A Query
implementation that acts as a merger of more than one
Query
objects. Queries are given in a preferential order which
is used when multiple Query
objects possess the same elements.
Constructor Summary | |
---|---|
MergedQuery(List<Query> queries)
Creates a new MergedQuery with the given Query s. |
Method Summary | |
---|---|
Set<Keyword> |
getKeywords()
Returns the keywords for this Query . |
String |
getNaturalLanguage()
Returns the natural language representation for this Query . |
Set<String> |
getRequiredEntityTypes()
Returns the required entity types for this Query . |
String |
getStructuredQuery()
Returns the structured data query for this Query . |
List<Query> |
getSubQueries()
Returns the Query subobjects that compose this
MergedQuery . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MergedQuery(List<Query> queries)
MergedQuery
with the given Query
s.
Method Detail |
---|
public String getNaturalLanguage()
Query
.
This could be a question, a command, or just traditional keywords.
getNaturalLanguage
in interface Query
String
representation of this Query
,
or null
if it has no natural language representation.public Set<Keyword> getKeywords()
Query
.
getKeywords
in interface Query
Set
of Keyword
s representing this
Query
, or null
if it has no keyword
representation.public Set<String> getRequiredEntityTypes()
Query
.
getRequiredEntityTypes
in interface Query
Set
of mandatory entity types representing this
Query
, or null
if it has no required entity
types representation.public String getStructuredQuery()
Query
.
getStructuredQuery
in interface Query
String
-based structured query representing this
Query
, or null
if it has no structured query
representation.public List<Query> getSubQueries()
Query
subobjects that compose this
MergedQuery
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |