Codota Logo
ColumnCondition$UDTFieldAccessInBound
Code IndexAdd Codota to your IDE (free)

How to use
ColumnCondition$UDTFieldAccessInBound
in
org.apache.cassandra.cql3

Best Java code snippets using org.apache.cassandra.cql3.ColumnCondition$UDTFieldAccessInBound (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: jsevellec/cassandra-unit

public ColumnCondition.Bound bind(QueryOptions options) throws InvalidRequestException
{
  boolean isInCondition = operator == Operator.IN;
  if (column.type instanceof CollectionType)
  {
    if (collectionElement != null)
      return isInCondition ? new ElementAccessInBound(this, options) : new ElementAccessBound(this, options);
    else
      return isInCondition ? new CollectionInBound(this, options) : new CollectionBound(this, options);
  }
  else if (column.type.isUDT())
  {
    if (field != null)
      return isInCondition ? new UDTFieldAccessInBound(this, options) : new UDTFieldAccessBound(this, options);
    else
      return isInCondition ? new UDTInBound(this, options) : new UDTBound(this, options);
  }
  return isInCondition ? new SimpleInBound(this, options) : new SimpleBound(this, options);
}
origin: org.apache.cassandra/cassandra-all

  public boolean appliesTo(Row row) throws InvalidRequestException
  {
    UserType userType = (UserType) column.type;
    int fieldPosition = userType.fieldPosition(field);
    assert fieldPosition >= 0;
    ByteBuffer cellValue;
    if (column.type.isMultiCell())
    {
      Cell cell = getCell(row, column, userType.cellPathForField(field));
      cellValue = cell == null ? null : cell.value();
    }
    else
    {
      Cell cell = getCell(row, column);
      cellValue = cell == null ? null : userType.split(getCell(row, column).value())[fieldPosition];
    }
    AbstractType<?> valueType = userType.fieldType(fieldPosition);
    for (ByteBuffer value : inValues)
    {
      if (compareWithOperator(Operator.EQ, valueType, value, cellValue))
        return true;
    }
    return false;
  }
}
origin: org.apache.cassandra/cassandra-all

public ColumnCondition.Bound bind(QueryOptions options) throws InvalidRequestException
{
  boolean isInCondition = operator == Operator.IN;
  if (column.type instanceof CollectionType)
  {
    if (collectionElement != null)
      return isInCondition ? new ElementAccessInBound(this, options) : new ElementAccessBound(this, options);
    else
      return isInCondition ? new CollectionInBound(this, options) : new CollectionBound(this, options);
  }
  else if (column.type.isUDT())
  {
    if (field != null)
      return isInCondition ? new UDTFieldAccessInBound(this, options) : new UDTFieldAccessBound(this, options);
    else
      return isInCondition ? new UDTInBound(this, options) : new UDTBound(this, options);
  }
  return isInCondition ? new SimpleInBound(this, options) : new SimpleBound(this, options);
}
origin: com.strapdata.cassandra/cassandra-all

public ColumnCondition.Bound bind(QueryOptions options) throws InvalidRequestException
{
  boolean isInCondition = operator == Operator.IN;
  if (column.type instanceof CollectionType)
  {
    if (collectionElement != null)
      return isInCondition ? new ElementAccessInBound(this, options) : new ElementAccessBound(this, options);
    else
      return isInCondition ? new CollectionInBound(this, options) : new CollectionBound(this, options);
  }
  else if (column.type.isUDT())
  {
    if (field != null)
      return isInCondition ? new UDTFieldAccessInBound(this, options) : new UDTFieldAccessBound(this, options);
    else
      return isInCondition ? new UDTInBound(this, options) : new UDTBound(this, options);
  }
  return isInCondition ? new SimpleInBound(this, options) : new SimpleBound(this, options);
}
origin: jsevellec/cassandra-unit

  public boolean appliesTo(Row row) throws InvalidRequestException
  {
    UserType userType = (UserType) column.type;
    int fieldPosition = userType.fieldPosition(field);
    assert fieldPosition >= 0;
    ByteBuffer cellValue;
    if (column.type.isMultiCell())
    {
      Cell cell = getCell(row, column, userType.cellPathForField(field));
      cellValue = cell == null ? null : cell.value();
    }
    else
    {
      Cell cell = getCell(row, column);
      cellValue = cell == null ? null : userType.split(getCell(row, column).value())[fieldPosition];
    }
    AbstractType<?> valueType = userType.fieldType(fieldPosition);
    for (ByteBuffer value : inValues)
    {
      if (compareWithOperator(Operator.EQ, valueType, value, cellValue))
        return true;
    }
    return false;
  }
}
origin: com.strapdata.cassandra/cassandra-all

  public boolean appliesTo(Row row) throws InvalidRequestException
  {
    UserType userType = (UserType) column.type;
    int fieldPosition = userType.fieldPosition(field);
    assert fieldPosition >= 0;
    ByteBuffer cellValue;
    if (column.type.isMultiCell())
    {
      Cell cell = getCell(row, column, userType.cellPathForField(field));
      cellValue = cell == null ? null : cell.value();
    }
    else
    {
      Cell cell = getCell(row, column);
      cellValue = cell == null ? null : userType.split(getCell(row, column).value())[fieldPosition];
    }
    AbstractType<?> valueType = userType.fieldType(fieldPosition);
    for (ByteBuffer value : inValues)
    {
      if (compareWithOperator(Operator.EQ, valueType, value, cellValue))
        return true;
    }
    return false;
  }
}
org.apache.cassandra.cql3ColumnCondition$UDTFieldAccessInBound

Javadoc

An IN condition on a UDT field. For example: IF user.name IN ('a', 'b')

Most used methods

  • <init>
  • compareWithOperator

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
  • startActivity (Activity)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • BoxLayout (javax.swing)
  • JLabel (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