Class VariantPropertyGetterCache
java.lang.Object
com.espertech.esper.common.internal.event.variant.VariantPropertyGetterCache
A thread-safe cache for property getters per event type.
Since most often getters are used in a row for the same type, keeps a row of last used getters for fast lookup based on type.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGetters
(String propertyName) Adds the getters for a property that is identified by a property number which indexes into array of getters per type.Fast lookup of a getter for a property and type.
-
Field Details
-
EPTYPE
-
-
Constructor Details
-
VariantPropertyGetterCache
Ctor.- Parameters:
knownTypes
- types known at cache construction type, may be an empty list for the ANY type variance.
-
-
Method Details
-
addGetters
Adds the getters for a property that is identified by a property number which indexes into array of getters per type.- Parameters:
propertyName
- to add
-
getGetter
Fast lookup of a getter for a property and type.- Parameters:
propertyName
- property nameeventType
- type of underlying event- Returns:
- getter
-