com.yandex.ydb.table.description.KeyBound Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
JDBC client implementation over Table client, single jar
package com.yandex.ydb.table.description;
import com.yandex.ydb.table.values.Value;
public class KeyBound {
private final Value value;
private final boolean inclusive;
public KeyBound(
Value value,
boolean inclusive
) {
this.value = value;
this.inclusive = inclusive;
}
public Value getValue() {
return value;
}
public boolean isInclusive() {
return inclusive;
}
public static KeyBound inclusive(Value value) {
return new KeyBound(value, true);
}
public static KeyBound exclusive(Value value) {
return new KeyBound(value, false);
}
}