List of usage examples for org.apache.cassandra.repair RepairParallelism toString
@Override
public String toString()
From source file:com.spotify.reaper.storage.postgresql.RepairParallelismArgumentFactory.java
License:Apache License
@Override public Argument build(Class<?> expectedType, final RepairParallelism value, StatementContext ctx) { return new Argument() { public void apply(int position, PreparedStatement statement, StatementContext ctx) throws SQLException { statement.setString(position, value.toString()); }/* w ww . j a va 2 s . c o m*/ }; }
From source file:io.cassandrareaper.storage.postgresql.RepairParallelismArgumentFactory.java
License:Apache License
@Override public Argument build(Class<?> expectedType, final RepairParallelism value, StatementContext ctx) { return (int position, PreparedStatement statement, StatementContext ctx1) -> { statement.setString(position, value.toString()); };/* ww w .ja v a 2s.c o m*/ }