Package org.umlg.sqlg.predicate
Class FullText
java.lang.Object
org.umlg.sqlg.predicate.FullText
- All Implemented Interfaces:
BiPredicate<String,
,String> org.apache.tinkerpop.gremlin.process.traversal.PBiPredicate<String,
String>
public class FullText
extends Object
implements org.apache.tinkerpop.gremlin.process.traversal.PBiPredicate<String,String>
Full text match predicate
This is very postgresql oriented:
- configuration is whatever was used to create the index
- plain is to switch to plainto_tsquery (no need to use operators, etc.)
- Author:
- jpmoresmau
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.tinkerpop.gremlin.process.traversal.P<String>
fullTextMatch
(String configuration, boolean plain, String value) Build full text matching predicate (use in has(column,...))static org.apache.tinkerpop.gremlin.process.traversal.P<String>
fullTextMatch
(String configuration, boolean plain, String query, String value) Build full text matching predicate (use in where(...))static org.apache.tinkerpop.gremlin.process.traversal.P<String>
fullTextMatch
(String configuration, boolean plain, List<String> columns, String value) Build full text matching predicate (use in where(...)) Uses several columns for text search.static org.apache.tinkerpop.gremlin.process.traversal.P<String>
fullTextMatch
(String configuration, String value) Build full text matching predicate (use in has(column,...))getQuery()
boolean
isPlain()
boolean
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.function.BiPredicate
and, or
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.PBiPredicate
getPredicateName, negate
-
Constructor Details
-
FullText
full constructor- Parameters:
configuration
- the full text configurationquery
- the left hand side query if specifiedplain
- use plain mode
-
-
Method Details
-
fullTextMatch
public static org.apache.tinkerpop.gremlin.process.traversal.P<String> fullTextMatch(String configuration, String value) Build full text matching predicate (use in has(column,...))- Parameters:
configuration
- the full text configuration to usevalue
- the value to search for- Returns:
- the predicate
-
fullTextMatch
public static org.apache.tinkerpop.gremlin.process.traversal.P<String> fullTextMatch(String configuration, boolean plain, String value) Build full text matching predicate (use in has(column,...))- Parameters:
configuration
- the full text configuration to useplain
- should we use plain mode?value
- the value to search for- Returns:
- the predicate
-
fullTextMatch
public static org.apache.tinkerpop.gremlin.process.traversal.P<String> fullTextMatch(String configuration, boolean plain, String query, String value) Build full text matching predicate (use in where(...))- Parameters:
configuration
- the full text configuration to useplain
- should we use plain mode?query
- the actual query (left hand side)value
- the value to search for- Returns:
- the predicate
-
fullTextMatch
public static org.apache.tinkerpop.gremlin.process.traversal.P<String> fullTextMatch(String configuration, boolean plain, List<String> columns, String value) Build full text matching predicate (use in where(...)) Uses several columns for text search. This assumes PostgreSQL and concatenates column names with a space in between just like we would by default build the index- Parameters:
configuration
- the full text configuration to useplain
- should we use plain mode?columns
- the columns to queryvalue
- the value to search for- Returns:
- the predicate
-
getConfiguration
-
isPlain
public boolean isPlain() -
getQuery
-
test
- Specified by:
test
in interfaceBiPredicate<String,
String>
-
toString
-