Tabnine Logo
Row$Merger.add
Code IndexAdd Tabnine to your IDE (free)

How to use
add
method
in
org.apache.cassandra.db.rows.Row$Merger

Best Java code snippets using org.apache.cassandra.db.rows.Row$Merger.add (Showing top 8 results out of 315)

origin: org.apache.cassandra/cassandra-all

private static Row mergeStaticRows(List<UnfilteredRowIterator> iterators,
                  Columns columns,
                  int nowInSec,
                  MergeListener listener,
                  DeletionTime partitionDeletion)
{
  if (columns.isEmpty())
    return Rows.EMPTY_STATIC_ROW;
  if (iterators.stream().allMatch(iter -> iter.staticRow().isEmpty()))
    return Rows.EMPTY_STATIC_ROW;
  Row.Merger merger = new Row.Merger(iterators.size(), nowInSec, columns.hasComplex());
  for (int i = 0; i < iterators.size(); i++)
    merger.add(i, iterators.get(i).staticRow());
  Row merged = merger.merge(partitionDeletion);
  if (merged == null)
    merged = Rows.EMPTY_STATIC_ROW;
  if (listener != null)
    listener.onMergedRows(merged, merger.mergedRows());
  return merged;
}
origin: jsevellec/cassandra-unit

private static Row mergeStaticRows(List<UnfilteredRowIterator> iterators,
                  Columns columns,
                  int nowInSec,
                  MergeListener listener,
                  DeletionTime partitionDeletion)
{
  if (columns.isEmpty())
    return Rows.EMPTY_STATIC_ROW;
  if (iterators.stream().allMatch(iter -> iter.staticRow().isEmpty()))
    return Rows.EMPTY_STATIC_ROW;
  Row.Merger merger = new Row.Merger(iterators.size(), nowInSec, columns.hasComplex());
  for (int i = 0; i < iterators.size(); i++)
    merger.add(i, iterators.get(i).staticRow());
  Row merged = merger.merge(partitionDeletion);
  if (merged == null)
    merged = Rows.EMPTY_STATIC_ROW;
  if (listener != null)
    listener.onMergedRows(merged, merger.mergedRows());
  return merged;
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

private static Row mergeStaticRows(List<UnfilteredRowIterator> iterators,
                  Columns columns,
                  int nowInSec,
                  MergeListener listener,
                  DeletionTime partitionDeletion)
{
  if (columns.isEmpty())
    return Rows.EMPTY_STATIC_ROW;
  if (iterators.stream().allMatch(iter -> iter.staticRow().isEmpty()))
    return Rows.EMPTY_STATIC_ROW;
  Row.Merger merger = new Row.Merger(iterators.size(), nowInSec, columns.hasComplex());
  for (int i = 0; i < iterators.size(); i++)
    merger.add(i, iterators.get(i).staticRow());
  Row merged = merger.merge(partitionDeletion);
  if (merged == null)
    merged = Rows.EMPTY_STATIC_ROW;
  if (listener != null)
    listener.onMergedRows(merged, merger.mergedRows());
  return merged;
}
origin: com.strapdata.cassandra/cassandra-all

private static Row mergeStaticRows(List<UnfilteredRowIterator> iterators,
                  Columns columns,
                  int nowInSec,
                  MergeListener listener,
                  DeletionTime partitionDeletion)
{
  if (columns.isEmpty())
    return Rows.EMPTY_STATIC_ROW;
  if (iterators.stream().allMatch(iter -> iter.staticRow().isEmpty()))
    return Rows.EMPTY_STATIC_ROW;
  Row.Merger merger = new Row.Merger(iterators.size(), nowInSec, columns.hasComplex());
  for (int i = 0; i < iterators.size(); i++)
    merger.add(i, iterators.get(i).staticRow());
  Row merged = merger.merge(partitionDeletion);
  if (merged == null)
    merged = Rows.EMPTY_STATIC_ROW;
  if (listener != null)
    listener.onMergedRows(merged, merger.mergedRows());
  return merged;
}
origin: com.strapdata.cassandra/cassandra-all

public void reduce(int idx, Unfiltered current)
{
  nextKind = current.kind();
  if (nextKind == Unfiltered.Kind.ROW)
    rowMerger.add(idx, (Row)current);
  else
    markerMerger.add(idx, (RangeTombstoneMarker)current);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public void reduce(int idx, Unfiltered current)
{
  nextKind = current.kind();
  if (nextKind == Unfiltered.Kind.ROW)
    rowMerger.add(idx, (Row)current);
  else
    markerMerger.add(idx, (RangeTombstoneMarker)current);
}
origin: jsevellec/cassandra-unit

public void reduce(int idx, Unfiltered current)
{
  nextKind = current.kind();
  if (nextKind == Unfiltered.Kind.ROW)
    rowMerger.add(idx, (Row)current);
  else
    markerMerger.add(idx, (RangeTombstoneMarker)current);
}
origin: org.apache.cassandra/cassandra-all

public void reduce(int idx, Unfiltered current)
{
  nextKind = current.kind();
  if (nextKind == Unfiltered.Kind.ROW)
    rowMerger.add(idx, (Row)current);
  else
    markerMerger.add(idx, (RangeTombstoneMarker)current);
}
org.apache.cassandra.db.rowsRow$Mergeradd

Popular methods of Row$Merger

  • <init>
  • clear
  • merge
  • mergedClustering
  • mergedRows

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • CodeWhisperer alternatives
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