1 package org.apache.lucene.facet.enhancements;
3 import org.apache.lucene.analysis.TokenStream;
5 import org.apache.lucene.facet.enhancements.CategoryEnhancement;
6 import org.apache.lucene.facet.enhancements.params.EnhancementsIndexingParams;
7 import org.apache.lucene.facet.index.attributes.CategoryAttribute;
8 import org.apache.lucene.facet.index.attributes.CategoryProperty;
9 import org.apache.lucene.facet.index.streaming.CategoryListTokenizer;
10 import org.apache.lucene.facet.taxonomy.TaxonomyWriter;
13 * Licensed to the Apache Software Foundation (ASF) under one or more
14 * contributor license agreements. See the NOTICE file distributed with
15 * this work for additional information regarding copyright ownership.
16 * The ASF licenses this file to You under the Apache License, Version 2.0
17 * (the "License"); you may not use this file except in compliance with
18 * the License. You may obtain a copy of the License at
20 * http://www.apache.org/licenses/LICENSE-2.0
22 * Unless required by applicable law or agreed to in writing, software
23 * distributed under the License is distributed on an "AS IS" BASIS,
24 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25 * See the License for the specific language governing permissions and
26 * limitations under the License.
29 public class CategoryEnhancementDummy1 implements CategoryEnhancement {
31 public boolean generatesCategoryList() {
35 public String getCategoryListTermText() {
39 public CategoryListTokenizer getCategoryListTokenizer(
40 TokenStream tokenizer, EnhancementsIndexingParams indexingParams,
41 TaxonomyWriter taxonomyWriter) {
45 public byte[] getCategoryTokenBytes(CategoryAttribute categoryAttribute) {
49 public Object extractCategoryTokenData(byte[] buffer, int offset, int length) {
53 public Class<? extends CategoryProperty> getRetainableProperty() {
58 public boolean equals(Object o) {
59 if (o instanceof CategoryEnhancementDummy1) {
66 public int hashCode() {
67 return super.hashCode();