congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ByteStreamArray.readVarInt64
Code IndexAdd Tabnine to your IDE (free)

How to use
readVarInt64
method
in
com.moz.fiji.schema.util.ByteStreamArray

Best Java code snippets using com.moz.fiji.schema.util.ByteStreamArray.readVarInt64 (Showing top 3 results out of 315)

origin: com.moz.fiji.schema/fiji-schema

/**
 * Reads a variable-length zig-zag encoded signed integer up to 64 bits.
 *
 * @return the read integer as a long.
 * @throws EncodingException on decoding error.
 */
public long readZigZagVarInt64() throws EncodingException {
 final long vint64 = readVarInt64();
 return (vint64 >>> 1) ^ -(vint64 & 1); // decode zig-zag back to two's-complement
}
origin: com.moz.fiji.schema/fiji-schema

 /** {@inheritDoc} */
 @Override
 public Schema decode(ByteStreamArray bstream) throws IOException {
  final long schemaId = bstream.readVarInt64();
  final Schema schema = mSchemaTable.getSchema(schemaId);
  if (null == schema) {
   throw new IOException(
     String.format("Schema with ID %d not found in schema table.", schemaId));
  }
  return schema;
 }
}
origin: com.moz.fiji.schema/fiji-schema

 schemaId = new ByteStreamArray(result.getRow()).readVarInt64();
} catch (EncodingException exn) {
 LOG.error(String.format("Unable to decode schema ID encoded in row key %s: %s",
com.moz.fiji.schema.utilByteStreamArrayreadVarInt64

Javadoc

Reads a variable-length zig-zag encoded signed integer up to 64 bits.

Popular methods of ByteStreamArray

  • <init>
    Constructs a new stream of byte.
  • getOffset
  • longToVarInt64
    Serializes a long integer into bytes using the zig-zag variable-length encoding scheme.
  • readBytes
    Reads the specified number of bytes in the stream.
  • sizeOfLongAsVarInt64
    Reports the size of the zig-zag encoding of the specified long integer.

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JList (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now