Show / Hide Table of Contents

    Class CharTermAttribute

    Default implementation of ICharTermAttribute.

    Inheritance
    System.Object
    Attribute
    CharTermAttribute
    Token
    Implements
    ICharTermAttribute
    ICharSequence
    ITermToBytesRefAttribute
    IAttribute
    Inherited Members
    Attribute.ReflectAsString(Boolean)
    Namespace: Lucene.Net.Analysis.TokenAttributes
    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
    Type Description
    BytesRef
    | 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
    Type Name Description
    ICharTermAttribute ta
    Returns
    Type Description
    ICharTermAttribute
    | Improve this Doc View Source

    Append(ICharSequence)

    Declaration
    public ICharTermAttribute Append(ICharSequence csq)
    Parameters
    Type Name Description
    ICharSequence csq
    Returns
    Type Description
    ICharTermAttribute
    | 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
    Type Description
    ICharTermAttribute
    | Improve this Doc View Source

    Append(StringBuilder)

    Declaration
    public ICharTermAttribute Append(StringBuilder s)
    Parameters
    Type Name Description
    StringBuilder s
    Returns
    Type Description
    ICharTermAttribute
    | Improve this Doc View Source

    Append(StringBuilder, Int32, Int32)

    Declaration
    public ICharTermAttribute Append(StringBuilder s, int start, int end)
    Parameters
    Type Name Description
    StringBuilder s
    System.Int32 start
    System.Int32 end
    Returns
    Type Description
    ICharTermAttribute
    | Improve this Doc View Source

    Append(Char)

    Declaration
    public ICharTermAttribute Append(char c)
    Parameters
    Type Name Description
    System.Char c
    Returns
    Type Description
    ICharTermAttribute
    | Improve this Doc View Source

    Append(Char[])

    Declaration
    public ICharTermAttribute Append(char[] chars)
    Parameters
    Type Name Description
    System.Char[] chars
    Returns
    Type Description
    ICharTermAttribute
    | 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
    Type Description
    ICharTermAttribute
    | Improve this Doc View Source

    Append(String)

    Declaration
    public ICharTermAttribute Append(string s)
    Parameters
    Type Name Description
    System.String s
    Returns
    Type Description
    ICharTermAttribute
    | 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
    Type Description
    ICharTermAttribute
    | Improve this Doc View Source

    Clear()

    Declaration
    public override void Clear()
    Overrides
    Attribute.Clear()
    | Improve this Doc View Source

    Clone()

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object
    Overrides
    Attribute.Clone()
    | 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
    Type Name Description
    IAttribute target
    Overrides
    Attribute.CopyTo(IAttribute)
    | 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
    | 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
    | Improve this Doc View Source

    ReflectWith(IAttributeReflector)

    Declaration
    public override void ReflectWith(IAttributeReflector reflector)
    Parameters
    Type Name Description
    IAttributeReflector reflector
    Overrides
    Attribute.ReflectWith(IAttributeReflector)
    | 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
    Type Description
    ICharTermAttribute
    | Improve this Doc View Source

    SetLength(Int32)

    Declaration
    public ICharTermAttribute SetLength(int length)
    Parameters
    Type Name Description
    System.Int32 length
    Returns
    Type Description
    ICharTermAttribute
    | 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
    Type Description
    ICharSequence
    | 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
    Attribute.ToString()

    Implements

    ICharTermAttribute
    ICharSequence
    ITermToBytesRefAttribute
    IAttribute
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)