@Test public void testFetchSize() throws Exception { statement.setFetchSize(123); assertEquals(123, statement.getFetchSize()); StatementOptionsBuilder.fetchSize(456).build().applyTo(statement); assertEquals(456, statement.getFetchSize()); }
public static StatementOptionsBuilder fetchSize(int size) { return new StatementOptionsBuilder().withFetchSize(size); }
StatementOptionsBuilder { public static StatementOptionsBuilder fetchSize(int size) { return new StatementOptionsBuilder().withFetchSize(size); } }
StatementOptionsBuilder { public static StatementOptionsBuilder fetchSize(int size) { return new StatementOptionsBuilder().withFetchSize(size); } StatementOptionsBuilder(); }
StatementOptionsBuilder { public static StatementOptionsBuilder fetchSize(int size) { return new StatementOptionsBuilder().withFetchSize(size); } 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 StatementOptionsBuilder fetchSize(int size) { return new StatementOptionsBuilder().withFetchSize(size); } 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);  }