Tabnine Logo
RowIndexEntry.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.cassandra.db.RowIndexEntry
constructor

Best Java code snippets using org.apache.cassandra.db.RowIndexEntry.<init> (Showing top 18 results out of 315)

origin: com.facebook.presto.cassandra/cassandra-server

public static RowIndexEntry create(long position, DeletionTime deletionTime, ColumnIndex index)
{
  assert index != null;
  assert deletionTime != null;
  // we only consider the columns summary when determining whether to create an IndexedEntry,
  // since if there are insufficient columns to be worth indexing we're going to seek to
  // the beginning of the row anyway, so we might as well read the tombstone there as well.
  if (index.columnsIndex.size() > 1)
    return new IndexedEntry(position, deletionTime, index.columnsIndex);
  else
    return new RowIndexEntry(position);
}
origin: com.strapdata.cassandra/cassandra-all

                  indexedPartSize, idxInfoSerializer);
return new RowIndexEntry<>(dataFilePosition);
origin: com.facebook.presto.cassandra/cassandra-server

public RowIndexEntry deserialize(DataInput in, Descriptor.Version version) throws IOException
{
  long position = in.readLong();
  int size = in.readInt();
  if (size > 0)
  {
    DeletionTime deletionTime = DeletionTime.serializer.deserialize(in);
    int entries = in.readInt();
    ISerializer<IndexHelper.IndexInfo> idxSerializer = type.indexSerializer();
    List<IndexHelper.IndexInfo> columnsIndex = new ArrayList<IndexHelper.IndexInfo>(entries);
    for (int i = 0; i < entries; i++)
      columnsIndex.add(idxSerializer.deserialize(in));
    return new IndexedEntry(position, deletionTime, columnsIndex);
  }
  else
  {
    return new RowIndexEntry(position);
  }
}
origin: org.apache.cassandra/cassandra-all

                  indexedPartSize, idxInfoSerializer);
return new RowIndexEntry<>(dataFilePosition);
origin: jsevellec/cassandra-unit

                  indexedPartSize, idxInfoSerializer);
return new RowIndexEntry<>(dataFilePosition);
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

                  indexedPartSize, idxInfoSerializer);
return new RowIndexEntry<>(dataFilePosition);
origin: com.strapdata.cassandra/cassandra-all

public RowIndexEntry<IndexInfo> deserializeForCache(DataInputPlus in) throws IOException
{
  assert version.storeRows();
  long position = in.readUnsignedVInt();
  switch (in.readByte())
  {
    case CACHE_NOT_INDEXED:
      return new RowIndexEntry<>(position);
    case CACHE_INDEXED:
      return new IndexedEntry(position, in, idxInfoSerializer, version);
    case CACHE_INDEXED_SHALLOW:
      return new ShallowIndexedEntry(position, in, idxInfoSerializer);
    default:
      throw new AssertionError();
  }
}
origin: org.apache.cassandra/cassandra-all

public RowIndexEntry<IndexInfo> deserializeForCache(DataInputPlus in) throws IOException
{
  assert version.storeRows();
  long position = in.readUnsignedVInt();
  switch (in.readByte())
  {
    case CACHE_NOT_INDEXED:
      return new RowIndexEntry<>(position);
    case CACHE_INDEXED:
      return new IndexedEntry(position, in, idxInfoSerializer, version);
    case CACHE_INDEXED_SHALLOW:
      return new ShallowIndexedEntry(position, in, idxInfoSerializer);
    default:
      throw new AssertionError();
  }
}
origin: jsevellec/cassandra-unit

public RowIndexEntry<IndexInfo> deserializeForCache(DataInputPlus in) throws IOException
{
  assert version.storeRows();
  long position = in.readUnsignedVInt();
  switch (in.readByte())
  {
    case CACHE_NOT_INDEXED:
      return new RowIndexEntry<>(position);
    case CACHE_INDEXED:
      return new IndexedEntry(position, in, idxInfoSerializer, version);
    case CACHE_INDEXED_SHALLOW:
      return new ShallowIndexedEntry(position, in, idxInfoSerializer);
    default:
      throw new AssertionError();
  }
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public RowIndexEntry<IndexInfo> deserializeForCache(DataInputPlus in) throws IOException
{
  assert version.storeRows();
  long position = in.readUnsignedVInt();
  switch (in.readByte())
  {
    case CACHE_NOT_INDEXED:
      return new RowIndexEntry<>(position);
    case CACHE_INDEXED:
      return new IndexedEntry(position, in, idxInfoSerializer, version);
    case CACHE_INDEXED_SHALLOW:
      return new ShallowIndexedEntry(position, in, idxInfoSerializer);
    default:
      throw new AssertionError();
  }
}
origin: org.apache.cassandra/cassandra-all

if (size == 0)
  return new RowIndexEntry<>(position);
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

if (size == 0)
  return new RowIndexEntry<>(position);
origin: jsevellec/cassandra-unit

if (size == 0)
  return new RowIndexEntry<>(position);
origin: com.strapdata.cassandra/cassandra-all

if (size == 0)
  return new RowIndexEntry<>(position);
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

if (size == 0)
  return new RowIndexEntry<>(dataFilePosition);
origin: org.apache.cassandra/cassandra-all

if (size == 0)
  return new RowIndexEntry<>(dataFilePosition);
origin: jsevellec/cassandra-unit

if (size == 0)
  return new RowIndexEntry<>(dataFilePosition);
origin: com.strapdata.cassandra/cassandra-all

if (size == 0)
  return new RowIndexEntry<>(dataFilePosition);
org.apache.cassandra.dbRowIndexEntry<init>

Popular methods of RowIndexEntry

  • create
  • deletionTime
  • isIndexed
  • columnsIndexCount
  • openWithIndex
  • serialize
  • serializeForCache
  • indexOnHeap
  • columnsIndex
  • promotedSize

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 12 Jupyter Notebook extensions
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