Module org.elasticsearch.xcore
Interface RoleMapperExpression
- All Superinterfaces:
NamedWriteable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject,Writeable
- All Known Implementing Classes:
AllExpression,AnyExpression,ExceptExpression,FieldExpression
public interface RoleMapperExpression
extends org.elasticsearch.xcontent.ToXContentObject, NamedWriteable
Implementations of this interface represent an expression over a simple object that resolves to
a boolean value. The "simple object" is provided as a
ExpressionModel.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptiondefault Predicate<ExpressionModel> Adapt this expression to a standardPredicatebooleanmatch(ExpressionModel model) Determines whether this expression matches against the provided object.static Predicate<RoleMapperExpression> predicate(ExpressionModel map) Creates an inverted predicate that can test whether an expression matches a fixed object.Methods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableNameMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Method Details
-
match
Determines whether this expression matches against the provided object.- Parameters:
model- theExpressionModel
-
asPredicate
Adapt this expression to a standardPredicate -
predicate
Creates an inverted predicate that can test whether an expression matches a fixed object. Its purpose is for cases where there is aStreamof expressions, that need to be filtered against a single map.
-