Tabnine Logo
RowIndexEntry$Serializer.serializeOffsets
Code IndexAdd Tabnine to your IDE (free)

How to use
serializeOffsets
method
in
org.apache.cassandra.db.RowIndexEntry$Serializer

Best Java code snippets using org.apache.cassandra.db.RowIndexEntry$Serializer.serializeOffsets (Showing top 4 results out of 315)

origin: com.strapdata.cassandra/cassandra-all

private void finish() throws IOException
{
  UnfilteredSerializer.serializer.writeEndOfPartition(writer);
  // It's possible we add no rows, just a top level deletion
  if (written == 0)
    return;
  // the last column may have fallen on an index boundary already.  if not, index it explicitly.
  if (firstClustering != null)
    addIndexBlock();
  // If we serialize the IndexInfo objects directly in the code above into 'buffer',
  // we have to write the offsts to these here. The offsets have already been are collected
  // in indexOffsets[]. buffer is != null, if it exceeds Config.column_index_cache_size_in_kb.
  // In the other case, when buffer==null, the offsets are serialized in RowIndexEntry.IndexedEntry.serialize().
  if (buffer != null)
    RowIndexEntry.Serializer.serializeOffsets(buffer, indexOffsets, columnIndexCount);
  // we should always have at least one computed index block, but we only write it out if there is more than that.
  assert columnIndexCount > 0 && headerLength >= 0;
}
origin: jsevellec/cassandra-unit

private void finish() throws IOException
{
  UnfilteredSerializer.serializer.writeEndOfPartition(writer);
  // It's possible we add no rows, just a top level deletion
  if (written == 0)
    return;
  // the last column may have fallen on an index boundary already.  if not, index it explicitly.
  if (firstClustering != null)
    addIndexBlock();
  // If we serialize the IndexInfo objects directly in the code above into 'buffer',
  // we have to write the offsts to these here. The offsets have already been are collected
  // in indexOffsets[]. buffer is != null, if it exceeds Config.column_index_cache_size_in_kb.
  // In the other case, when buffer==null, the offsets are serialized in RowIndexEntry.IndexedEntry.serialize().
  if (buffer != null)
    RowIndexEntry.Serializer.serializeOffsets(buffer, indexOffsets, columnIndexCount);
  // we should always have at least one computed index block, but we only write it out if there is more than that.
  assert columnIndexCount > 0 && headerLength >= 0;
}
origin: org.apache.cassandra/cassandra-all

private void finish() throws IOException
{
  UnfilteredSerializer.serializer.writeEndOfPartition(writer);
  // It's possible we add no rows, just a top level deletion
  if (written == 0)
    return;
  // the last column may have fallen on an index boundary already.  if not, index it explicitly.
  if (firstClustering != null)
    addIndexBlock();
  // If we serialize the IndexInfo objects directly in the code above into 'buffer',
  // we have to write the offsts to these here. The offsets have already been are collected
  // in indexOffsets[]. buffer is != null, if it exceeds Config.column_index_cache_size_in_kb.
  // In the other case, when buffer==null, the offsets are serialized in RowIndexEntry.IndexedEntry.serialize().
  if (buffer != null)
    RowIndexEntry.Serializer.serializeOffsets(buffer, indexOffsets, columnIndexCount);
  // we should always have at least one computed index block, but we only write it out if there is more than that.
  assert columnIndexCount > 0 && headerLength >= 0;
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

private void finish() throws IOException
{
  UnfilteredSerializer.serializer.writeEndOfPartition(writer);
  // It's possible we add no rows, just a top level deletion
  if (written == 0)
    return;
  // the last column may have fallen on an index boundary already.  if not, index it explicitly.
  if (firstClustering != null)
    addIndexBlock();
  // If we serialize the IndexInfo objects directly in the code above into 'buffer',
  // we have to write the offsts to these here. The offsets have already been are collected
  // in indexOffsets[]. buffer is != null, if it exceeds Config.column_index_cache_size_in_kb.
  // In the other case, when buffer==null, the offsets are serialized in RowIndexEntry.IndexedEntry.serialize().
  if (buffer != null)
    RowIndexEntry.Serializer.serializeOffsets(buffer, indexOffsets, columnIndexCount);
  // we should always have at least one computed index block, but we only write it out if there is more than that.
  assert columnIndexCount > 0 && headerLength >= 0;
}
org.apache.cassandra.dbRowIndexEntry$SerializerserializeOffsets

Popular methods of RowIndexEntry$Serializer

  • <init>
  • skip
  • skipPromotedIndex
  • readPosition
    Reads only the data 'position' of the index entry and returns it. Note that this left 'in' in the mi
  • skipForCache
  • deserialize
  • serialize

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ImageIO (javax.imageio)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Sublime Text plugins
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