Codota Logo
org.apache.cassandra.cql3.statements
Code IndexAdd Codota to your IDE (free)

How to use org.apache.cassandra.cql3.statements

Best Java code snippets using org.apache.cassandra.cql3.statements (Showing top 20 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: com.facebook.presto.cassandra/cassandra-server

public void setBound(Restriction.Slice slice) throws InvalidRequestException
{
  for (Bound bound : Bound.values())
    if (slice.hasBound(bound))
      setBound(bound, slice.isInclusive(bound), slice.bound(bound));
}
origin: com.facebook.presto.cassandra/cassandra-server

public ParsedStatement.Prepared prepare() throws InvalidRequestException
{
  VariableSpecifications boundNames = getBoundVariables();
  ModificationStatement statement = prepare(boundNames);
  return new ParsedStatement.Prepared(statement, boundNames);
}
origin: com.facebook.presto.cassandra/cassandra-server

private static Selector makeSelector(CFMetaData cfm, RawSelector raw, List<ColumnDefinition> defs, SelectionColumnMapping columnMapping) throws InvalidRequestException
{
  Selectable selectable = raw.selectable.prepare(cfm);
  return makeSelector(cfm, selectable, raw.alias, defs, columnMapping);
}
origin: org.apache.cassandra/cassandra-all

public void addExist(Clustering clustering) throws InvalidRequestException
{
  addExistsCondition(clustering, new ExistCondition(clustering), false);
}
origin: org.apache.cassandra/cassandra-all

public void addNotExist(Clustering clustering) throws InvalidRequestException
{
  addExistsCondition(clustering, new NotExistCondition(clustering), true);
}
origin: org.apache.cassandra/cassandra-all

public Integer getInt(String key, Integer defaultValue) throws SyntaxException
{
  String value = getSimple(key);
  return toInt(key, value, defaultValue);
}
origin: org.apache.cassandra/cassandra-all

@Override
public final void addRowFilterTo(RowFilter filter,
                 SecondaryIndexManager indexManager,
                 QueryOptions options)
{
  throw invalidRequest("Multi-column slice restrictions cannot be used for filtering.");
}
origin: org.apache.cassandra/cassandra-all

@Override
public Prepared prepare(ClientState clientState)
{
  return new Prepared(this);
}
origin: org.apache.cassandra/cassandra-all

private static ResultSet.ResultMetadata extractResultMetadata(CQLStatement statement)
{
  if (!(statement instanceof SelectStatement))
    return ResultSet.ResultMetadata.EMPTY;
  return ((SelectStatement)statement).getResultMetadata();
}
origin: org.apache.cassandra/cassandra-all

/**
 * Checks that the modification only apply to static columns.
 * @return <code>true</code> if the modification only apply to static columns, <code>false</code> otherwise.
 */
private boolean appliesOnlyToStaticColumns()
{
  return appliesOnlyToStaticColumns(operations, conditions);
}
origin: org.apache.cassandra/cassandra-all

/**
 * Returns the index operator corresponding to the specified boundary.
 *
 * @param b the boundary type
 * @return the index operator corresponding to the specified boundary
 */
public Operator getIndexOperator(Bound b)
{
  if (b.isStart())
    return boundInclusive[b.idx] ? Operator.GTE : Operator.GT;
  return boundInclusive[b.idx] ? Operator.LTE : Operator.LT;
}
origin: org.apache.cassandra/cassandra-all

public String columnFamily()
{
  CFMetaData cfm = lookupIndexedTable();
  return cfm == null ? null : cfm.cfName;
}
origin: com.facebook.presto.cassandra/cassandra-server

public void addKeyValue(ColumnDefinition def, Term value) throws InvalidRequestException
{
  addKeyValues(def, new SingleColumnRestriction.EQ(value, false));
}
origin: com.facebook.presto.cassandra/cassandra-server

private static boolean isNullRestriction(Restriction r, Bound b)
{
  return r == null || (r.isSlice() && !((Restriction.Slice)r).hasBound(b));
}
origin: jsevellec/cassandra-unit

public void addExist(Clustering clustering) throws InvalidRequestException
{
  addExistsCondition(clustering, new ExistCondition(clustering), false);
}
origin: jsevellec/cassandra-unit

public void addNotExist(Clustering clustering) throws InvalidRequestException
{
  addExistsCondition(clustering, new NotExistCondition(clustering), true);
}
origin: org.apache.cassandra/cassandra-all

@Override
public SingleRestriction doMergeWith(SingleRestriction otherRestriction)
{
  throw invalidRequest("%s cannot be restricted by more than one relation if it includes an Equal", columnDef.name);
}
origin: com.strapdata.cassandra/cassandra-all

public void addExist(Clustering clustering) throws InvalidRequestException
{
  addExistsCondition(clustering, new ExistCondition(clustering), false);
}
origin: com.strapdata.cassandra/cassandra-all

public void addNotExist(Clustering clustering) throws InvalidRequestException
{
  addExistsCondition(clustering, new NotExistCondition(clustering), true);
}
origin: org.apache.cassandra/cassandra-all

@Override
public SingleRestriction doMergeWith(SingleRestriction otherRestriction)
{
  throw invalidRequest("%s cannot be restricted by more than one relation if it includes a %s", columnDef.name, operator);
}
org.apache.cassandra.cql3.statements

Most used classes

  • ModificationStatement
  • ParsedStatement
  • SelectStatement
    Encapsulates a completely parsed SELECT query, including the target column family, expression, resul
  • AlterKeyspaceStatement
  • AlterTableStatement
  • AlterTypeStatement,
  • AuthenticationStatement,
  • AuthorizationStatement,
  • BatchStatement$Parsed,
  • BatchStatement,
  • Bound,
  • CFStatement,
  • CQL3CasRequest$ColumnsConditions,
  • CQL3CasRequest$ExistCondition,
  • CQL3CasRequest$NotExistCondition,
  • CQL3CasRequest$RowCondition,
  • CQL3CasRequest$RowUpdate,
  • CQL3CasRequest,
  • CreateIndexStatement
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