Codota Logo
Restriction.isOnToken
Code IndexAdd Codota to your IDE (free)

How to use
isOnToken
method
in
org.apache.cassandra.cql3.restrictions.Restriction

Best Java code snippets using org.apache.cassandra.cql3.restrictions.Restriction.isOnToken (Showing top 9 results out of 315)

  • Common ways to obtain Restriction
private void myMethod () {
Restriction r =
  • Codota IconSingleColumnRelation singleColumnRelation;singleColumnRelation.newSliceRestriction(cfm, boundNames, bound, inclusive)
  • Codota IconSingleColumnRelation singleColumnRelation;singleColumnRelation.newEQRestriction(cfm, boundNames)
  • Codota IconSingleColumnRelation singleColumnRelation;singleColumnRelation.newINRestriction(cfm, boundNames)
  • Smart code suggestions by Codota
}
origin: jsevellec/cassandra-unit

@Override
public PartitionKeyRestrictions mergeWith(Restriction restriction)
{
  if (restriction.isOnToken())
  {
    if (isEmpty())
      return (PartitionKeyRestrictions) restriction;
    return new TokenFilter(this, (TokenRestriction) restriction);
  }
  return new PartitionKeySingleRestrictionSet(this, (SingleRestriction) restriction);
}
origin: org.apache.cassandra/cassandra-all

@Override
public PartitionKeyRestrictions mergeWith(Restriction restriction)
{
  if (restriction.isOnToken())
  {
    if (isEmpty())
      return (PartitionKeyRestrictions) restriction;
    return new TokenFilter(this, (TokenRestriction) restriction);
  }
  return new PartitionKeySingleRestrictionSet(this, (SingleRestriction) restriction);
}
origin: org.apache.cassandra/cassandra-all

@Override
public final PartitionKeyRestrictions mergeWith(Restriction otherRestriction) throws InvalidRequestException
{
  if (!otherRestriction.isOnToken())
    return new TokenFilter(toPartitionKeyRestrictions(otherRestriction), this);
  return doMergeWith((TokenRestriction) otherRestriction);
}
origin: jsevellec/cassandra-unit

@Override
public final PartitionKeyRestrictions mergeWith(Restriction otherRestriction) throws InvalidRequestException
{
  if (!otherRestriction.isOnToken())
    return new TokenFilter(toPartitionKeyRestrictions(otherRestriction), this);
  return doMergeWith((TokenRestriction) otherRestriction);
}
origin: com.strapdata.cassandra/cassandra-all

@Override
public PartitionKeyRestrictions mergeWith(Restriction restriction)
{
  if (restriction.isOnToken())
  {
    if (isEmpty())
      return (PartitionKeyRestrictions) restriction;
    return new TokenFilter(this, (TokenRestriction) restriction);
  }
  return new PartitionKeySingleRestrictionSet(this, (SingleRestriction) restriction);
}
origin: com.strapdata.cassandra/cassandra-all

@Override
public final PartitionKeyRestrictions mergeWith(Restriction otherRestriction) throws InvalidRequestException
{
  if (!otherRestriction.isOnToken())
    return new TokenFilter(toPartitionKeyRestrictions(otherRestriction), this);
  return doMergeWith((TokenRestriction) otherRestriction);
}
origin: jsevellec/cassandra-unit

@Override
public PartitionKeyRestrictions mergeWith(Restriction restriction) throws InvalidRequestException
{
  if (restriction.isOnToken())
    return new TokenFilter(restrictions, (TokenRestriction) tokenRestriction.mergeWith(restriction));
  return new TokenFilter(restrictions.mergeWith(restriction), tokenRestriction);
}
origin: org.apache.cassandra/cassandra-all

@Override
public PartitionKeyRestrictions mergeWith(Restriction restriction) throws InvalidRequestException
{
  if (restriction.isOnToken())
    return new TokenFilter(restrictions, (TokenRestriction) tokenRestriction.mergeWith(restriction));
  return new TokenFilter(restrictions.mergeWith(restriction), tokenRestriction);
}
origin: com.strapdata.cassandra/cassandra-all

@Override
public PartitionKeyRestrictions mergeWith(Restriction restriction) throws InvalidRequestException
{
  if (restriction.isOnToken())
    return new TokenFilter(restrictions, (TokenRestriction) tokenRestriction.mergeWith(restriction));
  return new TokenFilter(restrictions.mergeWith(restriction), tokenRestriction);
}
org.apache.cassandra.cql3.restrictionsRestrictionisOnToken

Popular methods of Restriction

  • addFunctionsTo
    Adds all functions (native and user-defined) used by any component of the restriction to the specifi
  • addRowFilterTo
    Adds to the specified row filter the expressions corresponding to this Restriction.
  • getColumnDefs
    Returns the column definitions in position order.
  • getFirstColumn
    Returns the definition of the first column.
  • hasSupportingIndex
    Check if the restriction is on indexed columns.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
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