Method Add
Add(BytesRef)
Adds a new BytesRef
Declaration
public int Add(BytesRef bytes)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | bytes | The bytes to hash |
Returns
Type | Description |
---|---|
System.Int32 | The id the given bytes are hashed if there was no mapping for the
given bytes, otherwise |
Exceptions
Type | Condition |
---|---|
BytesRefHash.MaxBytesLengthExceededException | if the given bytes are > 2 + BYTE_BLOCK_SIZE |