public class UndeadNormsProducer extends NormsProducer
Modifier and Type | Field and Description |
---|---|
static NormsProducer |
INSTANCE
Use this instance
|
static String |
LEGACY_UNDEAD_NORMS_KEY
Used to bring undead norms back to life.
|
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity()
Checks consistency of this producer
|
void |
close() |
Collection<Accountable> |
getChildResources()
Returns nested resources of this class.
|
NormsProducer |
getMergeInstance()
Returns an instance optimized for merging.
|
NumericDocValues |
getNorms(FieldInfo field)
Returns
NumericDocValues for this field. |
static boolean |
isUndead(FieldInfo fieldInfo)
Returns true if this field has undead norms.
|
static boolean |
isUndeadArmy(FieldInfos fieldInfos) |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
static void |
setUndead(Map<String,String> attributes)
Call this to note that the field with these attributes has undead norms.
|
String |
toString() |
public static final String LEGACY_UNDEAD_NORMS_KEY
public static final NormsProducer INSTANCE
public static boolean isUndeadArmy(FieldInfos fieldInfos)
public static boolean isUndead(FieldInfo fieldInfo)
public static void setUndead(Map<String,String> attributes)
public NumericDocValues getNorms(FieldInfo field) throws IOException
NormsProducer
NumericDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getNorms
in class NormsProducer
IOException
public void close()
public long ramBytesUsed()
Accountable
public Collection<Accountable> getChildResources()
Accountable
Accountables
public void checkIntegrity() throws IOException
NormsProducer
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
checkIntegrity
in class NormsProducer
IOException
public NormsProducer getMergeInstance() throws IOException
NormsProducer
The default implementation returns this
getMergeInstance
in class NormsProducer
IOException
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.