public class IndexedPropDesc extends Object implements Comparable
Constructor and Description |
---|
IndexedPropDesc(String indexPropName,
Class coercionType)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
compare(List<IndexedPropDesc> first,
List<IndexedPropDesc> second) |
int |
compareTo(Object o) |
boolean |
equals(Object o) |
Class |
getCoercionType()
Returns the coercion type of key to index field.
|
static Class[] |
getCoercionTypes(IndexedPropDesc[] descList)
Returns the key coercion types.
|
static String[] |
getIndexProperties(IndexedPropDesc[] descList)
Returns the index property names given an array of descriptors.
|
static String[] |
getIndexProperties(List<IndexedPropDesc> descList) |
String |
getIndexPropName()
Returns the property name of the indexed field.
|
static int |
getPropertyIndex(String propertyName,
IndexedPropDesc[] descList) |
int |
hashCode() |
static void |
toQueryPlan(StringWriter writer,
IndexedPropDesc[] indexedProps) |
public String getIndexPropName()
public Class getCoercionType()
public static String[] getIndexProperties(IndexedPropDesc[] descList)
descList
- descriptors of joined propertiespublic static String[] getIndexProperties(List<IndexedPropDesc> descList)
public static int getPropertyIndex(String propertyName, IndexedPropDesc[] descList)
public static Class[] getCoercionTypes(IndexedPropDesc[] descList)
descList
- a list of descriptorspublic int compareTo(Object o)
compareTo
in interface Comparable
public static boolean compare(List<IndexedPropDesc> first, List<IndexedPropDesc> second)
public static void toQueryPlan(StringWriter writer, IndexedPropDesc[] indexedProps)