public class ByteArrayHashMap
extends org.apache.commons.collections.map.AbstractHashedMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ByteArrayHashMap(int initialCapacity,
float loadFactor,
RowMetaInterface keyMeta)
Constructs an empty ByteArrayHashMap with the specified initial capacity and load factor.
|
ByteArrayHashMap(int initialCapacity,
RowMetaInterface keyMeta)
Constructs an empty ByteArrayHashMap with the specified initial capacity and the default load factor
(0.75).
|
ByteArrayHashMap(RowMetaInterface keyMeta)
Constructs an empty HashMap with the default initial capacity (16) and the default load factor (0.75).
|
Modifier and Type | Method and Description |
---|---|
boolean |
equalsByteArray(byte[] value,
byte[] cmpValue) |
byte[] |
get(byte[] key)
Returns the entry to which the specified key is "mapped", or, in other words, if this index contains an
entry that is equal to the given key, or
null if this is not the case. |
List<byte[]> |
getKeys() |
void |
put(byte[] key,
byte[] value) |
public ByteArrayHashMap(int initialCapacity, float loadFactor, RowMetaInterface keyMeta)
initialCapacity
- the initial capacityloadFactor
- the load factorIllegalArgumentException
- if the initial capacity is negative or the load factor is nonpositivepublic ByteArrayHashMap(int initialCapacity, RowMetaInterface keyMeta)
initialCapacity
- the initial capacity.IllegalArgumentException
- if the initial capacity is negative.public ByteArrayHashMap(RowMetaInterface keyMeta)
public final boolean equalsByteArray(byte[] value, byte[] cmpValue)
public byte[] get(byte[] key)
null
if this is not the case.
More formally, if this index contains an entry e
such that key.equals(e))
, then this method returns
e
; otherwise it returns null
. (There can be at most one such entry.)
key
- The key to look up.KettleValueException
- in case of a value conversion error#put(Object)
,
#insert(Object)
public void put(byte[] key, byte[] value)
public List<byte[]> getKeys()