public class Near extends NaryNode
NaryNode.ScoreAction
Modifier and Type | Field and Description |
---|---|
int |
distance
Proximity matching window size
|
indexOptions
Constructor and Description |
---|
Near() |
Near(int distance)
Create a proximity matching node with a fixed distance.
|
Near(int distance,
java.util.List<Node> children,
IndexOptions options) |
Near(int distance,
Node... children)
Create a proximity matching node with a fixed distance.
|
Near(int distance,
Node n1,
Node n2)
Create a proximity matching node with a fixed distance.
|
Near(java.util.List<Node> children,
java.util.List<java.lang.Integer> distances) |
Near(java.util.List<Node> children,
java.util.List<java.lang.Integer> distances,
IndexOptions options) |
Near(Near other) |
Modifier and Type | Method and Description |
---|---|
Node |
accept(NodeVisitor visitor) |
void |
addChildWithDist(int dist,
Node child)
add a child with the given distance to the previous child.
|
Node |
cloneNode() |
int |
getDistance()
Get the proximity matching distance
|
void |
setDistance(int distance)
Set the proximity matching distance
|
void |
toELLQL(java.lang.StringBuilder buffer,
boolean sortNAry) |
boolean |
useGlobalDistance() |
addChild, addChildren, contentToELLQLSeq, copyContentFrom, copyContentTo, doubleToEllqlString, getContent, getContentSize, getContentUnsafe, setContent
copyOptionsFrom, escapeStr, getHighlight, toELLQLBinary, toELLQLConstant, toELLQLNAry, toELLQLUnary, unEscapeStr
public Near()
public Near(int distance)
distance
- must be >= 1public Near(int distance, Node n1, Node n2)
distance
- must be >= 1public Near(int distance, Node... children)
distance
- must be >= 1public Near(int distance, java.util.List<Node> children, IndexOptions options)
public Near(java.util.List<Node> children, java.util.List<java.lang.Integer> distances)
public Near(java.util.List<Node> children, java.util.List<java.lang.Integer> distances, IndexOptions options)
public Near(Near other)
public boolean useGlobalDistance()
public void addChildWithDist(int dist, Node child)
public int getDistance()
public void setDistance(int distance)
public void toELLQL(java.lang.StringBuilder buffer, boolean sortNAry)
public Node accept(NodeVisitor visitor) throws QueryProcessingException
accept
in class Node
QueryProcessingException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.