Checks whether this tree contains a specific key.
Checks whether this tree contains a specific key. The contains method accepts wildcards (either '*' or 'N') for doing a wildcard content check.
Key to check for the existance of.
Returns true if the key is found.
Gets the value of a key that is contained in the tree.
Gets the value of a key that is contained in the tree. This method throws an exception if the key is not found in the tree. This method and all other getters do not take wildcards.
Key to search for the value of.
Returns the value corresponding to this key.
Throws an exception if the key is not in the collection.
search
getIfExists
getOrElse
Gets the value of a key that is contained in the tree, wrapped as an option.
Gets the value of a key that is contained in the tree, wrapped as an option. None is returned if the key is not found. This method and all other getters do not take wildcards.
Key to search for the value of.
Returns the value wrapped in an option. None is returned if the key is not found.
search
getOrElse
get
Gets the value of a key that is contained in the tree.
Gets the value of a key that is contained in the tree. If this key is not found, a user-provided default value is returned. This method and all other getters do not take wildcards.
Key to search for the value of.
Default value to return if the key is not found.
Returns the value corresponding to this key, or a default value if the key is not found.
search
getIfExists
get
Searches for all keys that match a given prefix.
Searches for all keys that match a given prefix. The prefix can include wildcards. The behavior of this method is identical to the other search method.
Key to search for, with wildcards.
Returns a map containing all keys that match this search key, and their values.
suffixSearch
search
Searches for all possible values that match a key, including wildcards.
Searches for all possible values that match a key, including wildcards. Returns the values and keys that match the wildcard in a map.
Key to search for, with wildcards.
Returns a map containing all keys that match this search key, and their values.
suffixSearch
prefixSearch
Returns the number of key/value pairs stored in this trie.
Returns the number of key/value pairs stored in this trie.
The count of key/value pairs in this trie.
Searches for all keys that match a given suffix.
Searches for all keys that match a given suffix. The suffix can include wildcards. The behavior of this method is identical to the other search method.
Key to search for, with wildcards.
Returns a map containing all keys that match this search key, and their values.
prefixSearch
search
This trait represents a prefix trie that stores a mapping between string keys representing DNA sequences, and values of any type. Classes that implement this trait are assumed to be immutable. For DNA sequences, we allow the storage of unambiguous bases ("ACTG"). Search methods accept the unambiguous bases and wildcards ("N" or "*").
The type of the values stored in the trie.