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

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

Introduction

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

The text is from its open source code.

Constructor

BytesRefBuilder()
Sole constructor.

Method

voidappend(byte[] b, int off, int len)
Append the provided bytes to this builder.
voidappend(byte b)
Append a single byte to this builder.
voidappend(BytesRef ref)
Append the provided bytes to this builder.
voidappend(BytesRefBuilder builder)
Append the provided bytes to this builder.
byte[]bytes()
Return a reference to the bytes of this builder.
voidclear()
Reset this builder to the empty state.
voidcopyBytes(BytesRef ref)
Replace the content of this builder with the provided bytes.
voidcopyBytes(BytesRefBuilder builder)
Replace the content of this builder with the provided bytes.
voidcopyChars(CharSequence text)
Replace the content of this buffer with UTF-8 encoded bytes that would represent the provided text.
voidcopyChars(CharSequence text, int off, int len)
Replace the content of this buffer with UTF-8 encoded bytes that would represent the provided text.
voidcopyChars(char[] text, int off, int len)
Replace the content of this buffer with UTF-8 encoded bytes that would represent the provided text.
BytesRefget()
Return a BytesRef that points to the internal content of this builder.
voidgrow(int capacity)
Ensure that this builder can hold at least capacity bytes without resizing.
intlength()
Return the number of bytes in this buffer.
voidsetByteAt(int offset, byte b)
Set a byte.
voidsetLength(int length)
Set the length.
BytesReftoBytesRef()
Build a new BytesRef that has the same content as this buffer.