C# (CSharp) Lucene.Net.Util BytesRefHash - 15 examples found. These are the top rated real world C# (CSharp) examples of Lucene.Net.Util.BytesRefHash extracted from open source projects. You can rate examples to help us improve the quality of examples.
BytesRefHash is a special purpose hash-map like data-structure optimized for BytesRef instances. BytesRefHash maintains mappings of byte arrays to ids (Map<BytesRef,int>) storing the hashed bytes efficiently in continuous storage. The mapping to the id is encapsulated inside BytesRefHash and is guaranteed to be increased for each added BytesRef.
Note: The maximum capacity BytesRef instance passed to #add(BytesRef) must not be longer than ByteBlockPool#BYTE_BLOCK_SIZE-2. The internal storage is limited to 2GB total byte storage.