Spring Data Solr

org.springframework.data.solr.core.query
Class Node

java.lang.Object
  extended by org.springframework.data.solr.core.query.Node
Direct Known Subclasses:
Criteria

public abstract class Node
extends Object

Since:
1.2
Author:
Christoph Strobl

Constructor Summary
protected Node()
           
 
Method Summary
abstract
<T extends Node>
T
and(Node part)
          Combine two Nodes using and.
abstract
<T extends Node>
T
and(String fieldname)
          Combine node with new Node for given fieldname using and.
abstract  Node between(Object lowerBound, Object upperBound)
           
abstract  Node between(Object lowerBound, Object upperBound, boolean includeLowerBound, boolean includeUpperBound)
           
abstract  Node boost(float value)
           
abstract  Node contains(Iterable<String> values)
           
abstract  Node contains(String... values)
           
abstract  Node contains(String value)
           
abstract  Node endsWith(Iterable<String> values)
           
abstract  Node endsWith(String... values)
           
abstract  Node endsWith(String postfix)
           
abstract  Node expression(String nativeSolrQueryExpression)
           
abstract  Node function(Function function)
           
abstract  Node fuzzy(String value)
           
abstract  Node fuzzy(String values, float levenshteinDistance)
           
 Node getParent()
          Get parent Node.
 Collection<Criteria> getSiblings()
           
abstract  Node greaterThan(Object lowerBound)
           
abstract  Node greaterThanEqual(Object lowerBound)
           
 boolean hasSiblings()
           
abstract  Node in(Iterable<?> values)
           
abstract  Node in(Object... values)
           
abstract  Node is(Iterable<?> values)
           
abstract  Node is(Object... values)
           
abstract  Node is(Object value)
           
abstract  Node isNotNull()
           
abstract  Node isNull()
           
 boolean isOr()
           
 boolean isRoot()
           
abstract  Node lessThan(Object upperBound)
           
abstract  Node lessThanEqual(Object upperBound)
           
abstract  Node near(org.springframework.data.geo.Box box)
           
abstract  Node near(org.springframework.data.geo.Point location, org.springframework.data.geo.Distance distance)
           
abstract  Node not()
           
abstract
<T extends Node>
T
or(Node part)
          Combine two Nodes using or.
abstract
<T extends Node>
T
or(String fieldname)
          Combine node with new Node for given fieldname using and.
protected  void setParent(Node parent)
           
 void setPartIsOr(boolean isOr)
          Define or nature of Node
abstract  Node sloppy(String phrase, int distance)
           
abstract  Node startsWith(Iterable<String> values)
           
abstract  Node startsWith(String... values)
           
abstract  Node startsWith(String prefix)
           
abstract  Node within(org.springframework.data.geo.Point location, org.springframework.data.geo.Distance distance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

protected Node()
Method Detail

setParent

protected void setParent(Node parent)

setPartIsOr

public void setPartIsOr(boolean isOr)
Define or nature of Node

Parameters:
isOr -

isRoot

public boolean isRoot()
Returns:
true in case Node has no parent.

isOr

public boolean isOr()
Returns:
true in case Node has or nature.

getParent

public Node getParent()
Get parent Node.

Returns:
null in case no parent set.

hasSiblings

public boolean hasSiblings()
Returns:
true if Node has siblings.

getSiblings

public Collection<Criteria> getSiblings()
Returns:
empty collection if Node does not have siblings.

and

public abstract <T extends Node> T and(Node part)
Combine two Nodes using and.

Parameters:
part -
Returns:

and

public abstract <T extends Node> T and(String fieldname)
Combine node with new Node for given fieldname using and.

Parameters:
part -
Returns:

or

public abstract <T extends Node> T or(Node part)
Combine two Nodes using or.

Parameters:
part -
Returns:

or

public abstract <T extends Node> T or(String fieldname)
Combine node with new Node for given fieldname using and.

Parameters:
part -
Returns:

is

public abstract Node is(Object value)

is

public abstract Node is(Object... values)

is

public abstract Node is(Iterable<?> values)

isNull

public abstract Node isNull()

isNotNull

public abstract Node isNotNull()

contains

public abstract Node contains(String value)

contains

public abstract Node contains(String... values)

contains

public abstract Node contains(Iterable<String> values)

startsWith

public abstract Node startsWith(String prefix)

startsWith

public abstract Node startsWith(String... values)

startsWith

public abstract Node startsWith(Iterable<String> values)

endsWith

public abstract Node endsWith(String postfix)

endsWith

public abstract Node endsWith(String... values)

endsWith

public abstract Node endsWith(Iterable<String> values)

not

public abstract Node not()

fuzzy

public abstract Node fuzzy(String value)

fuzzy

public abstract Node fuzzy(String values,
                           float levenshteinDistance)

sloppy

public abstract Node sloppy(String phrase,
                            int distance)

expression

public abstract Node expression(String nativeSolrQueryExpression)

boost

public abstract Node boost(float value)

between

public abstract Node between(Object lowerBound,
                             Object upperBound)

between

public abstract Node between(Object lowerBound,
                             Object upperBound,
                             boolean includeLowerBound,
                             boolean includeUpperBound)

lessThan

public abstract Node lessThan(Object upperBound)

lessThanEqual

public abstract Node lessThanEqual(Object upperBound)

greaterThan

public abstract Node greaterThan(Object lowerBound)

greaterThanEqual

public abstract Node greaterThanEqual(Object lowerBound)

in

public abstract Node in(Object... values)

in

public abstract Node in(Iterable<?> values)

within

public abstract Node within(org.springframework.data.geo.Point location,
                            org.springframework.data.geo.Distance distance)

near

public abstract Node near(org.springframework.data.geo.Box box)

near

public abstract Node near(org.springframework.data.geo.Point location,
                          org.springframework.data.geo.Distance distance)

function

public abstract Node function(Function function)

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.