Example usage for org.apache.cassandra.repair RepairParallelism toString

List of usage examples for org.apache.cassandra.repair RepairParallelism toString

Introduction

In this page you can find the example usage for org.apache.cassandra.repair RepairParallelism toString.

Prototype

@Override
    public String toString() 

Source Link

Usage

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*/
}