public final class Norm extends Object
Similarity.computeNorm(FieldInvertState, Norm)
per field.
Normalization values must be consistent within a single field, different
value types are not permitted within a single field. All values set must be
fixed size values ie. all values passed to setBytes(BytesRef)
must have the same length per field.Constructor and Description |
---|
Norm()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
IndexableField |
field()
Returns the
IndexableField representation for this norm |
BytesRef |
getSpare()
Returns a spare
BytesRef |
void |
setByte(byte norm)
Sets a byte norm value
|
void |
setBytes(BytesRef norm)
Sets a fixed byte array norm value
|
void |
setDouble(double norm)
Sets a double norm value
|
void |
setFloat(float norm)
Sets a float norm value
|
void |
setInt(int norm)
Sets a int norm value
|
void |
setLong(long norm)
Sets a long norm value
|
void |
setShort(short norm)
Sets a short norm value
|
DocValues.Type |
type()
Returns the
DocValues.Type for this norm. |
public IndexableField field()
IndexableField
representation for this normpublic DocValues.Type type()
DocValues.Type
for this norm.public void setFloat(float norm)
public void setDouble(double norm)
public void setShort(short norm)
public void setInt(int norm)
public void setLong(long norm)
public void setByte(byte norm)
public void setBytes(BytesRef norm)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.