Class BytesRefArray
A simple append only random-access BytesRef array that stores full copies of the appended bytes in a ByteBlockPool.
Note: this class is not Thread-Safe!
@lucene.internal @lucene.experimental
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class BytesRefArray : object
Constructors
Name | Description |
---|---|
BytesRefArray(Counter) | Creates a new BytesRefArray with a counter to track allocated bytes |
Properties
Name | Description |
---|---|
Length | Returns the current size of this BytesRefArray. NOTE: This was size() in Lucene. |
Methods
Name | Description |
---|---|
Append(BytesRef) | Appends a copy of the given BytesRef to this BytesRefArray. |
Clear() | Clears this BytesRefArray |
Get(BytesRef, Int32) | Returns the n'th element of this BytesRefArray |
GetIterator() | Sugar for GetIterator(IComparer<BytesRef>) with a |
GetIterator(IComparer<BytesRef>) | Returns a IBytesRefIterator with point in time semantics. The iterator provides access to all so far appended BytesRef instances.
If a non This is a non-destructive operation. |