public class IndexedPropDesc
extends java.lang.Object
implements java.lang.Comparable
Constructor and Description |
---|
IndexedPropDesc(java.lang.String indexPropName,
java.lang.Class coercionType)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
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) |
public IndexedPropDesc(java.lang.String indexPropName, java.lang.Class coercionType)
indexPropName
- is the property name of the indexed fieldcoercionType
- is the type to coerce topublic java.lang.String getIndexPropName()
public java.lang.Class getCoercionType()
public static java.lang.String[] getIndexProperties(IndexedPropDesc[] descList)
descList
- descriptors of joined propertiespublic static java.lang.String[] getIndexProperties(java.util.List<IndexedPropDesc> descList)
public static int getPropertyIndex(java.lang.String propertyName, IndexedPropDesc[] descList)
public static java.lang.Class[] getCoercionTypes(IndexedPropDesc[] descList)
descList
- a list of descriptorspublic int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public static boolean compare(java.util.List<IndexedPropDesc> first, java.util.List<IndexedPropDesc> second)
public int hashCode()
hashCode
in class java.lang.Object
public static void toQueryPlan(java.io.StringWriter writer, IndexedPropDesc[] indexedProps)