Java org.apache.lucene.util AttributeSource fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.util AttributeSource fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.util AttributeSource.

The text is from its open source code.

Subclass

org.apache.lucene.util.AttributeSource has subclasses.
Click this link to see all its subclasses.

Constructor

AttributeSource()
An AttributeSource using the default attribute factory AttributeFactory#DEFAULT_ATTRIBUTE_FACTORY .

Method

TaddAttribute(Class attClass)
The caller must pass in a Class<?
StatecaptureState()
Captures the state of all Attributes.
voidclearAttributes()
Resets all Attributes in this AttributeSource by calling AttributeImpl#clear() on each Attribute implementation.
AttributeSourcecloneAttributes()
Performs a clone of all AttributeImpl instances returned in a new AttributeSource instance.
voidcopyTo(AttributeSource target)
Copies the contents of this AttributeSource to the given target AttributeSource .
TgetAttribute(Class attClass)
Returns the instance of the passed in Attribute contained in this AttributeSource

The caller must pass in a Class<?

Iterator>getAttributeClassesIterator()
Returns a new iterator that iterates the attribute classes in the same order they were added in.
AttributeFactorygetAttributeFactory()
returns the used AttributeFactory.
booleanhasAttribute(Class attClass)
The caller must pass in a Class<?
voidreflectWith(AttributeReflector reflector)
This method is for introspection of attributes, it should simply add the key/values this AttributeSource holds to the given AttributeReflector .