com.googlecode.javaewah32
Class RunningLengthWord32

java.lang.Object
  extended by com.googlecode.javaewah32.RunningLengthWord32
All Implemented Interfaces:
Cloneable

public final class RunningLengthWord32
extends Object
implements Cloneable

Mostly for internal use.

Since:
0.5.0
Author:
Daniel Lemire

Field Summary
static int largestliteralcount
          largest number of literal words in a run.
static int largestrunninglengthcount
          largest number of clean words in a run
 EWAHCompressedBitmap32 parent
          The array of words.
 int position
          The position in array.
static int runninglengthbits
          number of bits dedicated to marking of the running length of clean words
 
Method Summary
 RunningLengthWord32 clone()
           
 int getNumberOfLiteralWords()
          Gets the number of literal words.
 boolean getRunningBit()
          Gets the running bit.
 int getRunningLength()
          Gets the running length.
 void setNumberOfLiteralWords(int number)
          Sets the number of literal words.
 void setRunningBit(boolean b)
          Sets the running bit.
 void setRunningLength(int number)
          Sets the running length.
 int size()
          Return the size in uncompressed words represented by this running length word.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

public EWAHCompressedBitmap32 parent
The array of words.


position

public int position
The position in array.


runninglengthbits

public static final int runninglengthbits
number of bits dedicated to marking of the running length of clean words

See Also:
Constant Field Values

largestliteralcount

public static final int largestliteralcount
largest number of literal words in a run.

See Also:
Constant Field Values

largestrunninglengthcount

public static final int largestrunninglengthcount
largest number of clean words in a run

See Also:
Constant Field Values
Method Detail

getNumberOfLiteralWords

public int getNumberOfLiteralWords()
Gets the number of literal words.

Returns:
the number of literal words

getRunningBit

public boolean getRunningBit()
Gets the running bit.

Returns:
the running bit

getRunningLength

public int getRunningLength()
Gets the running length.

Returns:
the running length

setNumberOfLiteralWords

public void setNumberOfLiteralWords(int number)
Sets the number of literal words.

Parameters:
number - the new number of literal words

setRunningBit

public void setRunningBit(boolean b)
Sets the running bit.

Parameters:
b - the new running bit

setRunningLength

public void setRunningLength(int number)
Sets the running length.

Parameters:
number - the new running length

size

public int size()
Return the size in uncompressed words represented by this running length word.

Returns:
the int

toString

public String toString()
Overrides:
toString in class Object

clone

public RunningLengthWord32 clone()
                          throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2014. All Rights Reserved.