Tabnine Logo
Tracker.getView
Code IndexAdd Tabnine to your IDE (free)

How to use
getView
method
in
org.apache.cassandra.db.lifecycle.Tracker

Best Java code snippets using org.apache.cassandra.db.lifecycle.Tracker.getView (Showing top 20 results out of 315)

origin: org.apache.cassandra/cassandra-all

public ViewFragment select(Function<View, Iterable<SSTableReader>> filter)
{
  View view = data.getView();
  List<SSTableReader> sstables = Lists.newArrayList(filter.apply(view));
  return new ViewFragment(sstables, view.getAllMemtables());
}
origin: org.apache.cassandra/cassandra-all

  public Integer getValue()
  {
    return cfs.getTracker().getView().liveSSTables().size();
  }
});
origin: org.apache.cassandra/cassandra-all

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

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

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

private static Collection<SSTableReader> sstablesInBounds(ColumnFamilyStore cfs, Collection<Range<Token>> tokenRangeCollection)
{
  final Set<SSTableReader> sstables = new HashSet<>();
  Iterable<SSTableReader> liveTables = cfs.getTracker().getView().select(SSTableSet.LIVE);
  SSTableIntervalTree tree = SSTableIntervalTree.build(liveTables);
  for (Range<Token> tokenRange : tokenRangeCollection)
  {
    Iterable<SSTableReader> ssTableReaders = View.sstablesInBounds(tokenRange.left.minKeyBound(), tokenRange.right.maxKeyBound(), tree);
    Iterables.addAll(sstables, ssTableReaders);
  }
  return sstables;
}
origin: org.apache.cassandra/cassandra-all

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

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

public ViewFragment select(Function<View, Iterable<SSTableReader>> filter)
{
  View view = data.getView();
  List<SSTableReader> sstables = Lists.newArrayList(filter.apply(view));
  return new ViewFragment(sstables, view.getAllMemtables());
}
origin: org.apache.cassandra/cassandra-all

  public Long getValue()
  {
    long memtablePartitions = 0;
    for (Memtable memtable : cfs.getTracker().getView().getAllMemtables())
      memtablePartitions += memtable.partitionCount();
    return SSTableReader.getApproximateKeyCount(cfs.getSSTables(SSTableSet.CANONICAL)) + memtablePartitions;
  }
});
origin: jsevellec/cassandra-unit

private static Collection<SSTableReader> sstablesInBounds(ColumnFamilyStore cfs, Collection<Range<Token>> tokenRangeCollection)
{
  final Set<SSTableReader> sstables = new HashSet<>();
  Iterable<SSTableReader> liveTables = cfs.getTracker().getView().select(SSTableSet.LIVE);
  SSTableIntervalTree tree = SSTableIntervalTree.build(liveTables);
  for (Range<Token> tokenRange : tokenRangeCollection)
  {
    Iterable<SSTableReader> ssTableReaders = View.sstablesInBounds(tokenRange.left.minKeyBound(), tokenRange.right.maxKeyBound(), tree);
    Iterables.addAll(sstables, ssTableReaders);
  }
  return sstables;
}
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: jsevellec/cassandra-unit

  public Long getValue()
  {
    long memtablePartitions = 0;
    for (Memtable memtable : cfs.getTracker().getView().getAllMemtables())
      memtablePartitions += memtable.partitionCount();
    return SSTableReader.getApproximateKeyCount(cfs.getSSTables(SSTableSet.CANONICAL)) + memtablePartitions;
  }
});
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: org.apache.cassandra/cassandra-all

  public void adjustMemtableSize(long additionalSpace, OpOrder.Group opGroup)
  {
    baseCfs.getTracker().getView().getCurrentMemtable().getAllocator().onHeap().allocate(additionalSpace, opGroup);
  }
};
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.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;
  }
});
org.apache.cassandra.db.lifecycleTrackergetView

Popular methods of Tracker

  • tryModify
  • <init>
  • addInitialSSTables
  • apply
    atomically tests permit against the view and applies function to it, if permit yields true, returnin
  • dropSSTables
    removes all sstables that are not busy compacting.
  • dropSSTablesIfInvalid
  • emptySet
  • isDummy
  • updateSizeTracking
  • addSSTables
  • getCompacting
  • getMemtableFor
    get the Memtable that the ordered writeOp should be directed to
  • getCompacting,
  • getMemtableFor,
  • getUncompacting,
  • markFlushing,
  • maybeIncrementallyBackup,
  • notify,
  • notifyAdded,
  • notifyDeleting,
  • notifyDiscarded

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JOptionPane (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for Android Studio
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