1 package org.apache.lucene.facet.index.streaming;
3 import java.io.IOException;
5 import org.apache.lucene.analysis.TokenStream;
7 import org.apache.lucene.facet.index.params.FacetIndexingParams;
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed with
12 * this work for additional information regarding copyright ownership.
13 * The ASF licenses this file to You under the Apache License, Version 2.0
14 * (the "License"); you may not use this file except in compliance with
15 * the License. You may obtain a copy of the License at
17 * http://www.apache.org/licenses/LICENSE-2.0
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
27 * A base class for category list tokenizers, which add category list tokens to
30 * @lucene.experimental
32 public abstract class CategoryListTokenizer extends CategoryTokenizerBase {
35 * @see CategoryTokenizerBase#CategoryTokenizerBase(TokenStream, FacetIndexingParams)
37 public CategoryListTokenizer(TokenStream input,
38 FacetIndexingParams indexingParams) {
39 super(input, indexingParams);
43 * A method invoked once when the input stream begins, for subclass-specific
44 * processing. Subclass implementations must invoke this one, too!
46 protected void handleStartOfInput() throws IOException {
47 // In this class, we do nothing.
51 * A method invoked once when the input stream ends, for subclass-specific
54 protected void handleEndOfInput() throws IOException {
55 // In this class, we do nothing.
59 public void reset() throws IOException {
65 public abstract boolean incrementToken() throws IOException;