[#43] Expanding the parameters for creating a container
Signed-off-by: Ori Bruk <o.bruk@yadro.com>
This commit is contained in:
parent
3861eb0dc2
commit
fe7d2968b8
34 changed files with 855 additions and 75 deletions
|
@ -0,0 +1,40 @@
|
|||
package info.frostfs.sdk.enums;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public enum FilterOperation {
|
||||
OPERATION_UNSPECIFIED(0),
|
||||
EQ(1),
|
||||
NE(2),
|
||||
GT(3),
|
||||
GE(4),
|
||||
LT(5),
|
||||
LE(6),
|
||||
OR(7),
|
||||
AND(8),
|
||||
NOT(9),
|
||||
LIKE(10),
|
||||
;
|
||||
|
||||
private static final Map<Integer, FilterOperation> ENUM_MAP_BY_VALUE;
|
||||
|
||||
static {
|
||||
Map<Integer, FilterOperation> map = new HashMap<>();
|
||||
for (FilterOperation nodeState : FilterOperation.values()) {
|
||||
map.put(nodeState.value, nodeState);
|
||||
}
|
||||
ENUM_MAP_BY_VALUE = Collections.unmodifiableMap(map);
|
||||
}
|
||||
|
||||
public final int value;
|
||||
|
||||
FilterOperation(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static FilterOperation get(int value) {
|
||||
return ENUM_MAP_BY_VALUE.get(value);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
package info.frostfs.sdk.enums;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public enum SelectorClause {
|
||||
CLAUSE_UNSPECIFIED(0),
|
||||
SAME(1),
|
||||
DISTINCT(2),
|
||||
;
|
||||
|
||||
private static final Map<Integer, SelectorClause> ENUM_MAP_BY_VALUE;
|
||||
|
||||
static {
|
||||
Map<Integer, SelectorClause> map = new HashMap<>();
|
||||
for (SelectorClause nodeState : SelectorClause.values()) {
|
||||
map.put(nodeState.value, nodeState);
|
||||
}
|
||||
ENUM_MAP_BY_VALUE = Collections.unmodifiableMap(map);
|
||||
}
|
||||
|
||||
public final int value;
|
||||
|
||||
SelectorClause(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static SelectorClause get(int value) {
|
||||
return ENUM_MAP_BY_VALUE.get(value);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue