Codota Logo
Selection$Selectors.addInputRow
Code IndexAdd Codota to your IDE (free)

How to use
addInputRow
method
in
org.apache.cassandra.cql3.selection.Selection$Selectors

Best Java code snippets using org.apache.cassandra.cql3.selection.Selection$Selectors.addInputRow (Showing top 6 results out of 315)

  • Common ways to obtain Selection$Selectors
private void myMethod () {
Selection$Selectors s =
  • Codota IconSelector selector;selector.reset()
  • Codota IconSelector selector;ProtocolVersion protocolVersion;Selection.ResultSetBuilder rs;selector.addInput(protocolVersion, rs)
  • Codota IconList list;Selector selector;ProtocolVersion protocolVersion;list.add(selector.getOutput(protocolVersion))
  • Smart code suggestions by Codota
}
origin: jsevellec/cassandra-unit

/**
 * Notifies this <code>Builder</code> that a new row is being processed.
 *
 * @param partitionKey the partition key of the new row
 * @param clustering the clustering of the new row
 */
public void newRow(DecoratedKey partitionKey, Clustering clustering)
{
  // The groupMaker needs to be called for each row
  boolean isNewAggregate = groupMaker == null || groupMaker.isNewGroup(partitionKey, clustering);
  if (current != null)
  {
    selectors.addInputRow(protocolVersion, this);
    if (isNewAggregate)
    {
      resultSet.addRow(getOutputRow());
      selectors.reset();
    }
  }
  current = new ArrayList<>(columns.size());
  // Timestamps and TTLs are arrays per row, we must null them out between rows
  if (timestamps != null)
    Arrays.fill(timestamps, Long.MIN_VALUE);
  if (ttls != null)
    Arrays.fill(ttls, -1);
}
origin: org.apache.cassandra/cassandra-all

/**
 * Notifies this <code>Builder</code> that a new row is being processed.
 *
 * @param partitionKey the partition key of the new row
 * @param clustering the clustering of the new row
 */
public void newRow(DecoratedKey partitionKey, Clustering clustering)
{
  // The groupMaker needs to be called for each row
  boolean isNewAggregate = groupMaker == null || groupMaker.isNewGroup(partitionKey, clustering);
  if (current != null)
  {
    selectors.addInputRow(protocolVersion, this);
    if (isNewAggregate)
    {
      resultSet.addRow(getOutputRow());
      selectors.reset();
    }
  }
  current = new ArrayList<>(columns.size());
  // Timestamps and TTLs are arrays per row, we must null them out between rows
  if (timestamps != null)
    Arrays.fill(timestamps, Long.MIN_VALUE);
  if (ttls != null)
    Arrays.fill(ttls, -1);
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * Notifies this <code>Builder</code> that a new row is being processed.
 *
 * @param partitionKey the partition key of the new row
 * @param clustering the clustering of the new row
 */
public void newRow(DecoratedKey partitionKey, Clustering clustering)
{
  // The groupMaker needs to be called for each row
  boolean isNewAggregate = groupMaker == null || groupMaker.isNewGroup(partitionKey, clustering);
  if (current != null)
  {
    selectors.addInputRow(protocolVersion, this);
    if (isNewAggregate)
    {
      resultSet.addRow(getOutputRow());
      selectors.reset();
    }
  }
  current = new ArrayList<>(columns.size());
  // Timestamps and TTLs are arrays per row, we must null them out between rows
  if (timestamps != null)
    Arrays.fill(timestamps, Long.MIN_VALUE);
  if (ttls != null)
    Arrays.fill(ttls, -1);
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * Builds the <code>ResultSet</code>
 */
public ResultSet build()
{
  if (current != null)
  {
    selectors.addInputRow(protocolVersion, this);
    resultSet.addRow(getOutputRow());
    selectors.reset();
    current = null;
  }
  // For aggregates we need to return a row even it no records have been found
  if (resultSet.isEmpty() && groupMaker != null && groupMaker.returnAtLeastOneRow())
    resultSet.addRow(getOutputRow());
  return resultSet;
}
origin: org.apache.cassandra/cassandra-all

/**
 * Builds the <code>ResultSet</code>
 */
public ResultSet build()
{
  if (current != null)
  {
    selectors.addInputRow(protocolVersion, this);
    resultSet.addRow(getOutputRow());
    selectors.reset();
    current = null;
  }
  // For aggregates we need to return a row even it no records have been found
  if (resultSet.isEmpty() && groupMaker != null && groupMaker.returnAtLeastOneRow())
    resultSet.addRow(getOutputRow());
  return resultSet;
}
origin: jsevellec/cassandra-unit

/**
 * Builds the <code>ResultSet</code>
 */
public ResultSet build()
{
  if (current != null)
  {
    selectors.addInputRow(protocolVersion, this);
    resultSet.addRow(getOutputRow());
    selectors.reset();
    current = null;
  }
  // For aggregates we need to return a row even it no records have been found
  if (resultSet.isEmpty() && groupMaker != null && groupMaker.returnAtLeastOneRow())
    resultSet.addRow(getOutputRow());
  return resultSet;
}
org.apache.cassandra.cql3.selectionSelection$SelectorsaddInputRow

Javadoc

Adds the current row of the specified ResultSetBuilder.

Popular methods of Selection$Selectors

  • getOutputRow
  • reset

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • setContentView (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now