@Test public void testEmpty() { statement.setConsistencyLevel(ConsistencyLevel.ALL); statement.setDefaultTimestamp(999L); statement.enableTracing(); statement.setFetchSize(123); statement.setRetryPolicy(FallthroughRetryPolicy.INSTANCE); statement.setSerialConsistencyLevel(ConsistencyLevel.SERIAL); StatementOptionsBuilder.empty().applyTo(statement); assertEquals(ConsistencyLevel.ALL, statement.getConsistencyLevel()); assertEquals(999L, statement.getDefaultTimestamp()); assertTrue(statement.isTracing()); assertEquals(123, statement.getFetchSize()); assertEquals(FallthroughRetryPolicy.INSTANCE, statement.getRetryPolicy()); assertEquals(ConsistencyLevel.SERIAL, statement.getSerialConsistencyLevel()); }
public static StatementOptions empty() { return EMPTY; }
StatementOptionsBuilder { public static StatementOptions empty() { return EMPTY; } }
StatementOptionsBuilder { public static StatementOptions empty() { return EMPTY; } StatementOptionsBuilder(); }
StatementOptionsBuilder { public static StatementOptions empty() { return EMPTY; } StatementOptionsBuilder(); static StatementOptionsBuilder consistencyLevel(ConsistencyLevel level); static StatementOptionsBuilder defaultTimestamp(long timestamp); static StatementOptionsBuilder disableTracing(); static StatementOptions empty(); static StatementOptionsBuilder enableTracing(); static StatementOptionsBuilder fetchSize(int size); static StatementOptionsBuilder retryPolicy(RetryPolicy policy); static StatementOptionsBuilder serialConsistencyLevel(ConsistencyLevel level); StatementOptions build(); StatementOptionsBuilder withConsistencyLevel(ConsistencyLevel level); }
StatementOptionsBuilder { public static StatementOptions empty() { return EMPTY; } StatementOptionsBuilder(); static StatementOptionsBuilder consistencyLevel(ConsistencyLevel level); static StatementOptionsBuilder defaultTimestamp(long timestamp); static StatementOptionsBuilder disableTracing(); static StatementOptions empty(); static StatementOptionsBuilder enableTracing(); static StatementOptionsBuilder fetchSize(int size); static StatementOptionsBuilder retryPolicy(RetryPolicy policy); static StatementOptionsBuilder serialConsistencyLevel(ConsistencyLevel level); StatementOptions build(); StatementOptionsBuilder withConsistencyLevel(ConsistencyLevel level);  }