com.espertech.esper.epl.lookup
Class IndexedPropDesc

java.lang.Object
  extended by com.espertech.esper.epl.lookup.IndexedPropDesc
All Implemented Interfaces:
java.lang.Comparable

public class IndexedPropDesc
extends java.lang.Object
implements java.lang.Comparable

Holds property information for joined properties in a lookup.


Constructor Summary
IndexedPropDesc(java.lang.String indexPropName, java.lang.Class coercionType)
          Ctor.
 
Method Summary
static boolean compare(java.util.List<IndexedPropDesc> first, java.util.List<IndexedPropDesc> second)
           
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.Class getCoercionType()
          Returns the coercion type of key to index field.
static java.lang.Class[] getCoercionTypes(IndexedPropDesc[] descList)
          Returns the key coercion types.
static java.lang.String[] getIndexProperties(IndexedPropDesc[] descList)
          Returns the index property names given an array of descriptors.
static java.lang.String[] getIndexProperties(java.util.List<IndexedPropDesc> descList)
           
 java.lang.String getIndexPropName()
          Returns the property name of the indexed field.
static int getPropertyIndex(java.lang.String propertyName, IndexedPropDesc[] descList)
           
 int hashCode()
           
static void toQueryPlan(java.io.StringWriter writer, IndexedPropDesc[] indexedProps)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedPropDesc

public IndexedPropDesc(java.lang.String indexPropName,
                       java.lang.Class coercionType)
Ctor.

Parameters:
indexPropName - is the property name of the indexed field
coercionType - is the type to coerce to
Method Detail

getIndexPropName

public java.lang.String getIndexPropName()
Returns the property name of the indexed field.

Returns:
property name of indexed field

getCoercionType

public java.lang.Class getCoercionType()
Returns the coercion type of key to index field.

Returns:
type to coerce to

getIndexProperties

public static java.lang.String[] getIndexProperties(IndexedPropDesc[] descList)
Returns the index property names given an array of descriptors.

Parameters:
descList - descriptors of joined properties
Returns:
array of index property names

getIndexProperties

public static java.lang.String[] getIndexProperties(java.util.List<IndexedPropDesc> descList)

getPropertyIndex

public static int getPropertyIndex(java.lang.String propertyName,
                                   IndexedPropDesc[] descList)

getCoercionTypes

public static java.lang.Class[] getCoercionTypes(IndexedPropDesc[] descList)
Returns the key coercion types.

Parameters:
descList - a list of descriptors
Returns:
key coercion types

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compare

public static boolean compare(java.util.List<IndexedPropDesc> first,
                              java.util.List<IndexedPropDesc> second)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toQueryPlan

public static void toQueryPlan(java.io.StringWriter writer,
                               IndexedPropDesc[] indexedProps)

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com