Java org.apache.lucene.util BytesRefHash fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.util BytesRefHash fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.util BytesRefHash.

The text is from its open source code.

Constructor

BytesRefHash()
Creates a new BytesRefHash with a ByteBlockPool using a DirectAllocator .
BytesRefHash(ByteBlockPool pool)
Creates a new BytesRefHash

Method

intadd(BytesRef bytes)
Adds a new BytesRef
intfind(BytesRef bytes)
Returns the id of the given BytesRef .
BytesRefget(int bytesID, BytesRef ref)
Populates and returns a BytesRef with the bytes for the given bytesID.
intsize()
Returns the number of BytesRef values in this BytesRefHash .