com.espertech.esper.epl.lookup
Class JoinedPropDesc

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

public class JoinedPropDesc
extends Object
implements Comparable

Holds property information for joined properties in a lookup.


Constructor Summary
JoinedPropDesc(String indexPropName, Class coercionType, String keyPropName, Integer keyStreamId)
          Ctor.
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 Class getCoercionType()
          Returns the coercion type of key to index field.
static Class[] getCoercionTypes(Collection<JoinedPropDesc> descList)
          Returns the key coercion types.
static Class[] getCoercionTypes(JoinedPropDesc[] descList)
          Returns the key coercion types.
static String[] getIndexProperties(JoinedPropDesc[] descList)
          Returns the index property names given an array of descriptors.
 String getIndexPropName()
          Returns the property name of the indexed field.
static String[] getKeyProperties(Collection<JoinedPropDesc> descList)
          Returns the key property names.
static String[] getKeyProperties(JoinedPropDesc[] descList)
          Returns the key property names.
 String getKeyPropName()
          Returns the property name of the key field.
 Integer getKeyStreamId()
          Returns the stream id of the key field.
static int[] getKeyStreamNums(Collection<JoinedPropDesc> descList)
          Returns the key stream numbers.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoinedPropDesc

public JoinedPropDesc(String indexPropName,
                      Class coercionType,
                      String keyPropName,
                      Integer keyStreamId)
Ctor.

Parameters:
indexPropName - is the property name of the indexed field
coercionType - is the type to coerce to
keyPropName - is the property name of the key field
keyStreamId - is the stream number of the key field
Method Detail

getIndexPropName

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

Returns:
property name of indexed field

getCoercionType

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

Returns:
type to coerce to

getKeyPropName

public String getKeyPropName()
Returns the property name of the key field.

Returns:
property name of key field

getKeyStreamId

public Integer getKeyStreamId()
Returns the stream id of the key field.

Returns:
stream id

getKeyStreamNums

public static int[] getKeyStreamNums(Collection<JoinedPropDesc> descList)
Returns the key stream numbers.

Parameters:
descList - a list of descriptors
Returns:
key stream numbers

getKeyProperties

public static String[] getKeyProperties(Collection<JoinedPropDesc> descList)
Returns the key property names.

Parameters:
descList - a list of descriptors
Returns:
key property names

getKeyProperties

public static String[] getKeyProperties(JoinedPropDesc[] descList)
Returns the key property names.

Parameters:
descList - a list of descriptors
Returns:
key property names

getIndexProperties

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

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

getCoercionTypes

public static Class[] getCoercionTypes(Collection<JoinedPropDesc> descList)
Returns the key coercion types.

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

getCoercionTypes

public static Class[] getCoercionTypes(JoinedPropDesc[] descList)
Returns the key coercion types.

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

compareTo

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

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com