Codota Logo
SingleColumnRestriction$SuperColumnMultiSliceRestriction
Code IndexAdd Codota to your IDE (free)

How to use
SingleColumnRestriction$SuperColumnMultiSliceRestriction
in
org.apache.cassandra.cql3.restrictions

Best Java code snippets using org.apache.cassandra.cql3.restrictions.SingleColumnRestriction$SuperColumnMultiSliceRestriction (Showing top 9 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 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 MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options)
  {
    Bound b = bound.reverseIfNeeded(getFirstColumn());
    if (!hasBound(b))
      return builder;
    Term term = slice.bound(b);
    assert (term instanceof Tuples.Value);
    firstValue = ((Tuples.Value)term).getElements().get(0);
    secondValue = ((Tuples.Value)term).getElements().get(1);
    checkBindValueSet(firstValue, "Invalid unset value for column %s", columnDef.name);
    checkBindValueSet(secondValue, "Invalid unset value for column %s", columnDef.name);
    return builder.addElementToAll(firstValue);
  }
}
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
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: org.apache.cassandra/cassandra-all

  @Override
  public MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options)
  {
    Bound b = bound.reverseIfNeeded(getFirstColumn());
    if (!hasBound(b))
      return builder;
    Term term = slice.bound(b);
    assert (term instanceof Tuples.Value);
    firstValue = ((Tuples.Value)term).getElements().get(0);
    secondValue = ((Tuples.Value)term).getElements().get(1);
    checkBindValueSet(firstValue, "Invalid unset value for column %s", columnDef.name);
    checkBindValueSet(secondValue, "Invalid unset value for column %s", columnDef.name);
    return builder.addElementToAll(firstValue);
  }
}
origin: com.strapdata.cassandra/cassandra-all

  @Override
  public MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options)
  {
    Bound b = bound.reverseIfNeeded(getFirstColumn());
    if (!hasBound(b))
      return builder;
    Term term = slice.bound(b);
    assert (term instanceof Tuples.Value);
    firstValue = ((Tuples.Value)term).getElements().get(0);
    secondValue = ((Tuples.Value)term).getElements().get(1);
    checkBindValueSet(firstValue, "Invalid unset value for column %s", columnDef.name);
    checkBindValueSet(secondValue, "Invalid unset value for column %s", columnDef.name);
    return builder.addElementToAll(firstValue);
  }
}
origin: org.apache.cassandra/cassandra-all

(restrictions.multiSliceRestriction.hasBound(Bound.END) && cmp > 0) || // LT
(restrictions.multiSliceRestriction.hasBound(Bound.START) && cmp < 0)) // GT
continue outer;
origin: jsevellec/cassandra-unit

(restrictions.multiSliceRestriction.hasBound(Bound.END) && cmp > 0) || // LT
(restrictions.multiSliceRestriction.hasBound(Bound.START) && cmp < 0)) // GT
continue outer;
origin: com.strapdata.cassandra/cassandra-all

(restrictions.multiSliceRestriction.hasBound(Bound.END) && cmp > 0) || // LT
(restrictions.multiSliceRestriction.hasBound(Bound.START) && cmp < 0)) // GT
continue outer;
org.apache.cassandra.cql3.restrictionsSingleColumnRestriction$SuperColumnMultiSliceRestriction

Most used methods

  • <init>
  • getFirstColumn
  • hasBound

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFileChooser (javax.swing)
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