Java Code Examples for org.apache.hadoop.hbase.util.Bytes.SIZEOF_FLOAT

The following are Jave code examples for showing how to use SIZEOF_FLOAT of the org.apache.hadoop.hbase.util.Bytes class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: ditb   File: RawFloat.java   View Source Code Vote up 4 votes
@Override
public int encodedLength(Float val) { return Bytes.SIZEOF_FLOAT; }
 
Example 2
Project: ditb   File: RawFloat.java   View Source Code Vote up 4 votes
@Override
public int skip(PositionedByteRange src) {
  src.setPosition(src.getPosition() + Bytes.SIZEOF_FLOAT);
  return Bytes.SIZEOF_FLOAT;
}