Tabnine Logo
UnfilteredRowIterators.noRowsIterator
Code IndexAdd Tabnine to your IDE (free)

How to use
noRowsIterator
method
in
org.apache.cassandra.db.rows.UnfilteredRowIterators

Best Java code snippets using org.apache.cassandra.db.rows.UnfilteredRowIterators.noRowsIterator (Showing top 17 results out of 315)

origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public UnfilteredRowIterator iterator(FileDataInput file, DecoratedKey key, RowIndexEntry indexEntry, Slices slices, ColumnFilter selectedColumns, boolean reversed, boolean isForThrift)
{
  if (indexEntry == null)
    return UnfilteredRowIterators.noRowsIterator(metadata, key, Rows.EMPTY_STATIC_ROW, DeletionTime.LIVE, reversed);
  return new SSTableIterator(this, file, key, indexEntry, slices, selectedColumns, isForThrift, ifile);
}
origin: com.strapdata.cassandra/cassandra-all

public UnfilteredRowIterator iterator(FileDataInput file, DecoratedKey key, RowIndexEntry indexEntry, Slices slices, ColumnFilter selectedColumns, boolean reversed, boolean isForThrift)
{
  if (indexEntry == null)
    return UnfilteredRowIterators.noRowsIterator(metadata, key, Rows.EMPTY_STATIC_ROW, DeletionTime.LIVE, reversed);
  return reversed
     ? new SSTableReversedIterator(this, file, key, indexEntry, slices, selectedColumns, isForThrift, ifile)
     : new SSTableIterator(this, file, key, indexEntry, slices, selectedColumns, isForThrift, ifile);
}
origin: org.apache.cassandra/cassandra-all

public UnfilteredRowIterator iterator(FileDataInput file, DecoratedKey key, RowIndexEntry indexEntry, Slices slices, ColumnFilter selectedColumns, boolean reversed, boolean isForThrift)
{
  if (indexEntry == null)
    return UnfilteredRowIterators.noRowsIterator(metadata, key, Rows.EMPTY_STATIC_ROW, DeletionTime.LIVE, reversed);
  return reversed
     ? new SSTableReversedIterator(this, file, key, indexEntry, slices, selectedColumns, isForThrift, ifile)
     : new SSTableIterator(this, file, key, indexEntry, slices, selectedColumns, isForThrift, ifile);
}
origin: jsevellec/cassandra-unit

public UnfilteredRowIterator iterator(FileDataInput file, DecoratedKey key, RowIndexEntry indexEntry, Slices slices, ColumnFilter selectedColumns, boolean reversed, boolean isForThrift)
{
  if (indexEntry == null)
    return UnfilteredRowIterators.noRowsIterator(metadata, key, Rows.EMPTY_STATIC_ROW, DeletionTime.LIVE, reversed);
  return reversed
     ? new SSTableReversedIterator(this, file, key, indexEntry, slices, selectedColumns, isForThrift, ifile)
     : new SSTableIterator(this, file, key, indexEntry, slices, selectedColumns, isForThrift, ifile);
}
origin: jsevellec/cassandra-unit

private void buildKey(DecoratedKey key)
{
  ReadQuery selectQuery = view.getReadQuery();
  if (!selectQuery.selectsKey(key))
  {
    logger.trace("Skipping {}, view query filters", key);
    return;
  }
  int nowInSec = FBUtilities.nowInSeconds();
  SinglePartitionReadCommand command = view.getSelectStatement().internalReadForView(key, nowInSec);
  // We're rebuilding everything from what's on disk, so we read everything, consider that as new updates
  // and pretend that there is nothing pre-existing.
  UnfilteredRowIterator empty = UnfilteredRowIterators.noRowsIterator(baseCfs.metadata, key, Rows.EMPTY_STATIC_ROW, DeletionTime.LIVE, false);
  try (ReadExecutionController orderGroup = command.executionController();
     UnfilteredRowIterator data = UnfilteredPartitionIterators.getOnlyElement(command.executeLocally(orderGroup), command))
  {
    Iterator<Collection<Mutation>> mutations = baseCfs.keyspace.viewManager
                         .forTable(baseCfs.metadata)
                         .generateViewUpdates(Collections.singleton(view), data, empty, nowInSec, true);
    AtomicLong noBase = new AtomicLong(Long.MAX_VALUE);
    mutations.forEachRemaining(m -> StorageProxy.mutateMV(key.getKey(), m, true, noBase, System.nanoTime()));
  }
}
origin: com.strapdata.cassandra/cassandra-all

private void buildKey(DecoratedKey key)
{
  ReadQuery selectQuery = view.getReadQuery();
  if (!selectQuery.selectsKey(key))
  {
    logger.trace("Skipping {}, view query filters", key);
    return;
  }
  int nowInSec = FBUtilities.nowInSeconds();
  SinglePartitionReadCommand command = view.getSelectStatement().internalReadForView(key, nowInSec);
  // We're rebuilding everything from what's on disk, so we read everything, consider that as new updates
  // and pretend that there is nothing pre-existing.
  UnfilteredRowIterator empty = UnfilteredRowIterators.noRowsIterator(baseCfs.metadata, key, Rows.EMPTY_STATIC_ROW, DeletionTime.LIVE, false);
  try (ReadExecutionController orderGroup = command.executionController();
     UnfilteredRowIterator data = UnfilteredPartitionIterators.getOnlyElement(command.executeLocally(orderGroup), command))
  {
    Iterator<Collection<Mutation>> mutations = baseCfs.keyspace.viewManager
                         .forTable(baseCfs.metadata)
                         .generateViewUpdates(Collections.singleton(view), data, empty, nowInSec, true);
    AtomicLong noBase = new AtomicLong(Long.MAX_VALUE);
    mutations.forEachRemaining(m -> StorageProxy.mutateMV(key.getKey(), m, true, noBase, System.nanoTime()));
  }
}
origin: org.apache.cassandra/cassandra-all

private void buildKey(DecoratedKey key)
{
  ReadQuery selectQuery = view.getReadQuery();
  if (!selectQuery.selectsKey(key))
  {
    logger.trace("Skipping {}, view query filters", key);
    return;
  }
  int nowInSec = FBUtilities.nowInSeconds();
  SinglePartitionReadCommand command = view.getSelectStatement().internalReadForView(key, nowInSec);
  // We're rebuilding everything from what's on disk, so we read everything, consider that as new updates
  // and pretend that there is nothing pre-existing.
  UnfilteredRowIterator empty = UnfilteredRowIterators.noRowsIterator(baseCfs.metadata, key, Rows.EMPTY_STATIC_ROW, DeletionTime.LIVE, false);
  try (ReadExecutionController orderGroup = command.executionController();
     UnfilteredRowIterator data = UnfilteredPartitionIterators.getOnlyElement(command.executeLocally(orderGroup), command))
  {
    Iterator<Collection<Mutation>> mutations = baseCfs.keyspace.viewManager
                         .forTable(baseCfs.metadata)
                         .generateViewUpdates(Collections.singleton(view), data, empty, nowInSec, true);
    AtomicLong noBase = new AtomicLong(Long.MAX_VALUE);
    mutations.forEachRemaining(m -> StorageProxy.mutateMV(key.getKey(), m, true, noBase, System.nanoTime()));
  }
}
origin: jsevellec/cassandra-unit

public UnfilteredRowIterator unfilteredIterator(Holder current, ColumnFilter selection, Slices slices, boolean reversed)
{
  Row staticRow = staticRow(current, selection, false);
  if (slices.size() == 0)
  {
    DeletionTime partitionDeletion = current.deletionInfo.getPartitionDeletion();
    return UnfilteredRowIterators.noRowsIterator(metadata, partitionKey(), staticRow, partitionDeletion, reversed);
  }
  return slices.size() == 1
      ? sliceIterator(selection, slices.get(0), reversed, current, staticRow)
      : new SlicesIterator(selection, slices, reversed, current, staticRow);
}
origin: com.strapdata.cassandra/cassandra-all

public UnfilteredRowIterator unfilteredIterator(Holder current, ColumnFilter selection, Slices slices, boolean reversed)
{
  Row staticRow = staticRow(current, selection, false);
  if (slices.size() == 0)
  {
    DeletionTime partitionDeletion = current.deletionInfo.getPartitionDeletion();
    return UnfilteredRowIterators.noRowsIterator(metadata, partitionKey(), staticRow, partitionDeletion, reversed);
  }
  return slices.size() == 1
      ? sliceIterator(selection, slices.get(0), reversed, current, staticRow)
      : new SlicesIterator(selection, slices, reversed, current, staticRow);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public UnfilteredRowIterator unfilteredIterator(Holder current, ColumnFilter selection, Slices slices, boolean reversed)
{
  Row staticRow = staticRow(current, selection, false);
  if (slices.size() == 0)
  {
    DeletionTime partitionDeletion = current.deletionInfo.getPartitionDeletion();
    return UnfilteredRowIterators.noRowsIterator(metadata, partitionKey(), staticRow, partitionDeletion, reversed);
  }
  return slices.size() == 1
      ? sliceIterator(selection, slices.get(0), reversed, current, staticRow)
      : new SlicesIterator(selection, slices, reversed, current, staticRow);
}
origin: org.apache.cassandra/cassandra-all

public UnfilteredRowIterator unfilteredIterator(Holder current, ColumnFilter selection, Slices slices, boolean reversed)
{
  Row staticRow = staticRow(current, selection, false);
  if (slices.size() == 0)
  {
    DeletionTime partitionDeletion = current.deletionInfo.getPartitionDeletion();
    return UnfilteredRowIterators.noRowsIterator(metadata, partitionKey(), staticRow, partitionDeletion, reversed);
  }
  return slices.size() == 1
      ? sliceIterator(selection, slices.get(0), reversed, current, staticRow)
      : new SlicesIterator(selection, slices, reversed, current, staticRow);
}
origin: org.apache.cassandra/cassandra-all

iteratorToReturn = UnfilteredRowIterators.noRowsIterator(dataIter.metadata(),
                             dataIter.partitionKey(),
                             Rows.EMPTY_STATIC_ROW,
origin: jsevellec/cassandra-unit

iteratorToReturn = UnfilteredRowIterators.noRowsIterator(dataIter.metadata(),
                             dataIter.partitionKey(),
                             Rows.EMPTY_STATIC_ROW,
origin: com.strapdata.cassandra/cassandra-all

iteratorToReturn = UnfilteredRowIterators.noRowsIterator(dataIter.metadata(),
                             dataIter.partitionKey(),
                             Rows.EMPTY_STATIC_ROW,
origin: org.apache.cassandra/cassandra-all

  result = add(UnfilteredRowIterators.noRowsIterator(iter.metadata(), iter.partitionKey(), Rows.EMPTY_STATIC_ROW, iter.partitionLevelDeletion(), filter.isReversed()), result, filter, sstable.isRepaired());
else
  result = add(iter, result, filter, sstable.isRepaired());
origin: jsevellec/cassandra-unit

  result = add(UnfilteredRowIterators.noRowsIterator(iter.metadata(), iter.partitionKey(), Rows.EMPTY_STATIC_ROW, iter.partitionLevelDeletion(), filter.isReversed()), result, filter, sstable.isRepaired());
else
  result = add(iter, result, filter, sstable.isRepaired());
origin: com.strapdata.cassandra/cassandra-all

  result = add(UnfilteredRowIterators.noRowsIterator(iter.metadata(), iter.partitionKey(), Rows.EMPTY_STATIC_ROW, iter.partitionLevelDeletion(), filter.isReversed()), result, filter, sstable.isRepaired());
else
  result = add(iter, result, filter, sstable.isRepaired());
org.apache.cassandra.db.rowsUnfilteredRowIteratorsnoRowsIterator

Javadoc

Returns an empty unfiltered iterator for a given partition.

Popular methods of UnfilteredRowIterators

  • filter
    Returns a iterator that only returns rows with only live content. This is mainly used in the CQL lay
  • merge
    Returns an iterator that is the result of merging other iterators, and (optionally) using specific M
  • withOnlyQueriedData
    Filter the provided iterator to exclude cells that have been fetched but are not queried by the user
  • concat
    Returns an iterator that concatenate two atom iterators. This method assumes that both iterator are
  • digest
    Digests the partition represented by the provided iterator.
  • withValidation
    Validate that the data of the provided iterator is valid, that is that the values it contains are va
  • singleton

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top Vim 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