Tabnine Logo
PartitionColumns.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.cassandra.db.PartitionColumns
constructor

Best Java code snippets using org.apache.cassandra.db.PartitionColumns.<init> (Showing top 20 results out of 315)

origin: jsevellec/cassandra-unit

private PartitionColumns columnsToRead()
{
  PartitionColumns allColumns = cfm.partitionColumns();
  // If we update static row, we won't have any conditions on regular rows.
  // If we update regular row, we have to fetch all regular rows (which would satisfy column condition) and
  // static rows that take part in column condition.
  // In both cases, we're fetching enough rows to distinguish between "all conditions are nulls" and "row does not exist".
  // We have to do this as we can't rely on row marker for that (see #6623)
  Columns statics = updatesStaticRow ? allColumns.statics : conditionColumns.statics;
  Columns regulars = updatesRegularRows ? allColumns.regulars : conditionColumns.regulars;
  return new PartitionColumns(statics, regulars);
}
origin: org.apache.cassandra/cassandra-all

private PartitionColumns columnsToRead()
{
  PartitionColumns allColumns = cfm.partitionColumns();
  // If we update static row, we won't have any conditions on regular rows.
  // If we update regular row, we have to fetch all regular rows (which would satisfy column condition) and
  // static rows that take part in column condition.
  // In both cases, we're fetching enough rows to distinguish between "all conditions are nulls" and "row does not exist".
  // We have to do this as we can't rely on row marker for that (see #6623)
  Columns statics = updatesStaticRow ? allColumns.statics : conditionColumns.statics;
  Columns regulars = updatesRegularRows ? allColumns.regulars : conditionColumns.regulars;
  return new PartitionColumns(statics, regulars);
}
origin: com.strapdata.cassandra/cassandra-all

private PartitionColumns columnsToRead()
{
  PartitionColumns allColumns = cfm.partitionColumns();
  // If we update static row, we won't have any conditions on regular rows.
  // If we update regular row, we have to fetch all regular rows (which would satisfy column condition) and
  // static rows that take part in column condition.
  // In both cases, we're fetching enough rows to distinguish between "all conditions are nulls" and "row does not exist".
  // We have to do this as we can't rely on row marker for that (see #6623)
  Columns statics = updatesStaticRow ? allColumns.statics : conditionColumns.statics;
  Columns regulars = updatesRegularRows ? allColumns.regulars : conditionColumns.regulars;
  return new PartitionColumns(statics, regulars);
}
origin: org.apache.cassandra/cassandra-all

public PartitionColumns withoutStatics()
{
  return statics.isEmpty() ? this : new PartitionColumns(Columns.NONE, regulars);
}
origin: jsevellec/cassandra-unit

public PartitionColumns withoutStatics()
{
  return statics.isEmpty() ? this : new PartitionColumns(Columns.NONE, regulars);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public PartitionColumns withoutStatics()
{
  return statics.isEmpty() ? this : new PartitionColumns(Columns.NONE, regulars);
}
origin: jsevellec/cassandra-unit

public PartitionColumns mergeTo(PartitionColumns that)
{
  if (this == that)
    return this;
  Columns statics = this.statics.mergeTo(that.statics);
  Columns regulars = this.regulars.mergeTo(that.regulars);
  if (statics == this.statics && regulars == this.regulars)
    return this;
  if (statics == that.statics && regulars == that.regulars)
    return that;
  return new PartitionColumns(statics, regulars);
}
origin: org.apache.cassandra/cassandra-all

public PartitionColumns mergeTo(PartitionColumns that)
{
  if (this == that)
    return this;
  Columns statics = this.statics.mergeTo(that.statics);
  Columns regulars = this.regulars.mergeTo(that.regulars);
  if (statics == this.statics && regulars == this.regulars)
    return this;
  if (statics == that.statics && regulars == that.regulars)
    return that;
  return new PartitionColumns(statics, regulars);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public PartitionColumns mergeTo(PartitionColumns that)
{
  if (this == that)
    return this;
  Columns statics = this.statics.mergeTo(that.statics);
  Columns regulars = this.regulars.mergeTo(that.regulars);
  if (statics == this.statics && regulars == this.regulars)
    return this;
  if (statics == that.statics && regulars == that.regulars)
    return that;
  return new PartitionColumns(statics, regulars);
}
origin: com.strapdata.cassandra/cassandra-all

public PartitionColumns mergeTo(PartitionColumns that)
{
  if (this == that)
    return this;
  Columns statics = this.statics.mergeTo(that.statics);
  Columns regulars = this.regulars.mergeTo(that.regulars);
  if (statics == this.statics && regulars == this.regulars)
    return this;
  if (statics == that.statics && regulars == that.regulars)
    return that;
  return new PartitionColumns(statics, regulars);
}
origin: jsevellec/cassandra-unit

public static PartitionColumns of(ColumnDefinition column)
{
  return new PartitionColumns(column.isStatic() ? Columns.of(column) : Columns.NONE,
                column.isStatic() ? Columns.NONE : Columns.of(column));
}
origin: jsevellec/cassandra-unit

  public PartitionColumns build()
  {
    return new PartitionColumns(staticColumns == null ? Columns.NONE : Columns.from(staticColumns.build()),
                  regularColumns == null ? Columns.NONE : Columns.from(regularColumns.build()));
  }
}
origin: jsevellec/cassandra-unit

public PartitionColumns without(ColumnDefinition column)
{
  return new PartitionColumns(column.isStatic() ? statics.without(column) : statics,
                column.isStatic() ? regulars : regulars.without(column));
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public static PartitionColumns of(ColumnDefinition column)
{
  return new PartitionColumns(column.isStatic() ? Columns.of(column) : Columns.NONE,
                column.isStatic() ? Columns.NONE : Columns.of(column));
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public PartitionColumns without(ColumnDefinition column)
{
  return new PartitionColumns(column.isStatic() ? statics.without(column) : statics,
                column.isStatic() ? regulars : regulars.without(column));
}
origin: com.strapdata.cassandra/cassandra-all

public PartitionColumns without(ColumnDefinition column)
{
  return new PartitionColumns(column.isStatic() ? statics.without(column) : statics,
                column.isStatic() ? regulars : regulars.without(column));
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

  public PartitionColumns build()
  {
    return new PartitionColumns(staticColumns == null ? Columns.NONE : Columns.from(staticColumns.build()),
                  regularColumns == null ? Columns.NONE : Columns.from(regularColumns.build()));
  }
}
origin: com.strapdata.cassandra/cassandra-all

public static UnfilteredRowIterator unfilteredRow(CFMetaData metadata, DecoratedKey partitionKey, boolean isReverseOrder, Row staticRow, DeletionTime partitionDeletion)
{
  PartitionColumns columns = PartitionColumns.NONE;
  if (!staticRow.isEmpty())
    columns = new PartitionColumns(Columns.from(staticRow.columns()), Columns.NONE);
  else
    staticRow = Rows.EMPTY_STATIC_ROW;
  if (partitionDeletion.isLive())
    partitionDeletion = DeletionTime.LIVE;
  return new EmptyUnfilteredRowIterator(columns, metadata, partitionKey, isReverseOrder, staticRow, partitionDeletion);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public static UnfilteredRowIterator unfilteredRow(CFMetaData metadata, DecoratedKey partitionKey, boolean isReverseOrder, Row staticRow, DeletionTime partitionDeletion)
{
  PartitionColumns columns = PartitionColumns.NONE;
  if (!staticRow.isEmpty())
    columns = new PartitionColumns(Columns.from(staticRow.columns()), Columns.NONE);
  else
    staticRow = Rows.EMPTY_STATIC_ROW;
  if (partitionDeletion.isLive())
    partitionDeletion = DeletionTime.LIVE;
  return new EmptyUnfilteredRowIterator(columns, metadata, partitionKey, isReverseOrder, staticRow, partitionDeletion);
}
origin: org.apache.cassandra/cassandra-all

public static UnfilteredRowIterator unfilteredRow(CFMetaData metadata, DecoratedKey partitionKey, boolean isReverseOrder, Row staticRow, DeletionTime partitionDeletion)
{
  PartitionColumns columns = PartitionColumns.NONE;
  if (!staticRow.isEmpty())
    columns = new PartitionColumns(Columns.from(staticRow.columns()), Columns.NONE);
  else
    staticRow = Rows.EMPTY_STATIC_ROW;
  if (partitionDeletion.isLive())
    partitionDeletion = DeletionTime.LIVE;
  return new EmptyUnfilteredRowIterator(columns, metadata, partitionKey, isReverseOrder, staticRow, partitionDeletion);
}
org.apache.cassandra.dbPartitionColumns<init>

Popular methods of PartitionColumns

  • size
    * Returns the total number of static and regular columns.
  • builder
  • columns
  • contains
  • equals
  • isEmpty
  • mergeTo
  • selectOrderIterator
  • iterator
  • of
  • without
  • withoutStatics
  • without,
  • withoutStatics

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best plugins for Eclipse
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