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
NormsProducerNumericDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getNorms in class NormsProducerIOExceptionpublic void close()
public long ramBytesUsed()
Accountablepublic Collection<Accountable> getChildResources()
AccountableAccountablespublic void checkIntegrity()
throws IOException
NormsProducerNote 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 NormsProducerIOExceptionpublic NormsProducer getMergeInstance() throws IOException
NormsProducer
The default implementation returns this
getMergeInstance in class NormsProducerIOExceptionCopyright © 2000-2017 The Apache Software Foundation. All Rights Reserved.