|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.event.vaevent.VariantPropertyGetterCache
public class 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.
Constructor Summary | |
---|---|
VariantPropertyGetterCache(EventType[] knownTypes)
Ctor. |
Method Summary | |
---|---|
void |
addGetters(int assignedPropertyNumber,
java.lang.String propertyName)
Adds the getters for a property that is identified by a property number which indexes into array of getters per type. |
EventPropertyGetter |
getGetter(int assignedPropertyNumber,
EventType eventType)
Fast lookup of a getter for a property and type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariantPropertyGetterCache(EventType[] knownTypes)
knownTypes
- types known at cache construction type, may be an empty list for the ANY type variance.Method Detail |
---|
public void addGetters(int assignedPropertyNumber, java.lang.String propertyName)
assignedPropertyNumber
- number of propertypropertyName
- to addpublic EventPropertyGetter getGetter(int assignedPropertyNumber, EventType eventType)
assignedPropertyNumber
- number of property to use as indexeventType
- type of underlying event
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |