|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.cas.impl.FSIndexComparatorImpl
public class FSIndexComparatorImpl
| Field Summary |
|---|
| Fields inherited from interface org.apache.uima.cas.admin.FSIndexComparator |
|---|
FEATURE_KEY, REVERSE_STANDARD_COMPARE, STANDARD_COMPARE, TYPE_ORDER_KEY |
| Constructor Summary | |
|---|---|
FSIndexComparatorImpl(CASImpl cas)
|
|
| Method Summary | |
|---|---|
int |
addKey(Feature feat,
int compareKey)
Add a new key. |
int |
addKey(LinearTypeOrder typeOrder,
int compareKey)
|
int |
compareTo(FSIndexComparator o)
|
boolean |
equals(java.lang.Object o)
Test for equality against another FSIndexComparator
true iff the
comparators have the same keys and comparators. |
int |
getKeyComparator(int key)
Get the comparator for this key. |
Feature |
getKeyFeature(int key)
Get the feature for this key. |
int |
getKeyType(int key)
|
LinearTypeOrder |
getKeyTypeOrder(int key)
|
int |
getNumberOfKeys()
Return the number of keys. |
Type |
getType()
Get the type of this comparator. |
int |
hashCode()
|
boolean |
isValid()
Validate that this comparator is valid with respect to the type system. |
void |
setType(Type type)
Set the type of this comparator. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FSIndexComparatorImpl(CASImpl cas)
| Method Detail |
|---|
public void setType(Type type)
FSIndexComparator
setType in interface FSIndexComparatortype - The type of the index.public Type getType()
FSIndexComparator
getType in interface FSIndexComparator
public int addKey(Feature feat,
int compareKey)
FSIndexComparator
addKey in interface FSIndexComparatorfeat - The key feature.compareKey - The way to compare the key values.
public int addKey(LinearTypeOrder typeOrder,
int compareKey)
addKey in interface FSIndexComparatorpublic int getKeyType(int key)
getKeyType in interface FSIndexComparatorpublic int getNumberOfKeys()
FSIndexComparator
getNumberOfKeys in interface FSIndexComparatorpublic Feature getKeyFeature(int key)
FSIndexComparator
getKeyFeature in interface FSIndexComparatorkey - The number of the key.
null, else.public LinearTypeOrder getKeyTypeOrder(int key)
public int getKeyComparator(int key)
FSIndexComparator
getKeyComparator in interface FSIndexComparatorkey - The number of the key.
-1, else.public boolean equals(java.lang.Object o)
FSIndexComparatorFSIndexComparator
true iff the
comparators have the same keys and comparators.
equals in interface FSIndexComparatorequals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isValid()
FSIndexComparator
isValid in interface FSIndexComparatortrue iff all key features are appropriate for the type of this
comparator.public int compareTo(FSIndexComparator o)
compareTo in interface java.lang.Comparable<FSIndexComparator>Comparable.compareTo(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||