java.lang.Object
com.pervasive.datarush.ports.record.AliasSet
An alias set consists of a set of name aliases and optionally a token order.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this set contains the given aliasbooleancontainsAny(AliasSet other) Returns true if this set contains any of the member of the other setstatic AliasSetCreates a set consisting of the given ordered keystatic AliasSetCreates a set consisting of a single key.static AliasSetCreates a set consisting of an array of keys.static AliasSetcreateSet(String[] keys, TokenOrder order) Creates a set consisting of an array of keys and specified orderstatic AliasSet[]createSets(SortKey[] keys) Creates multiple single-key sets of specified order.static AliasSet[]createSets(String[] keys) Creates multiple single-key sets.booleanfirst()Returns the first member of this setstatic String[]Returns the first keys in each of the given setsReturns the first member of this set, combined with the order to make a SortKeystatic SortKey[]firstSortKeys(AliasSet[] sets) Returns the first sort keys in each of the given setsgetKeys()Returns the aliases in this setgetOrder()Return the order associated with this set.inthashCode()booleanisEmpty()Returns whether this is an empty setiterator()static AliasSet[]remap(AliasSet[] sets, FieldRemapping mapping) Remaps each set according to the given remappingremap(FieldRemapping mapping) Applies the field remapping to the names in this set, returning a new set.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
remap
Applies the field remapping to the names in this set, returning a new set. This set is not modified- Parameters:
mapping- the field remapping- Returns:
- a new set
-
getKeys
Returns the aliases in this set- Returns:
- the aliases in this set
-
getOrder
Return the order associated with this set.- Returns:
- the order. Will never be null but might not be relavant in the context in which this set is used.
-
isEmpty
public boolean isEmpty()Returns whether this is an empty set- Returns:
- whether this is an empty set
-
containsAny
Returns true if this set contains any of the member of the other set- Parameters:
other- the other set- Returns:
- whether the union of this set and the other set is non-empty
-
contains
Returns whether this set contains the given alias- Parameters:
name- the alias- Returns:
- whether this set contains the given alias
-
first
Returns the first member of this set- Returns:
- the first member of this set
-
firstSortKey
Returns the first member of this set, combined with the order to make a SortKey- Returns:
- the first SortKey of this set
-
createSet
Creates a set consisting of a single key. Order defaults to ascending- Parameters:
key- the key- Returns:
- a new set
-
createSet
Creates a set consisting of an array of keys. Order defaults to ascending- Parameters:
keys- the keys- Returns:
- a set consisting of an array of keys
-
createSet
Creates a set consisting of an array of keys and specified order- Parameters:
keys- the keysorder- the order- Returns:
- a set consisting of an array of keys
-
createSet
Creates a set consisting of the given ordered key- Parameters:
key- the key- Returns:
- a new set
-
createSets
Creates multiple single-key sets. Order defaults to ascending.- Parameters:
keys- the keys- Returns:
- the new sets
-
createSets
Creates multiple single-key sets of specified order.- Parameters:
keys- the keys- Returns:
- the new sets
-
first
Returns the first keys in each of the given sets- Parameters:
sets- the sets- Returns:
- the first keys
-
firstSortKeys
Returns the first sort keys in each of the given sets- Parameters:
sets- the sets- Returns:
- the first sort keys
-
remap
Remaps each set according to the given remapping- Parameters:
sets- the sets to remapmapping- the remapping- Returns:
- the remapped sets
-
hashCode
public int hashCode() -
equals
-
toString
-
iterator
-