Class CharTermAttribute
Inheritance
System.Object
CharTermAttribute
Implements
J2N.Text.ICharSequence
J2N.Text.IAppendable
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, IAppendable
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(ICharSequence)
Declaration
public CharTermAttribute Append(ICharSequence value)
Parameters
Type |
Name |
Description |
J2N.Text.ICharSequence |
value |
|
Returns
|
Improve this Doc
View Source
Append(ICharSequence, Int32, Int32)
Declaration
public CharTermAttribute Append(ICharSequence value, int startIndex, int charCount)
Parameters
Type |
Name |
Description |
J2N.Text.ICharSequence |
value |
|
System.Int32 |
startIndex |
|
System.Int32 |
charCount |
|
Returns
|
Improve this Doc
View Source
Append(ICharTermAttribute)
Declaration
public CharTermAttribute Append(ICharTermAttribute value)
Parameters
Returns
|
Improve this Doc
View Source
Append(Char)
Declaration
public CharTermAttribute Append(char value)
Parameters
Type |
Name |
Description |
System.Char |
value |
|
Returns
|
Improve this Doc
View Source
Append(Char[])
Declaration
public CharTermAttribute Append(char[] value)
Parameters
Type |
Name |
Description |
System.Char[] |
value |
|
Returns
|
Improve this Doc
View Source
Append(Char[], Int32, Int32)
Declaration
public CharTermAttribute Append(char[] value, int startIndex, int charCount)
Parameters
Type |
Name |
Description |
System.Char[] |
value |
|
System.Int32 |
startIndex |
|
System.Int32 |
charCount |
|
Returns
|
Improve this Doc
View Source
Append(String)
Declaration
public CharTermAttribute Append(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
|
Improve this Doc
View Source
Append(String, Int32, Int32)
Declaration
public CharTermAttribute Append(string value, int startIndex, int charCount)
Parameters
Type |
Name |
Description |
System.String |
value |
|
System.Int32 |
startIndex |
|
System.Int32 |
charCount |
|
Returns
|
Improve this Doc
View Source
Append(StringBuilder)
Declaration
public CharTermAttribute Append(StringBuilder value)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
value |
|
Returns
|
Improve this Doc
View Source
Append(StringBuilder, Int32, Int32)
Declaration
public CharTermAttribute Append(StringBuilder value, int startIndex, int charCount)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
value |
|
System.Int32 |
startIndex |
|
System.Int32 |
charCount |
|
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 CharTermAttribute SetEmpty()
Returns
|
Improve this Doc
View Source
SetLength(Int32)
Declaration
public CharTermAttribute SetLength(int length)
Parameters
Type |
Name |
Description |
System.Int32 |
length |
|
Returns
|
Improve this Doc
View Source
Subsequence(Int32, Int32)
Declaration
public ICharSequence Subsequence(int startIndex, int length)
Parameters
Type |
Name |
Description |
System.Int32 |
startIndex |
|
System.Int32 |
length |
|
Returns
Type |
Description |
J2N.Text.ICharSequence |
|
|
Improve this Doc
View Source
ToString()
Returns solely the term text as specified by the
J2N.Text.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
Explicit Interface Implementations
|
Improve this Doc
View Source
IAppendable.Append(ICharSequence)
Declaration
IAppendable IAppendable.Append(ICharSequence value)
Parameters
Type |
Name |
Description |
J2N.Text.ICharSequence |
value |
|
Returns
Type |
Description |
J2N.Text.IAppendable |
|
|
Improve this Doc
View Source
IAppendable.Append(ICharSequence, Int32, Int32)
Declaration
IAppendable IAppendable.Append(ICharSequence value, int startIndex, int count)
Parameters
Type |
Name |
Description |
J2N.Text.ICharSequence |
value |
|
System.Int32 |
startIndex |
|
System.Int32 |
count |
|
Returns
Type |
Description |
J2N.Text.IAppendable |
|
|
Improve this Doc
View Source
IAppendable.Append(Char)
Declaration
IAppendable IAppendable.Append(char value)
Parameters
Type |
Name |
Description |
System.Char |
value |
|
Returns
Type |
Description |
J2N.Text.IAppendable |
|
|
Improve this Doc
View Source
IAppendable.Append(Char[])
Declaration
IAppendable IAppendable.Append(char[] value)
Parameters
Type |
Name |
Description |
System.Char[] |
value |
|
Returns
Type |
Description |
J2N.Text.IAppendable |
|
|
Improve this Doc
View Source
IAppendable.Append(Char[], Int32, Int32)
Declaration
IAppendable IAppendable.Append(char[] value, int startIndex, int count)
Parameters
Type |
Name |
Description |
System.Char[] |
value |
|
System.Int32 |
startIndex |
|
System.Int32 |
count |
|
Returns
Type |
Description |
J2N.Text.IAppendable |
|
|
Improve this Doc
View Source
IAppendable.Append(String)
Declaration
IAppendable IAppendable.Append(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Type |
Description |
J2N.Text.IAppendable |
|
|
Improve this Doc
View Source
IAppendable.Append(String, Int32, Int32)
Declaration
IAppendable IAppendable.Append(string value, int startIndex, int count)
Parameters
Type |
Name |
Description |
System.String |
value |
|
System.Int32 |
startIndex |
|
System.Int32 |
count |
|
Returns
Type |
Description |
J2N.Text.IAppendable |
|
|
Improve this Doc
View Source
IAppendable.Append(StringBuilder)
Declaration
IAppendable IAppendable.Append(StringBuilder value)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
value |
|
Returns
Type |
Description |
J2N.Text.IAppendable |
|
|
Improve this Doc
View Source
IAppendable.Append(StringBuilder, Int32, Int32)
Declaration
IAppendable IAppendable.Append(StringBuilder value, int startIndex, int count)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
value |
|
System.Int32 |
startIndex |
|
System.Int32 |
count |
|
Returns
Type |
Description |
J2N.Text.IAppendable |
|
|
Improve this Doc
View Source
ICharSequence.HasValue
Declaration
bool ICharSequence.HasValue { get; }
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ICharSequence.Item[Int32]
Declaration
char ICharSequence.this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.Char |
|
|
Improve this Doc
View Source
ICharSequence.Length
Declaration
int ICharSequence.Length { get; }
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ICharTermAttribute.Append(ICharSequence)
Declaration
ICharTermAttribute ICharTermAttribute.Append(ICharSequence value)
Parameters
Type |
Name |
Description |
J2N.Text.ICharSequence |
value |
|
Returns
|
Improve this Doc
View Source
ICharTermAttribute.Append(ICharSequence, Int32, Int32)
Declaration
ICharTermAttribute ICharTermAttribute.Append(ICharSequence value, int startIndex, int count)
Parameters
Type |
Name |
Description |
J2N.Text.ICharSequence |
value |
|
System.Int32 |
startIndex |
|
System.Int32 |
count |
|
Returns
|
Improve this Doc
View Source
ICharTermAttribute.Append(ICharTermAttribute)
Declaration
ICharTermAttribute ICharTermAttribute.Append(ICharTermAttribute value)
Parameters
Returns
|
Improve this Doc
View Source
ICharTermAttribute.Append(Char)
Declaration
ICharTermAttribute ICharTermAttribute.Append(char value)
Parameters
Type |
Name |
Description |
System.Char |
value |
|
Returns
|
Improve this Doc
View Source
ICharTermAttribute.Append(Char[])
Declaration
ICharTermAttribute ICharTermAttribute.Append(char[] value)
Parameters
Type |
Name |
Description |
System.Char[] |
value |
|
Returns
|
Improve this Doc
View Source
ICharTermAttribute.Append(Char[], Int32, Int32)
Declaration
ICharTermAttribute ICharTermAttribute.Append(char[] value, int startIndex, int count)
Parameters
Type |
Name |
Description |
System.Char[] |
value |
|
System.Int32 |
startIndex |
|
System.Int32 |
count |
|
Returns
|
Improve this Doc
View Source
ICharTermAttribute.Append(String)
Declaration
ICharTermAttribute ICharTermAttribute.Append(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
|
Improve this Doc
View Source
ICharTermAttribute.Append(String, Int32, Int32)
Declaration
ICharTermAttribute ICharTermAttribute.Append(string value, int startIndex, int count)
Parameters
Type |
Name |
Description |
System.String |
value |
|
System.Int32 |
startIndex |
|
System.Int32 |
count |
|
Returns
|
Improve this Doc
View Source
ICharTermAttribute.Append(StringBuilder)
Declaration
ICharTermAttribute ICharTermAttribute.Append(StringBuilder value)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
value |
|
Returns
|
Improve this Doc
View Source
ICharTermAttribute.Append(StringBuilder, Int32, Int32)
Declaration
ICharTermAttribute ICharTermAttribute.Append(StringBuilder value, int startIndex, int count)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
value |
|
System.Int32 |
startIndex |
|
System.Int32 |
count |
|
Returns
|
Improve this Doc
View Source
ICharTermAttribute.Buffer
Declaration
char[] ICharTermAttribute.Buffer { get; }
Returns
Type |
Description |
System.Char[] |
|
|
Improve this Doc
View Source
ICharTermAttribute.CopyBuffer(Char[], Int32, Int32)
Declaration
void ICharTermAttribute.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
ICharTermAttribute.Item[Int32]
Declaration
char ICharTermAttribute.this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.Char |
|
|
Improve this Doc
View Source
ICharTermAttribute.Length
Declaration
int ICharTermAttribute.Length { get; set; }
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ICharTermAttribute.ResizeBuffer(Int32)
Declaration
char[] ICharTermAttribute.ResizeBuffer(int newSize)
Parameters
Type |
Name |
Description |
System.Int32 |
newSize |
|
Returns
Type |
Description |
System.Char[] |
|
|
Improve this Doc
View Source
ICharTermAttribute.SetEmpty()
Declaration
ICharTermAttribute ICharTermAttribute.SetEmpty()
Returns
|
Improve this Doc
View Source
ICharTermAttribute.SetLength(Int32)
Declaration
ICharTermAttribute ICharTermAttribute.SetLength(int length)
Parameters
Type |
Name |
Description |
System.Int32 |
length |
|
Returns
Implements
J2N.Text.ICharSequence
J2N.Text.IAppendable