Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class IdentityEncoder

    Does nothing other than convert the char array to a byte array using the specified encoding.

    Inheritance
    object
    AbstractEncoder
    IdentityEncoder
    Implements
    IPayloadEncoder
    Inherited Members
    AbstractEncoder.Encode(char[])
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Analysis.Payloads
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public class IdentityEncoder : AbstractEncoder, IPayloadEncoder

    Constructors

    IdentityEncoder()

    Does nothing other than convert the char array to a byte array using the specified encoding.

    Declaration
    public IdentityEncoder()

    IdentityEncoder(Encoding)

    Does nothing other than convert the char array to a byte array using the specified encoding.

    Declaration
    public IdentityEncoder(Encoding charset)
    Parameters
    Type Name Description
    Encoding charset

    Fields

    m_charset

    Does nothing other than convert the char array to a byte array using the specified encoding.

    Declaration
    protected Encoding m_charset
    Field Value
    Type Description
    Encoding

    Methods

    Encode(char[], int, int)

    Convert a char array to a Lucene.Net.Util.BytesRef

    Declaration
    public override BytesRef Encode(char[] buffer, int offset, int length)
    Parameters
    Type Name Description
    char[] buffer
    int offset
    int length
    Returns
    Type Description
    BytesRef

    encoded Lucene.Net.Util.BytesRef

    Overrides
    AbstractEncoder.Encode(char[], int, int)

    Implements

    IPayloadEncoder
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.