Tabnine Logo
BaseRowIterator
Code IndexAdd Tabnine to your IDE (free)

How to use
BaseRowIterator
in
org.apache.cassandra.db.rows

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

origin: org.apache.cassandra/cassandra-all

  @Override
  protected BaseRowIterator applyToPartition(BaseRowIterator iterator)
  {
    if (iterator.isEmpty())
    {
      iterator.close();
      return null;
    }

    return iterator;
  }
}
origin: jsevellec/cassandra-unit

public PartitionColumns columns()
{
  return input.columns();
}
origin: org.apache.cassandra/cassandra-all

public boolean isReverseOrder()
{
  return input.isReverseOrder();
}
origin: jsevellec/cassandra-unit

public BaseRows(I input)
{
  super(input);
  staticRow = input.staticRow();
  partitionKey = input.partitionKey();
}
origin: org.apache.cassandra/cassandra-all

@Override
public BaseRowIterator<T> applyToPartition(BaseRowIterator<T> partition)
{
  currentKey = partition.partitionKey();
  // If this is the first partition of this page, this could be the continuation of a partition we've started
  // on the previous page. In which case, we could have the problem that the partition has no more "regular"
  // rows (but the page size is such we didn't knew before) but it does has a static row. We should then skip
  // the partition as returning it would means to the upper layer that the partition has "only" static columns,
  // which is not the case (and we know the static results have been sent on the previous page).
  if (isFirstPartition)
  {
    isFirstPartition = false;
    if (isPreviouslyReturnedPartition(currentKey) && !partition.hasNext())
    {
      partition.close();
      return null;
    }
  }
  return apply(partition);
}
origin: org.apache.cassandra/cassandra-all

int len = length;
while (!stop.isSignalled && !stopChild.isSignalled && input.hasNext())
  Unfiltered next = input.next();
origin: org.apache.cassandra/cassandra-all

public CFMetaData metadata()
{
  return input.metadata();
}
origin: jsevellec/cassandra-unit

public DecoratedKey partitionKey()
{
  return input.partitionKey();
}
origin: jsevellec/cassandra-unit

@Override
public BaseRowIterator<T> applyToPartition(BaseRowIterator<T> partition)
{
  currentKey = partition.partitionKey();
  // If this is the first partition of this page, this could be the continuation of a partition we've started
  // on the previous page. In which case, we could have the problem that the partition has no more "regular"
  // rows (but the page size is such we didn't knew before) but it does has a static row. We should then skip
  // the partition as returning it would means to the upper layer that the partition has "only" static columns,
  // which is not the case (and we know the static results have been sent on the previous page).
  if (isFirstPartition)
  {
    isFirstPartition = false;
    if (isPreviouslyReturnedPartition(currentKey) && !partition.hasNext())
    {
      partition.close();
      return null;
    }
  }
  return apply(partition);
}
origin: org.apache.cassandra/cassandra-all

public BaseRows(I input)
{
  super(input);
  staticRow = input.staticRow();
  partitionKey = input.partitionKey();
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

int len = length;
while (!stop.isSignalled && input.hasNext())
  Unfiltered next = input.next();
origin: jsevellec/cassandra-unit

public CFMetaData metadata()
{
  return input.metadata();
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public DecoratedKey partitionKey()
{
  return input.partitionKey();
}
origin: com.strapdata.cassandra/cassandra-all

@Override
public BaseRowIterator<T> applyToPartition(BaseRowIterator<T> partition)
{
  currentKey = partition.partitionKey();
  // If this is the first partition of this page, this could be the continuation of a partition we've started
  // on the previous page. In which case, we could have the problem that the partition has no more "regular"
  // rows (but the page size is such we didn't knew before) but it does has a static row. We should then skip
  // the partition as returning it would means to the upper layer that the partition has "only" static columns,
  // which is not the case (and we know the static results have been sent on the previous page).
  if (isFirstPartition)
  {
    isFirstPartition = false;
    if (isPreviouslyReturnedPartition(currentKey) && !partition.hasNext())
    {
      partition.close();
      return null;
    }
  }
  return apply(partition);
}
origin: jsevellec/cassandra-unit

  @Override
  protected BaseRowIterator applyToPartition(BaseRowIterator iterator)
  {
    if (iterator.isEmpty())
    {
      iterator.close();
      return null;
    }

    return iterator;
  }
}
origin: com.strapdata.cassandra/cassandra-all

public BaseRows(I input)
{
  super(input);
  staticRow = input.staticRow();
  partitionKey = input.partitionKey();
}
origin: com.strapdata.cassandra/cassandra-all

int len = length;
while (!stop.isSignalled && !stopChild.isSignalled && input.hasNext())
  Unfiltered next = input.next();
origin: com.strapdata.cassandra/cassandra-all

public CFMetaData metadata()
{
  return input.metadata();
}
origin: com.strapdata.cassandra/cassandra-all

public boolean isReverseOrder()
{
  return input.isReverseOrder();
}
origin: org.apache.cassandra/cassandra-all

public PartitionColumns columns()
{
  return input.columns();
}
org.apache.cassandra.db.rowsBaseRowIterator

Javadoc

A common interface for Row and Unfiltered, that permits sharing of the (majority) common methods and functionality

Most used methods

  • close
  • columns
    A subset of the columns for the (static and regular) rows returned by this iterator. Every row retur
  • hasNext
  • isEmpty
    Returns whether the provided iterator has no data.
  • isReverseOrder
    Whether or not the rows returned by this iterator are in reversed clustering order.
  • metadata
    The metadata for the table this iterator on.
  • next
  • partitionKey
    The partition key of the partition this in an iterator over.
  • staticRow
    The static part corresponding to this partition (this can be an empty row but cannot be null).

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Path (java.nio.file)
  • JFrame (javax.swing)
  • Best IntelliJ plugins
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