Modifier and Type | Method and Description |
---|---|
boolean |
contains(String name)
Returns whether this set contains the given alias
|
boolean |
containsAny(AliasSet other)
Returns true if this set contains any of the member of the other set
|
static AliasSet |
createSet(SortKey key)
Creates a set consisting of the given ordered key
|
static AliasSet |
createSet(String key)
Creates a set consisting of a single key.
|
static AliasSet |
createSet(String[] keys)
Creates a set consisting of an array of keys.
|
static AliasSet |
createSet(String[] keys,
TokenOrder order)
Creates a set consisting of an array of keys and specified order
|
static AliasSet[] |
createSets(SortKey[] keys)
Creates multiple single-key sets of specified order.
|
static AliasSet[] |
createSets(String[] keys)
Creates multiple single-key sets.
|
boolean |
equals(Object o) |
String |
first()
Returns the first member of this set
|
static String[] |
first(AliasSet[] sets)
Returns the first keys in each of the given sets
|
SortKey |
firstSortKey()
Returns the first member of this set, combined with the order to make a SortKey
|
static SortKey[] |
firstSortKeys(AliasSet[] sets)
Returns the first sort keys in each of the given sets
|
Set<String> |
getKeys()
Returns the aliases in this set
|
TokenOrder |
getOrder()
Return the order associated with this set.
|
int |
hashCode() |
boolean |
isEmpty()
Returns whether this is an empty set
|
Iterator<String> |
iterator() |
static AliasSet[] |
remap(AliasSet[] sets,
FieldRemapping mapping)
Remaps each set according to the given remapping
|
AliasSet |
remap(FieldRemapping mapping)
Applies the field remapping to the names in this set, returning a new set.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public AliasSet remap(FieldRemapping mapping)
mapping
- the field remappingpublic Set<String> getKeys()
public TokenOrder getOrder()
public boolean isEmpty()
public boolean containsAny(AliasSet other)
other
- the other setpublic boolean contains(String name)
name
- the aliaspublic String first()
public SortKey firstSortKey()
public static AliasSet createSet(String key)
key
- the keypublic static AliasSet createSet(String[] keys)
keys
- the keyspublic static AliasSet createSet(String[] keys, TokenOrder order)
keys
- the keysorder
- the orderpublic static AliasSet createSet(SortKey key)
key
- the keypublic static AliasSet[] createSets(String[] keys)
keys
- the keyspublic static AliasSet[] createSets(SortKey[] keys)
keys
- the keyspublic static String[] first(AliasSet[] sets)
sets
- the setspublic static SortKey[] firstSortKeys(AliasSet[] sets)
sets
- the setspublic static AliasSet[] remap(AliasSet[] sets, FieldRemapping mapping)
sets
- the sets to remapmapping
- the remappingCopyright © 2020 Actian Corporation. All rights reserved.