1 package org.apache.lucene.store.instantiated;
3 import java.io.Serializable;
6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements. See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with
11 * the License. You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
23 * For non package access see {@link org.apache.lucene.index.IndexReader#getFieldNames(org.apache.lucene.index.IndexReader.FieldOption)}
25 class FieldSetting implements Serializable {
28 boolean storeTermVector = false;
29 boolean storeOffsetWithTermVector = false;
30 boolean storePositionWithTermVector = false;
31 boolean storePayloads = false;
33 boolean stored = false;
34 boolean indexed = false;
35 boolean tokenized = false;
41 FieldSetting(String fieldName) {
42 this.fieldName = fieldName;
46 public boolean equals(Object o) {
49 if (o == null || getClass() != o.getClass())
52 final FieldSetting that = (FieldSetting) o;
54 return fieldName.equals(that.fieldName);
59 public int hashCode() {
60 return fieldName.hashCode();