Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class BinaryTermAttribute

    Implementation for IBinaryTermAttribute.

    Inheritance
    object
    Attribute
    BinaryTermAttribute
    Implements
    IBinaryTermAttribute
    ITermToBytesRefAttribute
    IAttribute
    Inherited Members
    Attribute.ReflectAsString(bool)
    Attribute.ReflectWith(IAttributeReflector)
    Attribute.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Analysis
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public sealed class BinaryTermAttribute : Attribute, IBinaryTermAttribute, ITermToBytesRefAttribute, IAttribute

    Properties

    BytesRef

    Set the current binary value.

    Declaration
    public BytesRef BytesRef { get; set; }
    Property Value
    Type Description
    BytesRef

    Methods

    Clear()

    Clears the values in this Lucene.Net.Util.Attribute and resets it to its default value. If this implementation implements more than one Lucene.Net.Util.Attribute interface it clears all.

    Declaration
    public override void Clear()
    Overrides
    Lucene.Net.Util.Attribute.Clear()

    Clone()

    Shallow clone. Subclasses must override this if they need to clone any members deeply,

    Declaration
    public override object Clone()
    Returns
    Type Description
    object
    Overrides
    Lucene.Net.Util.Attribute.Clone()

    CopyTo(IAttribute)

    Copies the values from this Lucene.Net.Util.Attribute into the passed-in target attribute. The target implementation must support all the Lucene.Net.Util.IAttributes this implementation supports.

    Declaration
    public override void CopyTo(IAttribute target)
    Parameters
    Type Name Description
    IAttribute target
    Overrides
    Lucene.Net.Util.Attribute.CopyTo(Lucene.Net.Util.IAttribute)

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    object other
    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)

    FillBytesRef()

    Updates the bytes Lucene.Net.Util.BytesRef to contain this term's final encoding.

    Declaration
    public void FillBytesRef()

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()

    Implements

    IBinaryTermAttribute
    Lucene.Net.Analysis.TokenAttributes.ITermToBytesRefAttribute
    Lucene.Net.Util.IAttribute
    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.