public class GraphQuery extends Query
Modifier and Type | Class and Description |
---|---|
protected class |
GraphQuery.GraphQueryWeight |
Constructor and Description |
---|
GraphQuery(Query q,
String fromField,
String toField)
Create a graph query
q - the starting node query
fromField - the field containing the node id
toField - the field containing the edge ids
|
GraphQuery(Query q,
String fromField,
String toField,
Query traversalFilter)
Create a graph query with a traversal filter applied while traversing the frontier.
|
Modifier and Type | Method and Description |
---|---|
Weight |
createWeight(IndexSearcher searcher,
boolean needsScores,
float boost) |
boolean |
equals(Object other) |
String |
getFromField() |
int |
getMaxDepth() |
Query |
getQ() |
String |
getToField() |
Query |
getTraversalFilter() |
int |
hashCode() |
boolean |
isOnlyLeafNodes() |
boolean |
isReturnRoot() |
boolean |
isUseAutn() |
void |
setFromField(String fromField) |
void |
setMaxDepth(int maxDepth) |
void |
setOnlyLeafNodes(boolean onlyLeafNodes) |
void |
setQ(Query q) |
void |
setReturnRoot(boolean returnRoot) |
void |
setToField(String toField) |
void |
setTraversalFilter(Query traversalFilter) |
void |
setUseAutn(boolean useAutn) |
String |
toString(String field) |
classHash, rewrite, sameClassAs, toString
public GraphQuery(Query q, String fromField, String toField)
public GraphQuery(Query q, String fromField, String toField, Query traversalFilter)
public Weight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException
createWeight
in class Query
IOException
public Query getTraversalFilter()
public void setTraversalFilter(Query traversalFilter)
public Query getQ()
public void setQ(Query q)
public String getFromField()
public void setFromField(String fromField)
public String getToField()
public void setToField(String toField)
public int getMaxDepth()
public void setMaxDepth(int maxDepth)
public boolean isUseAutn()
public void setUseAutn(boolean useAutn)
public boolean isOnlyLeafNodes()
public void setOnlyLeafNodes(boolean onlyLeafNodes)
public boolean isReturnRoot()
public void setReturnRoot(boolean returnRoot)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.