Example usage for org.apache.lucene.util AttributeSource getAttributeClassesIterator

List of usage examples for org.apache.lucene.util AttributeSource getAttributeClassesIterator

Introduction

In this page you can find the example usage for org.apache.lucene.util AttributeSource getAttributeClassesIterator.

Prototype

public final Iterator<Class<? extends Attribute>> getAttributeClassesIterator() 

Source Link

Document

Returns a new iterator that iterates the attribute classes in the same order they were added in.

Usage

From source file:com.twitter.common.text.token.attribute.TokenGroupAttributeImpl.java

License:Apache License

/**
 * Sets the attribute source for this group. Invalidates any previously set sequence.
 *///w  ww. j  a v  a2s  . c  om
public void setAttributeSource(AttributeSource source) {
    attributeClasses = ImmutableList.copyOf(source.getAttributeClassesIterator());
    this.seq = null;
}