Class CharTermAttribute
Inheritance
System.Object
CharTermAttribute
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Lucene.Net.dll
Syntax
public class CharTermAttribute : Attribute, ICharTermAttribute, ICharSequence, ITermToBytesRefAttribute, IAttribute
Constructors
|
Improve this Doc
View Source
CharTermAttribute()
Initialize this attribute with empty term text
Declaration
public CharTermAttribute()
Properties
|
Improve this Doc
View Source
Buffer
Declaration
public char[] Buffer { get; }
Property Value
Type |
Description |
System.Char[] |
|
|
Improve this Doc
View Source
BytesRef
Declaration
public virtual BytesRef BytesRef { get; }
Property Value
|
Improve this Doc
View Source
Item[Int32]
Declaration
public char this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Type |
Description |
System.Char |
|
|
Improve this Doc
View Source
Length
Declaration
public int Length { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Append(ICharTermAttribute)
Declaration
public ICharTermAttribute Append(ICharTermAttribute ta)
Parameters
Returns
|
Improve this Doc
View Source
Append(ICharSequence)
Declaration
public ICharTermAttribute Append(ICharSequence csq)
Parameters
Returns
|
Improve this Doc
View Source
Append(ICharSequence, Int32, Int32)
Declaration
public ICharTermAttribute Append(ICharSequence csq, int start, int end)
Parameters
Type |
Name |
Description |
ICharSequence |
csq |
|
System.Int32 |
start |
|
System.Int32 |
end |
|
Returns
|
Improve this Doc
View Source
Append(Char)
Declaration
public ICharTermAttribute Append(char c)
Parameters
Type |
Name |
Description |
System.Char |
c |
|
Returns
|
Improve this Doc
View Source
Append(Char[])
Declaration
public ICharTermAttribute Append(char[] chars)
Parameters
Type |
Name |
Description |
System.Char[] |
chars |
|
Returns
|
Improve this Doc
View Source
Append(Char[], Int32, Int32)
Declaration
public ICharTermAttribute Append(char[] chars, int start, int end)
Parameters
Type |
Name |
Description |
System.Char[] |
chars |
|
System.Int32 |
start |
|
System.Int32 |
end |
|
Returns
|
Improve this Doc
View Source
Append(String)
Declaration
public ICharTermAttribute Append(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
|
Improve this Doc
View Source
Append(String, Int32, Int32)
Declaration
public ICharTermAttribute Append(string csq, int start, int end)
Parameters
Type |
Name |
Description |
System.String |
csq |
|
System.Int32 |
start |
|
System.Int32 |
end |
|
Returns
|
Improve this Doc
View Source
Append(StringBuilder)
Declaration
public ICharTermAttribute Append(StringBuilder s)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
s |
|
Returns
|
Improve this Doc
View Source
Append(StringBuilder, Int32, Int32)
Declaration
public ICharTermAttribute Append(StringBuilder s, int start, int end)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
s |
|
System.Int32 |
start |
|
System.Int32 |
end |
|
Returns
|
Improve this Doc
View Source
Clear()
Declaration
public override void Clear()
Overrides
|
Improve this Doc
View Source
Clone()
Declaration
public override object Clone()
Returns
Type |
Description |
System.Object |
|
Overrides
|
Improve this Doc
View Source
CopyBuffer(Char[], Int32, Int32)
Declaration
public void CopyBuffer(char[] buffer, int offset, int length)
Parameters
Type |
Name |
Description |
System.Char[] |
buffer |
|
System.Int32 |
offset |
|
System.Int32 |
length |
|
|
Improve this Doc
View Source
CopyTo(IAttribute)
Declaration
public override void CopyTo(IAttribute target)
Parameters
Overrides
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
FillBytesRef()
Declaration
public virtual void FillBytesRef()
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
ReflectWith(IAttributeReflector)
Declaration
public override void ReflectWith(IAttributeReflector reflector)
Parameters
Overrides
|
Improve this Doc
View Source
ResizeBuffer(Int32)
Declaration
public char[] ResizeBuffer(int newSize)
Parameters
Type |
Name |
Description |
System.Int32 |
newSize |
|
Returns
Type |
Description |
System.Char[] |
|
|
Improve this Doc
View Source
SetEmpty()
Declaration
public ICharTermAttribute SetEmpty()
Returns
|
Improve this Doc
View Source
SetLength(Int32)
Declaration
public ICharTermAttribute SetLength(int length)
Parameters
Type |
Name |
Description |
System.Int32 |
length |
|
Returns
|
Improve this Doc
View Source
SubSequence(Int32, Int32)
Declaration
public ICharSequence SubSequence(int start, int end)
Parameters
Type |
Name |
Description |
System.Int32 |
start |
|
System.Int32 |
end |
|
Returns
|
Improve this Doc
View Source
ToString()
Returns solely the term text as specified by the
ICharSequence interface.
this method changed the behavior with Lucene 3.1,
before it returned a String representation of the whole
term with all attributes.
this affects especially the
Token subclass.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
Implements
Extension Methods