@Test public void version_19_38_0_supports_cas() { CassandraApiVersion version = new CassandraApiVersion("19.38.0"); assertThat(version.supportsCheckAndSet(), is(true)); }
public boolean supportsCheckAndSet() { boolean supportsCheckAndSet = majorVersion > 19 || (majorVersion == 19 && minorVersion >= 37); if (supportsCheckAndSet) { LOGGER.info("Your cassandra api version ({}) supports check and set.", SafeArg.of("cassandraVersion", versionString)); } else { LOGGER.info("Your cassandra api version ({}) does not support check and set.", SafeArg.of("cassandraVersion", versionString)); } return supportsCheckAndSet; }
CassandraApiVersion { public boolean supportsCheckAndSet() { boolean supportsCheckAndSet = majorVersion > 19 || (majorVersion == 19 && minorVersion >= 37); if (supportsCheckAndSet) { LOGGER.info("Your cassandra api version ({}) supports check and set.", SafeArg.of("cassandraVersion", versionString)); } else { LOGGER.info("Your cassandra api version ({}) does not support check and set.", SafeArg.of("cassandraVersion", versionString)); } return supportsCheckAndSet; } }
CassandraApiVersion { public boolean supportsCheckAndSet() { boolean supportsCheckAndSet = majorVersion > 19 || (majorVersion == 19 && minorVersion >= 37); if (supportsCheckAndSet) { LOGGER.info("Your cassandra api version ({}) supports check and set.", SafeArg.of("cassandraVersion", versionString)); } else { LOGGER.info("Your cassandra api version ({}) does not support check and set.", SafeArg.of("cassandraVersion", versionString)); } return supportsCheckAndSet; } CassandraApiVersion(String versionString); }
CassandraApiVersion { public boolean supportsCheckAndSet() { boolean supportsCheckAndSet = majorVersion > 19 || (majorVersion == 19 && minorVersion >= 37); if (supportsCheckAndSet) { LOGGER.info("Your cassandra api version ({}) supports check and set.", SafeArg.of("cassandraVersion", versionString)); } else { LOGGER.info("Your cassandra api version ({}) does not support check and set.", SafeArg.of("cassandraVersion", versionString)); } return supportsCheckAndSet; } CassandraApiVersion(String versionString); boolean supportsCheckAndSet(); @Override String toString(); }
CassandraApiVersion { public boolean supportsCheckAndSet() { boolean supportsCheckAndSet = majorVersion > 19 || (majorVersion == 19 && minorVersion >= 37); if (supportsCheckAndSet) { LOGGER.info("Your cassandra api version ({}) supports check and set.", SafeArg.of("cassandraVersion", versionString)); } else { LOGGER.info("Your cassandra api version ({}) does not support check and set.", SafeArg.of("cassandraVersion", versionString)); } return supportsCheckAndSet; } CassandraApiVersion(String versionString); boolean supportsCheckAndSet(); @Override String toString();  }