public final class FieldInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FieldInfo.IndexOptions
Controls how much information is stored in the postings lists.
|
| Constructor and Description |
|---|
FieldInfo(String name,
boolean indexed,
int number,
boolean storeTermVector,
boolean omitNorms,
boolean storePayloads,
FieldInfo.IndexOptions indexOptions,
DocValues.Type docValues,
DocValues.Type normsType,
Map<String,String> attributes) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
attributes() |
String |
getAttribute(String key)
Get a codec attribute value, or null if it does not exist
|
DocValues.Type |
getDocValuesType() |
FieldInfo.IndexOptions |
getIndexOptions() |
DocValues.Type |
getNormType() |
boolean |
hasDocValues() |
boolean |
hasNorms() |
boolean |
hasPayloads() |
boolean |
hasVectors() |
boolean |
isIndexed() |
boolean |
omitsNorms() |
String |
putAttribute(String key,
String value)
Puts a codec attribute value.
|
public final String name
public final int number
public FieldInfo(String name, boolean indexed, int number, boolean storeTermVector, boolean omitNorms, boolean storePayloads, FieldInfo.IndexOptions indexOptions, DocValues.Type docValues, DocValues.Type normsType, Map<String,String> attributes)
public FieldInfo.IndexOptions getIndexOptions()
public boolean hasDocValues()
public DocValues.Type getDocValuesType()
DocValues.Type of the docValues. this may be null if the field has no docvalues.public DocValues.Type getNormType()
DocValues.Type of the norm. this may be null if the field has no norms.public boolean omitsNorms()
public boolean hasNorms()
public boolean isIndexed()
public boolean hasPayloads()
public boolean hasVectors()
public String getAttribute(String key)
public String putAttribute(String key, String value)
This is a key-value mapping for the field that the codec can use
to store additional metadata, and will be available to the codec
when reading the segment via getAttribute(String)
If a value already exists for the field, it will be replaced with the new value.
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.