Class PayloadMatcherFactory
java.lang.Object
org.apache.lucene.queries.payloads.PayloadMatcherFactory
Creates a payload matcher object based on a payload type and an operation. PayloadTypes of
INT,FLOAT, or STRING are supported. Inequality operations are supported.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final EnumMap<SpanPayloadCheckQuery.PayloadType,
EnumMap<SpanPayloadCheckQuery.MatchOperation, PayloadMatcher>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PayloadMatcher
createMatcherForOpAndType
(SpanPayloadCheckQuery.PayloadType payloadType, SpanPayloadCheckQuery.MatchOperation op) Return a payload matcher for use in the SpanPayloadCheckQuery that will decode the ByteRef from a payload based on the payload type, and apply a matching inequality operations (eq,lt,lte,gt,and gte)
-
Field Details
-
payloadCheckerOpTypeMap
private static final EnumMap<SpanPayloadCheckQuery.PayloadType,EnumMap<SpanPayloadCheckQuery.MatchOperation, payloadCheckerOpTypeMapPayloadMatcher>>
-
-
Constructor Details
-
PayloadMatcherFactory
public PayloadMatcherFactory()
-
-
Method Details
-
createMatcherForOpAndType
public static PayloadMatcher createMatcherForOpAndType(SpanPayloadCheckQuery.PayloadType payloadType, SpanPayloadCheckQuery.MatchOperation op) Return a payload matcher for use in the SpanPayloadCheckQuery that will decode the ByteRef from a payload based on the payload type, and apply a matching inequality operations (eq,lt,lte,gt,and gte)- Parameters:
payloadType
- the type of the payload to decode, STRING, INT, FLOATop
- and inequalit operation as the test (example: eq for equals, gt for greater than)- Returns:
- a payload matcher that decodes the payload and applies the operation inequality test.
-