Tabnine Logo
RowIndexEntry.openWithIndex
Code IndexAdd Tabnine to your IDE (free)

How to use
openWithIndex
method
in
org.apache.cassandra.db.RowIndexEntry

Best Java code snippets using org.apache.cassandra.db.RowIndexEntry.openWithIndex (Showing top 8 results out of 315)

origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public IndexState(Reader reader, ClusteringComparator comparator, RowIndexEntry indexEntry, boolean reversed, FileHandle indexFile)
{
  this.reader = reader;
  this.comparator = comparator;
  this.indexEntry = indexEntry;
  this.indexInfoRetriever = indexEntry.openWithIndex(indexFile);
  this.reversed = reversed;
  this.currentIndexIdx = reversed ? indexEntry.columnsIndexCount() : -1;
}
origin: org.apache.cassandra/cassandra-all

public IndexState(Reader reader, ClusteringComparator comparator, RowIndexEntry indexEntry, boolean reversed, FileHandle indexFile)
{
  this.reader = reader;
  this.comparator = comparator;
  this.indexEntry = indexEntry;
  this.indexInfoRetriever = indexEntry.openWithIndex(indexFile);
  this.reversed = reversed;
  this.currentIndexIdx = reversed ? indexEntry.columnsIndexCount() : -1;
}
origin: jsevellec/cassandra-unit

public IndexState(Reader reader, ClusteringComparator comparator, RowIndexEntry indexEntry, boolean reversed, FileHandle indexFile)
{
  this.reader = reader;
  this.comparator = comparator;
  this.indexEntry = indexEntry;
  this.indexInfoRetriever = indexEntry.openWithIndex(indexFile);
  this.reversed = reversed;
  this.currentIndexIdx = reversed ? indexEntry.columnsIndexCount() : -1;
}
origin: com.strapdata.cassandra/cassandra-all

public IndexState(Reader reader, ClusteringComparator comparator, RowIndexEntry indexEntry, boolean reversed, FileHandle indexFile)
{
  this.reader = reader;
  this.comparator = comparator;
  this.indexEntry = indexEntry;
  this.indexInfoRetriever = indexEntry.openWithIndex(indexFile);
  this.reversed = reversed;
  this.currentIndexIdx = reversed ? indexEntry.columnsIndexCount() : -1;
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

/**
 * @return the lower bound stored on the index entry for this partition, if available.
 */
private ClusteringBound getPartitionIndexLowerBound()
{
  // NOTE: CASSANDRA-11206 removed the lookup against the key-cache as the IndexInfo objects are no longer
  // in memory for not heap backed IndexInfo objects (so, these are on disk).
  // CASSANDRA-11369 is there to fix this afterwards.
  // Creating the iterator ensures that rowIndexEntry is loaded if available (partitions bigger than
  // DatabaseDescriptor.column_index_size_in_kb)
  if (!canUseMetadataLowerBound())
    maybeInit();
  RowIndexEntry rowIndexEntry = null;
  try (RowIndexEntry.IndexInfoRetriever onHeapRetriever = rowIndexEntry.openWithIndex(null))
  {
    IndexInfo column = onHeapRetriever.columnsIndex(filter.isReversed() ? rowIndexEntry.columnsIndexCount() - 1 : 0);
    ClusteringPrefix lowerBoundPrefix = filter.isReversed() ? column.lastName : column.firstName;
    assert lowerBoundPrefix.getRawValues().length <= sstable.metadata.comparator.size() :
    String.format("Unexpected number of clustering values %d, expected %d or fewer for %s",
           lowerBoundPrefix.getRawValues().length,
           sstable.metadata.comparator.size(),
           sstable.getFilename());
    return ClusteringBound.inclusiveOpen(filter.isReversed(), lowerBoundPrefix.getRawValues());
  }
  catch (IOException e)
  {
    throw new RuntimeException("should never occur", e);
  }
}
origin: jsevellec/cassandra-unit

  return null;
try (RowIndexEntry.IndexInfoRetriever onHeapRetriever = rowIndexEntry.openWithIndex(null))
origin: org.apache.cassandra/cassandra-all

  return null;
try (RowIndexEntry.IndexInfoRetriever onHeapRetriever = rowIndexEntry.openWithIndex(null))
origin: com.strapdata.cassandra/cassandra-all

  return null;
try (RowIndexEntry.IndexInfoRetriever onHeapRetriever = rowIndexEntry.openWithIndex(null))
org.apache.cassandra.dbRowIndexEntryopenWithIndex

Popular methods of RowIndexEntry

  • <init>
  • create
  • deletionTime
  • isIndexed
  • columnsIndexCount
  • serialize
  • serializeForCache
  • indexOnHeap
  • columnsIndex
  • promotedSize

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • JFrame (javax.swing)
  • Best plugins for Eclipse
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