@Override /** * When setting the query timeout via JDBC timeouts must be expressed in seconds. Therefore * we need to convert the default timeout to milliseconds for internal use. */ public void setQueryTimeout(int seconds) throws SQLException { if (seconds < 0) { this.queryTimeoutMillis = getDefaultQueryTimeoutMillis(); } else if (seconds == 0) { this.queryTimeoutMillis = Integer.MAX_VALUE; } else { this.queryTimeoutMillis = seconds * 1000; } }
public PhoenixStatement(PhoenixConnection connection) { this.connection = connection; this.queryTimeoutMillis = getDefaultQueryTimeoutMillis(); }
@Override /** * When setting the query timeout via JDBC timeouts must be expressed in seconds. Therefore * we need to convert the default timeout to milliseconds for internal use. */ public void setQueryTimeout(int seconds) throws SQLException { if (seconds < 0) { this.queryTimeoutMillis = getDefaultQueryTimeoutMillis(); } else if (seconds == 0) { this.queryTimeoutMillis = Integer.MAX_VALUE; } else { this.queryTimeoutMillis = seconds * 1000; } }
@Override /** * When setting the query timeout via JDBC timeouts must be expressed in seconds. Therefore * we need to convert the default timeout to milliseconds for internal use. */ public void setQueryTimeout(int seconds) throws SQLException { if (seconds < 0) { this.queryTimeoutMillis = getDefaultQueryTimeoutMillis(); } else if (seconds == 0) { this.queryTimeoutMillis = Integer.MAX_VALUE; } else { this.queryTimeoutMillis = seconds * 1000; } }
public PhoenixStatement(PhoenixConnection connection) { this.connection = connection; this.queryTimeoutMillis = getDefaultQueryTimeoutMillis(); }
public PhoenixStatement(PhoenixConnection connection) { this.connection = connection; this.queryTimeoutMillis = getDefaultQueryTimeoutMillis(); }