Tabnine Logo
Memtable.getAllocator
Code IndexAdd Tabnine to your IDE (free)

How to use
getAllocator
method
in
org.apache.cassandra.db.Memtable

Best Java code snippets using org.apache.cassandra.db.Memtable.getAllocator (Showing top 20 results out of 315)

origin: org.apache.cassandra/cassandra-all

  public void adjustMemtableSize(long additionalSpace, OpOrder.Group opGroup)
  {
    baseCfs.getTracker().getView().getCurrentMemtable().getAllocator().onHeap().allocate(additionalSpace, opGroup);
  }
};
origin: jsevellec/cassandra-unit

  public Long getValue()
  {
    return cfs.getTracker().getView().getCurrentMemtable().getAllocator().onHeap().owns();
  }
});
origin: jsevellec/cassandra-unit

  public Long getValue()
  {
    return cfs.getTracker().getView().getCurrentMemtable().getAllocator().offHeap().owns();
  }
});
origin: org.apache.cassandra/cassandra-all

  public Long getValue()
  {
    return cfs.getTracker().getView().getCurrentMemtable().getAllocator().offHeap().owns();
  }
});
origin: com.facebook.presto.cassandra/cassandra-server

  public Long value()
  {
    return cfs.getDataTracker().getView().getCurrentMemtable().getAllocator().offHeap().owns();
  }
});
origin: org.apache.cassandra/cassandra-all

  public Long getValue()
  {
    return cfs.getTracker().getView().getCurrentMemtable().getAllocator().onHeap().owns();
  }
});
origin: jsevellec/cassandra-unit

  public void adjustMemtableSize(long additionalSpace, OpOrder.Group opGroup)
  {
    baseCfs.getTracker().getView().getCurrentMemtable().getAllocator().onHeap().allocate(additionalSpace, opGroup);
  }
};
origin: com.facebook.presto.cassandra/cassandra-server

  public Long value()
  {
    return cfs.getDataTracker().getView().getCurrentMemtable().getAllocator().onHeap().owns();
  }
});
origin: com.strapdata.cassandra/cassandra-all

  public Long getValue()
  {
    return cfs.getTracker().getView().getCurrentMemtable().getAllocator().onHeap().owns();
  }
});
origin: com.strapdata.cassandra/cassandra-all

  public void adjustMemtableSize(long additionalSpace, OpOrder.Group opGroup)
  {
    baseCfs.getTracker().getView().getCurrentMemtable().getAllocator().onHeap().allocate(additionalSpace, opGroup);
  }
};
origin: com.strapdata.cassandra/cassandra-all

  public Long getValue()
  {
    return cfs.getTracker().getView().getCurrentMemtable().getAllocator().offHeap().owns();
  }
});
origin: jsevellec/cassandra-unit

  public Long getValue()
  {
    long size = 0;
    for (ColumnFamilyStore cfs2 : cfs.concatWithIndexes())
      size += cfs2.getTracker().getView().getCurrentMemtable().getAllocator().onHeap().owns();
    return size;
  }
});
origin: com.strapdata.cassandra/cassandra-all

  public Long getValue()
  {
    long size = 0;
    for (ColumnFamilyStore cfs2 : cfs.concatWithIndexes())
      size += cfs2.getTracker().getView().getCurrentMemtable().getAllocator().offHeap().owns();
    return size;
  }
});
origin: org.apache.cassandra/cassandra-all

  public Long getValue()
  {
    long size = 0;
    for (ColumnFamilyStore cfs2 : cfs.concatWithIndexes())
      size += cfs2.getTracker().getView().getCurrentMemtable().getAllocator().offHeap().owns();
    return size;
  }
});
origin: com.facebook.presto.cassandra/cassandra-server

private void logFlush()
{
  // reclaiming includes that which we are GC-ing;
  float onHeapRatio = 0, offHeapRatio = 0;
  long onHeapTotal = 0, offHeapTotal = 0;
  Memtable memtable = getDataTracker().getView().getCurrentMemtable();
  onHeapRatio +=  memtable.getAllocator().onHeap().ownershipRatio();
  offHeapRatio += memtable.getAllocator().offHeap().ownershipRatio();
  onHeapTotal += memtable.getAllocator().onHeap().owns();
  offHeapTotal += memtable.getAllocator().offHeap().owns();
  for (SecondaryIndex index : indexManager.getIndexes())
  {
    if (index.getIndexCfs() != null)
    {
      MemtableAllocator allocator = index.getIndexCfs().getDataTracker().getView().getCurrentMemtable().getAllocator();
      onHeapRatio += allocator.onHeap().ownershipRatio();
      offHeapRatio += allocator.offHeap().ownershipRatio();
      onHeapTotal += allocator.onHeap().owns();
      offHeapTotal += allocator.offHeap().owns();
    }
  }
  logger.info("Enqueuing flush of {}: {}", name, String.format("%d (%.0f%%) on-heap, %d (%.0f%%) off-heap",
                                 onHeapTotal, onHeapRatio * 100, offHeapTotal, offHeapRatio * 100));
}
origin: org.apache.cassandra/cassandra-all

  public Long getValue()
  {
    long size = 0;
    for (ColumnFamilyStore cfs2 : cfs.concatWithIndexes())
      size += cfs2.getTracker().getView().getCurrentMemtable().getAllocator().onHeap().owns();
    return size;
  }
});
origin: jsevellec/cassandra-unit

  public Long getValue()
  {
    long size = 0;
    for (ColumnFamilyStore cfs2 : cfs.concatWithIndexes())
      size += cfs2.getTracker().getView().getCurrentMemtable().getAllocator().offHeap().owns();
    return size;
  }
});
origin: com.facebook.presto.cassandra/cassandra-server

  public Long value()
  {
    long size = 0;
    for (ColumnFamilyStore cfs2 : cfs.concatWithIndexes())
      size += cfs2.getDataTracker().getView().getCurrentMemtable().getAllocator().offHeap().owns();
    return size;
  }
});
origin: com.facebook.presto.cassandra/cassandra-server

  public Long value()
  {
    long size = 0;
    for (ColumnFamilyStore cfs2 : cfs.concatWithIndexes())
      size += cfs2.getDataTracker().getView().getCurrentMemtable().getAllocator().onHeap().owns();
    return size;
  }
});
origin: com.strapdata.cassandra/cassandra-all

  public Long getValue()
  {
    long size = 0;
    for (ColumnFamilyStore cfs2 : cfs.concatWithIndexes())
      size += cfs2.getTracker().getView().getCurrentMemtable().getAllocator().onHeap().owns();
    return size;
  }
});
org.apache.cassandra.dbMemtablegetAllocator

Popular methods of Memtable

  • getOperations
  • <init>
  • accepts
  • getLiveDataSize
  • isClean
  • isExpired
  • partitionCount
  • put
    Should only be called by ColumnFamilyStore.apply via Keyspace.apply, which supplies the appropriate
  • setDiscarded
  • setDiscarding
  • toString
  • abortRunnables
  • toString,
  • abortRunnables,
  • createFlushRunnables,
  • findMinLocalDeletionTime,
  • flushRunnables,
  • getCommitLogLowerBound,
  • getCommitLogUpperBound,
  • getMinTimestamp,
  • getPartition

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top plugins for WebStorm
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