Java Code Examples for org.apache.hadoop.io.WritableComparator#readVLong()

The following examples show how to use org.apache.hadoop.io.WritableComparator#readVLong() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Utils.java    From hadoop with Apache License 2.0 2 votes vote down vote up
/**
 * Reads a zero-compressed encoded long from a byte array and returns it.
 * @param bytes byte array with decode long
 * @param start starting index
 * @throws java.io.IOException
 * @return deserialized long
 */
public static long readVLong(byte[] bytes, int start) throws IOException {
  return WritableComparator.readVLong(bytes, start);
}
 
Example 2
Source File: Utils.java    From big-c with Apache License 2.0 2 votes vote down vote up
/**
 * Reads a zero-compressed encoded long from a byte array and returns it.
 * @param bytes byte array with decode long
 * @param start starting index
 * @throws java.io.IOException
 * @return deserialized long
 */
public static long readVLong(byte[] bytes, int start) throws IOException {
  return WritableComparator.readVLong(bytes, start);
}
 
Example 3
Source File: Utils.java    From RDFS with Apache License 2.0 2 votes vote down vote up
/**
 * Reads a zero-compressed encoded long from a byte array and returns it.
 * @param bytes byte array with decode long
 * @param start starting index
 * @throws java.io.IOException
 * @return deserialized long
 */
public static long readVLong(byte[] bytes, int start) throws IOException {
  return WritableComparator.readVLong(bytes, start);
}
 
Example 4
Source File: Utils.java    From hadoop-gpu with Apache License 2.0 2 votes vote down vote up
/**
 * Reads a zero-compressed encoded long from a byte array and returns it.
 * @param bytes byte array with decode long
 * @param start starting index
 * @throws java.io.IOException
 * @return deserialized long
 */
public static long readVLong(byte[] bytes, int start) throws IOException {
  return WritableComparator.readVLong(bytes, start);
}