Codota Logo
MultiColumnRelation$SuperColumnMultiColumnRelation
Code IndexAdd Codota to your IDE (free)

How to use
MultiColumnRelation$SuperColumnMultiColumnRelation
in
org.apache.cassandra.cql3

Best Java code snippets using org.apache.cassandra.cql3.MultiColumnRelation$SuperColumnMultiColumnRelation (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: jsevellec/cassandra-unit

  @Override
  protected List<ColumnDefinition> receivers(CFMetaData cfm) throws InvalidRequestException
  {
    assert cfm.isSuper() && cfm.isDense();
    List<ColumnDefinition> names = new ArrayList<>(getEntities().size());
    for (ColumnDefinition.Raw raw : getEntities())
    {
      ColumnDefinition def = raw.prepare(cfm);
      checkTrue(def.isClusteringColumn() ||
           cfm.isSuperColumnKeyColumn(def),
           "Multi-column relations can only be applied to clustering columns but was applied to: %s", def.name);
      checkFalse(names.contains(def), "Column \"%s\" appeared twice in a relation: %s", def.name, this);
      names.add(def);
    }
    return names;
  }
}
origin: org.apache.cassandra/cassandra-all

@Override
protected Restriction newEQRestriction(CFMetaData cfm,
                    VariableSpecifications boundNames) throws InvalidRequestException
{
  assert cfm.isSuper() && cfm.isDense();
  List<ColumnDefinition> receivers = receivers(cfm);
  Term term = toTerm(receivers, getValue(), cfm.ksName, boundNames);
  return new SingleColumnRestriction.SuperColumnMultiEQRestriction(receivers.get(0), term);
}
origin: com.strapdata.cassandra/cassandra-all

@Override
protected Restriction newSliceRestriction(CFMetaData cfm,
                     VariableSpecifications boundNames,
                     Bound bound,
                     boolean inclusive) throws InvalidRequestException
{
  assert cfm.isSuper() && cfm.isDense();
  List<ColumnDefinition> receivers = receivers(cfm);
  Term term = toTerm(receivers, getValue(), cfm.ksName, boundNames);
  return new SingleColumnRestriction.SuperColumnMultiSliceRestriction(receivers.get(0), bound, inclusive, term);
}
origin: jsevellec/cassandra-unit

@Override
protected Restriction newSliceRestriction(CFMetaData cfm,
                     VariableSpecifications boundNames,
                     Bound bound,
                     boolean inclusive) throws InvalidRequestException
{
  assert cfm.isSuper() && cfm.isDense();
  List<ColumnDefinition> receivers = receivers(cfm);
  Term term = toTerm(receivers, getValue(), cfm.ksName, boundNames);
  return new SingleColumnRestriction.SuperColumnMultiSliceRestriction(receivers.get(0), bound, inclusive, term);
}
origin: jsevellec/cassandra-unit

@Override
public Relation toSuperColumnAdapter()
{
  return new SuperColumnMultiColumnRelation(entities, relationType, valuesOrMarker, inValues, inMarker);
}
origin: com.strapdata.cassandra/cassandra-all

@Override
protected Restriction newEQRestriction(CFMetaData cfm,
                    VariableSpecifications boundNames) throws InvalidRequestException
{
  assert cfm.isSuper() && cfm.isDense();
  List<ColumnDefinition> receivers = receivers(cfm);
  Term term = toTerm(receivers, getValue(), cfm.ksName, boundNames);
  return new SingleColumnRestriction.SuperColumnMultiEQRestriction(receivers.get(0), term);
}
origin: org.apache.cassandra/cassandra-all

@Override
protected Restriction newSliceRestriction(CFMetaData cfm,
                     VariableSpecifications boundNames,
                     Bound bound,
                     boolean inclusive) throws InvalidRequestException
{
  assert cfm.isSuper() && cfm.isDense();
  List<ColumnDefinition> receivers = receivers(cfm);
  Term term = toTerm(receivers, getValue(), cfm.ksName, boundNames);
  return new SingleColumnRestriction.SuperColumnMultiSliceRestriction(receivers.get(0), bound, inclusive, term);
}
origin: com.strapdata.cassandra/cassandra-all

@Override
public Relation toSuperColumnAdapter()
{
  return new SuperColumnMultiColumnRelation(entities, relationType, valuesOrMarker, inValues, inMarker);
}
origin: org.apache.cassandra/cassandra-all

@Override
public Relation toSuperColumnAdapter()
{
  return new SuperColumnMultiColumnRelation(entities, relationType, valuesOrMarker, inValues, inMarker);
}
origin: org.apache.cassandra/cassandra-all

  @Override
  protected List<ColumnDefinition> receivers(CFMetaData cfm) throws InvalidRequestException
  {
    assert cfm.isSuper() && cfm.isDense();
    List<ColumnDefinition> names = new ArrayList<>(getEntities().size());
    for (ColumnDefinition.Raw raw : getEntities())
    {
      ColumnDefinition def = raw.prepare(cfm);
      checkTrue(def.isClusteringColumn() ||
           cfm.isSuperColumnKeyColumn(def),
           "Multi-column relations can only be applied to clustering columns but was applied to: %s", def.name);
      checkFalse(names.contains(def), "Column \"%s\" appeared twice in a relation: %s", def.name, this);
      names.add(def);
    }
    return names;
  }
}
origin: com.strapdata.cassandra/cassandra-all

  @Override
  protected List<ColumnDefinition> receivers(CFMetaData cfm) throws InvalidRequestException
  {
    assert cfm.isSuper() && cfm.isDense();
    List<ColumnDefinition> names = new ArrayList<>(getEntities().size());
    for (ColumnDefinition.Raw raw : getEntities())
    {
      ColumnDefinition def = raw.prepare(cfm);
      checkTrue(def.isClusteringColumn() ||
           cfm.isSuperColumnKeyColumn(def),
           "Multi-column relations can only be applied to clustering columns but was applied to: %s", def.name);
      checkFalse(names.contains(def), "Column \"%s\" appeared twice in a relation: %s", def.name, this);
      names.add(def);
    }
    return names;
  }
}
origin: jsevellec/cassandra-unit

@Override
protected Restriction newEQRestriction(CFMetaData cfm,
                    VariableSpecifications boundNames) throws InvalidRequestException
{
  assert cfm.isSuper() && cfm.isDense();
  List<ColumnDefinition> receivers = receivers(cfm);
  Term term = toTerm(receivers, getValue(), cfm.ksName, boundNames);
  return new SingleColumnRestriction.SuperColumnMultiEQRestriction(receivers.get(0), term);
}
org.apache.cassandra.cql3MultiColumnRelation$SuperColumnMultiColumnRelation

Javadoc

Required for SuperColumn compatibility, in order to map the SuperColumn key restrictions from the regular column to the collection key one.

Most used methods

  • <init>
  • getEntities
  • getValue
  • receivers
  • toTerm

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getSystemService (Context)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JButton (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
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