|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.index.Norm
public final class Norm
Stores the normalization value computed in
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 Summary | |
---|---|
Norm()
Sole constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Norm()
Method Detail |
---|
public IndexableField field()
IndexableField
representation for this norm
public DocValues.Type type()
DocValues.Type
for this norm.
public BytesRef getSpare()
BytesRef
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |