Modifier and Type | Class and Description |
---|---|
private static class |
SelectParser.ConnectedItem |
Modifier and Type | Field and Description |
---|---|
private static String |
ACCENT_DROP |
private static String |
ALTERNATIVES |
private static String |
AND |
private static String |
AND_NOT |
private static String |
AND_SEGMENTING |
private static String |
ANNOTATIONS |
private static String |
ASCENDING_HITS_ORDER |
private static String |
CALL |
private List<SelectParser.ConnectedItem> |
connectedItems |
private static String |
CONNECTION_ID |
private static String |
CONNECTION_WEIGHT |
private static String |
CONNECTIVITY |
private static String |
CONTAINS |
private static Integer |
DEFAULT_TARGET_NUM_HITS |
private static String |
DESCENDING_HITS_ORDER
YQL parameters and functions
|
private static String |
DISTANCE |
private static String |
DOT_PRODUCT |
private ParserEnvironment |
environment |
private static String |
EQ |
private static String |
EQUIV |
private static String |
FILTER |
private static List<String> |
FUNCTION_CALLS |
private static String |
HIT_LIMIT |
private Map<Integer,TaggableItem> |
identifiedItems |
private static String |
IMPLICIT_TRANSFORMS |
private IndexFacts |
indexFacts |
private IndexFacts.Session |
indexFactsSession |
private static String |
LABEL |
private static String |
MATCHES |
private static String |
NEAR |
private static String |
NFKC |
private static String |
NORMALIZE_CASE |
private com.yahoo.language.process.Normalizer |
normalizer |
private static String |
ONEAR |
private static String |
OR |
private static String |
ORIGIN |
private static String |
ORIGIN_LENGTH |
private static String |
ORIGIN_OFFSET |
private static String |
ORIGIN_ORIGINAL |
private static String |
PHRASE |
private static String |
PREDICATE |
private static String |
PREFIX |
(package private) Parsable |
query |
private static String |
RANGE |
private static String |
RANK |
private static String |
RANKED |
private static String |
SAME_ELEMENT |
private static String |
SCORE_THRESHOLD |
private static String |
SIGNIFICANCE |
private static String |
STEM |
private static String |
SUBSTRING |
private static String |
SUFFIX |
private static String |
TARGET_NUM_HITS |
private static String |
THRESHOLD_BOOST_FACTOR |
private static String |
UNIQUE_ID |
private static String |
USE_POSITION_DATA |
private static String |
USER_INPUT_LANGUAGE |
private static String |
WAND |
private static String |
WEAK_AND |
private static String |
WEIGHT |
private static String |
WEIGHTED_SET |
Constructor and Description |
---|
SelectParser(ParserEnvironment environment) |
Modifier and Type | Method and Description |
---|---|
private static void |
addItems(HashMap<Integer,com.yahoo.slime.Inspector> children,
WeightedSetItem out) |
private void |
addItemsFromInspector(CompositeItem item,
com.yahoo.slime.Inspector inspector) |
private static void |
addLongItems(HashMap<Integer,com.yahoo.slime.Inspector> children,
WeightedSetItem out) |
private static void |
addStringItems(HashMap<Integer,com.yahoo.slime.Inspector> children,
WeightedSetItem out) |
private static void |
assertHasOperator(String key,
String expectedKey) |
private CompositeItem |
buildAnd(String key,
com.yahoo.slime.Inspector value) |
private Item |
buildDotProduct(String key,
com.yahoo.slime.Inspector value) |
private Item |
buildEquals(String key,
com.yahoo.slime.Inspector value) |
private Item |
buildFunctionCall(String key,
com.yahoo.slime.Inspector value) |
private IntItem |
buildGreaterThan(String field,
String bound) |
private IntItem |
buildGreaterThanOrEquals(String field,
String bound) |
private IntItem |
buildLessThan(String field,
String bound) |
private IntItem |
buildLessThanOrEquals(String field,
String bound) |
private CompositeItem |
buildNotAnd(String key,
com.yahoo.slime.Inspector value) |
private CompositeItem |
buildOr(String key,
com.yahoo.slime.Inspector value) |
private Item |
buildPredicate(String key,
com.yahoo.slime.Inspector value) |
private Item |
buildRange(String key,
com.yahoo.slime.Inspector value) |
private CompositeItem |
buildRank(String key,
com.yahoo.slime.Inspector value) |
private Item |
buildRegExpSearch(String key,
com.yahoo.slime.Inspector value) |
private Item |
buildTermSearch(String key,
com.yahoo.slime.Inspector value) |
private QueryTree |
buildTree() |
private Item |
buildWand(String key,
com.yahoo.slime.Inspector value) |
private CompositeItem |
buildWeakAnd(String key,
com.yahoo.slime.Inspector value) |
private Item |
buildWeightedSet(String key,
com.yahoo.slime.Inspector value) |
private void |
connectItems() |
private com.yahoo.language.Language |
decideParsingLanguage(com.yahoo.slime.Inspector value,
String wordData) |
private WeightedSetItem |
fillWeightedSet(com.yahoo.slime.Inspector value,
HashMap<Integer,com.yahoo.slime.Inspector> children,
WeightedSetItem out) |
private <T> T |
getAnnotation(String annotationName,
HashMap<String,com.yahoo.slime.Inspector> annotations,
Class<T> expectedClass,
T defaultValue) |
private com.yahoo.slime.Inspector |
getAnnotationAsInspectorOrNull(String annotationName,
HashMap<String,com.yahoo.slime.Inspector> annotations) |
private HashMap<String,com.yahoo.slime.Inspector> |
getAnnotationMap(com.yahoo.slime.Inspector inspector) |
private HashMap<String,com.yahoo.slime.Inspector> |
getAnnotationMapFromAnnotationInspector(com.yahoo.slime.Inspector annotation) |
private com.yahoo.slime.Inspector |
getAnnotations(com.yahoo.slime.Inspector inspector) |
private Boolean |
getBoolAnnotation(String annotationName,
HashMap<String,com.yahoo.slime.Inspector> annotations,
Boolean defaultValue) |
private Integer |
getCappedRangeSearchParameter(com.yahoo.slime.Inspector annotations) |
private com.yahoo.slime.Inspector |
getChildren(com.yahoo.slime.Inspector inspector) |
private HashMap<Integer,com.yahoo.slime.Inspector> |
getChildrenMap(com.yahoo.slime.Inspector inspector) |
private Double |
getDoubleAnnotation(String annotationName,
HashMap<String,com.yahoo.slime.Inspector> annotations,
Double defaultValue) |
List<VespaGroupingStep> |
getGroupingSteps(String grouping) |
private String |
getIndex(String field) |
private String |
getInspectorKey(com.yahoo.slime.Inspector inspector) |
private Integer |
getIntegerAnnotation(String annotationName,
HashMap<String,com.yahoo.slime.Inspector> annotations,
Integer defaultValue) |
private List<String> |
getOperations(String grouping) |
private Substring |
getOrigin(com.yahoo.slime.Inspector annotations) |
private Item |
instantiateCompositeLeaf(String field,
String key,
com.yahoo.slime.Inspector value) |
private Item |
instantiateEquivItem(String field,
String key,
com.yahoo.slime.Inspector value) |
private Item |
instantiateLeafItem(String field,
String key,
com.yahoo.slime.Inspector value) |
private Item |
instantiateNearItem(String field,
String key,
com.yahoo.slime.Inspector value) |
private Item |
instantiateONearItem(String field,
String key,
com.yahoo.slime.Inspector value) |
private Item |
instantiatePhraseItem(String field,
String key,
com.yahoo.slime.Inspector value) |
private IntItem |
instantiateRangeItem(Number lowerBound,
Number upperBound,
String field,
boolean bounds_left_open,
boolean bounds_right_open) |
private Item |
instantiateSameElementItem(String field,
String key,
com.yahoo.slime.Inspector value) |
private Item |
instantiateWordAlternativesItem(String field,
String key,
com.yahoo.slime.Inspector value) |
private Item |
instantiateWordItem(String field,
String key,
com.yahoo.slime.Inspector value) |
private Item |
instantiateWordItem(String field,
String rawWord,
String key,
com.yahoo.slime.Inspector value,
boolean exactMatch,
com.yahoo.language.Language language) |
private <T extends TaggableItem> |
leafStyleSettings(com.yahoo.slime.Inspector annotations,
T out) |
private static IllegalArgumentException |
newUnexpectedArgumentException(Object actual,
Object... expected) |
QueryTree |
parse(Parsable query)
|
private void |
prepareWord(String field,
com.yahoo.slime.Inspector value,
WordItem wordItem) |
private List<com.yahoo.slime.Inspector> |
valueListFromInspector(com.yahoo.slime.Inspector inspector) |
private Item |
walkJson(com.yahoo.slime.Inspector inspector) |
private void |
wordStyleSettings(com.yahoo.slime.Inspector value,
WordItem out) |
Parsable query
private final IndexFacts indexFacts
private final Map<Integer,TaggableItem> identifiedItems
private final List<SelectParser.ConnectedItem> connectedItems
private final com.yahoo.language.process.Normalizer normalizer
private final ParserEnvironment environment
private IndexFacts.Session indexFactsSession
private static final String DESCENDING_HITS_ORDER
private static final String ASCENDING_HITS_ORDER
private static final Integer DEFAULT_TARGET_NUM_HITS
private static final String ORIGIN_LENGTH
private static final String ORIGIN_OFFSET
private static final String ORIGIN
private static final String ORIGIN_ORIGINAL
private static final String CONNECTION_ID
private static final String CONNECTION_WEIGHT
private static final String CONNECTIVITY
private static final String ANNOTATIONS
private static final String NFKC
private static final String USER_INPUT_LANGUAGE
private static final String ACCENT_DROP
private static final String ALTERNATIVES
private static final String AND_SEGMENTING
private static final String DISTANCE
private static final String DOT_PRODUCT
private static final String EQUIV
private static final String FILTER
private static final String HIT_LIMIT
private static final String IMPLICIT_TRANSFORMS
private static final String LABEL
private static final String NEAR
private static final String NORMALIZE_CASE
private static final String ONEAR
private static final String PHRASE
private static final String PREDICATE
private static final String PREFIX
private static final String RANKED
private static final String RANK
private static final String SAME_ELEMENT
private static final String SCORE_THRESHOLD
private static final String SIGNIFICANCE
private static final String STEM
private static final String SUBSTRING
private static final String SUFFIX
private static final String TARGET_NUM_HITS
private static final String THRESHOLD_BOOST_FACTOR
private static final String UNIQUE_ID
private static final String USE_POSITION_DATA
private static final String WAND
private static final String WEAK_AND
private static final String WEIGHTED_SET
private static final String WEIGHT
private static final String AND
private static final String AND_NOT
private static final String OR
private static final String EQ
private static final String RANGE
private static final String CONTAINS
private static final String MATCHES
private static final String CALL
public SelectParser(ParserEnvironment environment)
private QueryTree buildTree()
private Item walkJson(com.yahoo.slime.Inspector inspector)
public List<VespaGroupingStep> getGroupingSteps(String grouping)
@NonNull private Item buildFunctionCall(String key, com.yahoo.slime.Inspector value)
private void addItemsFromInspector(CompositeItem item, com.yahoo.slime.Inspector inspector)
private com.yahoo.slime.Inspector getChildren(com.yahoo.slime.Inspector inspector)
private HashMap<Integer,com.yahoo.slime.Inspector> getChildrenMap(com.yahoo.slime.Inspector inspector)
private com.yahoo.slime.Inspector getAnnotations(com.yahoo.slime.Inspector inspector)
private HashMap<String,com.yahoo.slime.Inspector> getAnnotationMapFromAnnotationInspector(com.yahoo.slime.Inspector annotation)
private HashMap<String,com.yahoo.slime.Inspector> getAnnotationMap(com.yahoo.slime.Inspector inspector)
private <T> T getAnnotation(String annotationName, HashMap<String,com.yahoo.slime.Inspector> annotations, Class<T> expectedClass, T defaultValue)
private Boolean getBoolAnnotation(String annotationName, HashMap<String,com.yahoo.slime.Inspector> annotations, Boolean defaultValue)
private Integer getIntegerAnnotation(String annotationName, HashMap<String,com.yahoo.slime.Inspector> annotations, Integer defaultValue)
private Double getDoubleAnnotation(String annotationName, HashMap<String,com.yahoo.slime.Inspector> annotations, Double defaultValue)
private com.yahoo.slime.Inspector getAnnotationAsInspectorOrNull(String annotationName, HashMap<String,com.yahoo.slime.Inspector> annotations)
@NonNull private CompositeItem buildAnd(String key, com.yahoo.slime.Inspector value)
@NonNull private CompositeItem buildNotAnd(String key, com.yahoo.slime.Inspector value)
@NonNull private CompositeItem buildOr(String key, com.yahoo.slime.Inspector value)
@NonNull private CompositeItem buildWeakAnd(String key, com.yahoo.slime.Inspector value)
@NonNull private <T extends TaggableItem> T leafStyleSettings(com.yahoo.slime.Inspector annotations, @NonNull T out)
private Integer getCappedRangeSearchParameter(com.yahoo.slime.Inspector annotations)
@NonNull private IntItem buildGreaterThanOrEquals(String field, String bound)
@NonNull private IntItem instantiateRangeItem(Number lowerBound, Number upperBound, String field, boolean bounds_left_open, boolean bounds_right_open)
@NonNull private WeightedSetItem fillWeightedSet(com.yahoo.slime.Inspector value, HashMap<Integer,com.yahoo.slime.Inspector> children, @NonNull WeightedSetItem out)
private static void addItems(HashMap<Integer,com.yahoo.slime.Inspector> children, WeightedSetItem out)
private static void addStringItems(HashMap<Integer,com.yahoo.slime.Inspector> children, WeightedSetItem out)
private static void addLongItems(HashMap<Integer,com.yahoo.slime.Inspector> children, WeightedSetItem out)
@NonNull private Item buildRegExpSearch(String key, com.yahoo.slime.Inspector value)
@NonNull private Item buildWeightedSet(String key, com.yahoo.slime.Inspector value)
@NonNull private CompositeItem buildRank(String key, com.yahoo.slime.Inspector value)
private String getInspectorKey(com.yahoo.slime.Inspector inspector)
@NonNull private Item instantiateLeafItem(String field, String key, com.yahoo.slime.Inspector value)
@NonNull private Item instantiateCompositeLeaf(String field, String key, com.yahoo.slime.Inspector value)
@NonNull private Item instantiateWordItem(String field, String key, com.yahoo.slime.Inspector value)
@NonNull private Item instantiateWordItem(String field, String rawWord, String key, com.yahoo.slime.Inspector value, boolean exactMatch, com.yahoo.language.Language language)
private com.yahoo.language.Language decideParsingLanguage(com.yahoo.slime.Inspector value, String wordData)
private void prepareWord(String field, com.yahoo.slime.Inspector value, WordItem wordItem)
private void wordStyleSettings(com.yahoo.slime.Inspector value, WordItem out)
private Substring getOrigin(com.yahoo.slime.Inspector annotations)
@NonNull private Item instantiateSameElementItem(String field, String key, com.yahoo.slime.Inspector value)
@NonNull private Item instantiatePhraseItem(String field, String key, com.yahoo.slime.Inspector value)
@NonNull private Item instantiateNearItem(String field, String key, com.yahoo.slime.Inspector value)
@NonNull private Item instantiateONearItem(String field, String key, com.yahoo.slime.Inspector value)
@NonNull private Item instantiateEquivItem(String field, String key, com.yahoo.slime.Inspector value)
private Item instantiateWordAlternativesItem(String field, String key, com.yahoo.slime.Inspector value)
private static IllegalArgumentException newUnexpectedArgumentException(Object actual, Object... expected)
private List<com.yahoo.slime.Inspector> valueListFromInspector(com.yahoo.slime.Inspector inspector)
private void connectItems()
Copyright © 2018. All rights reserved.