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

The following examples show how to use org.apache.hadoop.io.WritableComparator#readVInt() . 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 integer from a byte array and returns it.
 * @param bytes byte array with the encoded integer
 * @param start start index
 * @throws java.io.IOException
 * @return deserialized integer
 */
public static int readVInt(byte[] bytes, int start) throws IOException {
  return WritableComparator.readVInt(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 integer from a byte array and returns it.
 * @param bytes byte array with the encoded integer
 * @param start start index
 * @throws java.io.IOException
 * @return deserialized integer
 */
public static int readVInt(byte[] bytes, int start) throws IOException {
  return WritableComparator.readVInt(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 integer from a byte array and returns it.
 * @param bytes byte array with the encoded integer
 * @param start start index
 * @throws java.io.IOException
 * @return deserialized integer
 */
public static int readVInt(byte[] bytes, int start) throws IOException {
  return WritableComparator.readVInt(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 integer from a byte array and returns it.
 * @param bytes byte array with the encoded integer
 * @param start start index
 * @throws java.io.IOException
 * @return deserialized integer
 */
public static int readVInt(byte[] bytes, int start) throws IOException {
  return WritableComparator.readVInt(bytes, start);
}