C# Class Lucene.Net.Analysis.Tokenattributes.CharTermAttribute

Default implementation of CharTermAttribute.
Inheritance: Lucene.Net.Util.Attribute, ICharTermAttribute, ITermToBytesRefAttribute
Show file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
Append ( ICharSequence csq ) : ICharTermAttribute
Append ( ICharSequence csq, int start, int end ) : ICharTermAttribute
Append ( ICharTermAttribute ta ) : ICharTermAttribute
Append ( StringBuilder s ) : ICharTermAttribute
Append ( StringBuilder s, int start, int end ) : ICharTermAttribute
Append ( char c ) : ICharTermAttribute
Append ( char chars, int start, int end ) : ICharTermAttribute
Append ( string s ) : ICharTermAttribute
Append ( string csq, int start, int end ) : ICharTermAttribute
Buffer ( ) : char[]
CharAt ( int index ) : char
CharTermAttribute ( ) : Lucene.Net.Support

Initialize this attribute with empty term text

Clear ( ) : void
Clone ( ) : object
CopyBuffer ( char buffer, int offset, int length ) : void
CopyTo ( Attribute target ) : void
Equals ( object other ) : bool
FillBytesRef ( ) : void
GetHashCode ( ) : int
ReflectWith ( IAttributeReflector reflector ) : void
ResizeBuffer ( int newSize ) : char[]
SetEmpty ( ) : ICharTermAttribute
SetLength ( int length ) : ICharTermAttribute
SubSequence ( int start, int end ) : ICharSequence
ToString ( ) : string

Returns solely the term text as specified by the CharSequence 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 Lucene.Net.Analysis.Token subclass.

this ( int index ) : char

Private Methods

Method Description
AppendNull ( ) : CharTermAttribute
CreateBuffer ( int length ) : char[]
GrowTermBuffer ( int newSize ) : void
InternalResizeBuffer ( int length ) : char[]

Method Details

Append() public method

public Append ( ICharSequence csq ) : ICharTermAttribute
csq ICharSequence
return ICharTermAttribute

Append() public method

public Append ( ICharSequence csq, int start, int end ) : ICharTermAttribute
csq ICharSequence
start int
end int
return ICharTermAttribute

Append() public method

public Append ( ICharTermAttribute ta ) : ICharTermAttribute
ta ICharTermAttribute
return ICharTermAttribute

Append() public method

public Append ( StringBuilder s ) : ICharTermAttribute
s StringBuilder
return ICharTermAttribute

Append() public method

public Append ( StringBuilder s, int start, int end ) : ICharTermAttribute
s StringBuilder
start int
end int
return ICharTermAttribute

Append() public method

public Append ( char c ) : ICharTermAttribute
c char
return ICharTermAttribute

Append() public method

public Append ( char chars, int start, int end ) : ICharTermAttribute
chars char
start int
end int
return ICharTermAttribute

Append() public method

public Append ( string s ) : ICharTermAttribute
s string
return ICharTermAttribute

Append() public method

public Append ( string csq, int start, int end ) : ICharTermAttribute
csq string
start int
end int
return ICharTermAttribute

Buffer() public method

public Buffer ( ) : char[]
return char[]

CharAt() public method

public CharAt ( int index ) : char
index int
return char

CharTermAttribute() public method

Initialize this attribute with empty term text
public CharTermAttribute ( ) : Lucene.Net.Support
return Lucene.Net.Support

Clear() public method

public Clear ( ) : void
return void

Clone() public method

public Clone ( ) : object
return object

CopyBuffer() public method

public CopyBuffer ( char buffer, int offset, int length ) : void
buffer char
offset int
length int
return void

CopyTo() public method

public CopyTo ( Attribute target ) : void
target System.Attribute
return void

Equals() public method

public Equals ( object other ) : bool
other object
return bool

FillBytesRef() public method

public FillBytesRef ( ) : void
return void

GetHashCode() public method

public GetHashCode ( ) : int
return int

ReflectWith() public method

public ReflectWith ( IAttributeReflector reflector ) : void
reflector IAttributeReflector
return void

ResizeBuffer() public method

public ResizeBuffer ( int newSize ) : char[]
newSize int
return char[]

SetEmpty() public method

public SetEmpty ( ) : ICharTermAttribute
return ICharTermAttribute

SetLength() public method

public SetLength ( int length ) : ICharTermAttribute
length int
return ICharTermAttribute

SubSequence() public method

public SubSequence ( int start, int end ) : ICharSequence
start int
end int
return ICharSequence

ToString() public method

Returns solely the term text as specified by the CharSequence 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 Lucene.Net.Analysis.Token subclass.

public ToString ( ) : string
return string

this() public method

public this ( int index ) : char
index int
return char