org.apache.hadoop.hdfs.util
Class LongBitFormat

java.lang.Object
  extended by org.apache.hadoop.hdfs.util.LongBitFormat
All Implemented Interfaces:
Serializable

public class LongBitFormat
extends Object
implements Serializable

Bit format in a long.

See Also:
Serialized Form

Constructor Summary
LongBitFormat(String name, LongBitFormat previous, int length, long min)
           
 
Method Summary
 long combine(long value, long record)
          Combine the value to the record.
 long retrieve(long record)
          Retrieve the value from the record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongBitFormat

public LongBitFormat(String name,
                     LongBitFormat previous,
                     int length,
                     long min)
Method Detail

retrieve

public long retrieve(long record)
Retrieve the value from the record.


combine

public long combine(long value,
                    long record)
Combine the value to the record.



Copyright © 2014 Apache Software Foundation. All Rights Reserved.