Package com.datastax.driver.core.querybuilder

Examples of com.datastax.driver.core.querybuilder.Insert.using()


        .value(QUALIFIER_COL, column.getQualifierBuffer())
        .value(VERSION_COL, version)
        .value(VALUE_COL, value);

    if (ttl != null && ttl < 630720000) { // 630720000 is the maximum Cassandra TTL
      insert.using(ttl(ttl));
    }

    return insert;
  }
View Full Code Here


        for (PropertyMeta pm : pms) {
            String cql3ColumnName = pm.getCQL3ColumnName();
            insert.value(cql3ColumnName, bindMarker(cql3ColumnName));
        }

        final Insert.Options insertOptions = insert.using(ttl(bindMarker("ttl")));
        if (options.getTimestamp().isPresent()) {
            insertOptions.and(timestamp(bindMarker("timestamp")));
        }
        return session.prepare(insert.getQueryString());
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.