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

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

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

origin: jsevellec/cassandra-unit

/**
 * Turns the given iterator into an update.
 *
 * @param iterator the iterator to turn into updates.
 * @param filter the column filter used when querying {@code iterator}. This is used to make
 * sure we don't include data for which the value has been skipped while reading (as we would
 * then be writing something incorrect).
 *
 * Warning: this method does not close the provided iterator, it is up to
 * the caller to close it.
 */
public static PartitionUpdate fromIterator(UnfilteredRowIterator iterator, ColumnFilter filter)
{
  iterator = UnfilteredRowIterators.withOnlyQueriedData(iterator, filter);
  Holder holder = build(iterator, 16);
  MutableDeletionInfo deletionInfo = (MutableDeletionInfo) holder.deletionInfo;
  return new PartitionUpdate(iterator.metadata(), iterator.partitionKey(), holder, deletionInfo, false);
}
origin: org.apache.cassandra/cassandra-all

/**
 * Turns the given iterator into an update.
 *
 * @param iterator the iterator to turn into updates.
 * @param filter the column filter used when querying {@code iterator}. This is used to make
 * sure we don't include data for which the value has been skipped while reading (as we would
 * then be writing something incorrect).
 *
 * Warning: this method does not close the provided iterator, it is up to
 * the caller to close it.
 */
public static PartitionUpdate fromIterator(UnfilteredRowIterator iterator, ColumnFilter filter)
{
  iterator = UnfilteredRowIterators.withOnlyQueriedData(iterator, filter);
  Holder holder = build(iterator, 16);
  MutableDeletionInfo deletionInfo = (MutableDeletionInfo) holder.deletionInfo;
  return new PartitionUpdate(iterator.metadata(), iterator.partitionKey(), holder, deletionInfo, false);
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * Turns the given iterator into an update.
 *
 * @param iterator the iterator to turn into updates.
 * @param filter the column filter used when querying {@code iterator}. This is used to make
 * sure we don't include data for which the value has been skipped while reading (as we would
 * then be writing something incorrect).
 *
 * Warning: this method does not close the provided iterator, it is up to
 * the caller to close it.
 */
public static PartitionUpdate fromIterator(UnfilteredRowIterator iterator, ColumnFilter filter)
{
  iterator = UnfilteredRowIterators.withOnlyQueriedData(iterator, filter);
  Holder holder = build(iterator, 16);
  MutableDeletionInfo deletionInfo = (MutableDeletionInfo) holder.deletionInfo;
  return new PartitionUpdate(iterator.metadata(), iterator.partitionKey(), holder, deletionInfo, false);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

/**
 * Turns the given iterator into an update.
 *
 * @param iterator the iterator to turn into updates.
 * @param filter the column filter used when querying {@code iterator}. This is used to make
 * sure we don't include data for which the value has been skipped while reading (as we would
 * then be writing something incorrect).
 *
 * Warning: this method does not close the provided iterator, it is up to
 * the caller to close it.
 */
public static PartitionUpdate fromIterator(UnfilteredRowIterator iterator, ColumnFilter filter)
{
  iterator = UnfilteredRowIterators.withOnlyQueriedData(iterator, filter);
  Holder holder = build(iterator, 16);
  MutableDeletionInfo deletionInfo = (MutableDeletionInfo) holder.deletionInfo;
  return new PartitionUpdate(iterator.metadata(), iterator.partitionKey(), holder, deletionInfo, false);
}
org.apache.cassandra.db.rowsUnfilteredRowIteratorswithOnlyQueriedData

Javadoc

Filter the provided iterator to exclude cells that have been fetched but are not queried by the user (see ColumnFilter for detailes).

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
  • noRowsIterator
    Returns an empty unfiltered iterator for a given partition.
  • 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

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • ImageIO (javax.imageio)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • From CI to AI: The AI layer in your organization
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