org.compass.core.lucene.engine.all
Class AllBoostUtils

java.lang.Object
  extended by org.compass.core.lucene.engine.all.AllBoostUtils

public class AllBoostUtils
extends Object

Utility to write float into and from byte array.

Author:
kimchy

Field Summary
static int _4BIT
           
static int _5BIT
           
static int _6BIT
           
static int _7BIT
           
static int _8_7_6_BIT
           
static int _8_7_BIT
           
static int _FULLY
           
static int _MAX_LEN
           
static int _SECOND_WORD
           
static int BITN7
           
static int BITN8
           
static int FORBYTES
           
 
Method Summary
static float readFloat(byte[] content)
           
static int readInt(byte[] content)
           
static Payload writeFloat(float data)
           
static Payload writeInt(int data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_7BIT

public static final int _7BIT
See Also:
Constant Field Values

_6BIT

public static final int _6BIT
See Also:
Constant Field Values

_5BIT

public static final int _5BIT
See Also:
Constant Field Values

_4BIT

public static final int _4BIT
See Also:
Constant Field Values

BITN7

public static final int BITN7
See Also:
Constant Field Values

BITN8

public static final int BITN8
See Also:
Constant Field Values

FORBYTES

public static final int FORBYTES
See Also:
Constant Field Values

_8_7_BIT

public static final int _8_7_BIT
See Also:
Constant Field Values

_8_7_6_BIT

public static final int _8_7_6_BIT
See Also:
Constant Field Values

_SECOND_WORD

public static final int _SECOND_WORD
See Also:
Constant Field Values

_FULLY

public static final int _FULLY
See Also:
Constant Field Values

_MAX_LEN

public static final int _MAX_LEN
See Also:
Constant Field Values
Method Detail

readFloat

public static float readFloat(byte[] content)

writeFloat

public static Payload writeFloat(float data)

readInt

public static int readInt(byte[] content)

writeInt

public static Payload writeInt(int data)


Copyright (c) 2004-2008 The Compass Project.