Interface ICharTermAttribute
The term text of a Token.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public interface ICharTermAttribute : IAttribute, ICharSequence
Properties
Name | Description |
---|---|
Buffer | Returns the internal termBuffer character array which you can then directly alter. If the array is too small for your token, use ResizeBuffer(Int32) to increase it. After altering the buffer be sure to call SetLength(Int32) to record the number of valid characters that were placed into the termBuffer. NOTE: The returned buffer may be larger than the valid Length. |
Item[Int32] | |
Length | Gets or Sets the number of valid characters (in the termBuffer array. SetLength(Int32) |
Methods
Name | Description |
---|---|
Append(ICharTermAttribute) | Appends the contents of the other ICharTermAttribute to this character sequence. The characters of the ICharTermAttribute argument are appended, in order, increasing the length of
this sequence by the length of the argument. If argument is |
Append(ICharSequence) | Appends the contents of the ICharSequence to this character sequence.
The characters of the ICharSequence argument are appended, in order, increasing the length of
this sequence by the length of the argument. If argument is |
Append(ICharSequence, Int32, Int32) | Appends the contents of the ICharSequence to this character sequence, beginning and ending at the specified indices.
The characters of the ICharSequence argument are appended, in order, increasing the length of
this sequence by the length of the argument. If argument is |
Append(StringBuilder) | Appends the specified
The characters of the |
Append(StringBuilder, Int32, Int32) | Appends the specified The characters of the |
Append(Char) | Appends the supplied |
Append(Char[]) | Appends the contents of the char[] array to this character sequence.
The characters of the char[] argument are appended, in order, increasing the length of
this sequence by the length of the argument. If argument is |
Append(Char[], Int32, Int32) | Appends the contents of the char[] array to this character sequence, beginning and ending at the specified indices.
The characters of the char[] argument are appended, in order, increasing the length of
this sequence by the length of the argument. If argument is |
Append(String) | Appends the specified
The characters of the |
Append(String, Int32, Int32) | Appends the contents of the
The characters of the |
CopyBuffer(Char[], Int32, Int32) | Copies the contents of buffer, starting at offset for length characters, into the termBuffer array. |
ResizeBuffer(Int32) | Grows the termBuffer to at least size |
SetEmpty() | Sets the length of the termBuffer to zero. Use this method before appending contents. |
SetLength(Int32) | Set number of valid characters (length of the term) in the termBuffer array. Use this to truncate the termBuffer or to synchronize with external manipulation of the termBuffer. Note: to grow the size of the array, use ResizeBuffer(Int32) first. NOTE: This is exactly the same operation as calling the Length setter, the primary difference is that this method returns a reference to the current object so it can be chained.
|