Skip to content

Commit

Permalink
update scan interface according to the latest server (#410)
Browse files Browse the repository at this point in the history
* update thrift

* remove has_next field

* update test

Co-authored-by: Yichen Wang <18348405+Aiee@users.noreply.github.com>
  • Loading branch information
Nicole00 and Aiee authored Dec 23, 2021
1 parent d487480 commit 5cceada
Show file tree
Hide file tree
Showing 93 changed files with 16,065 additions and 2,635 deletions.
431 changes: 431 additions & 0 deletions client/src/main/generated/com/vesoft/nebula/Duration.java

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/src/main/generated/com/vesoft/nebula/ErrorCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public enum ErrorCode implements com.facebook.thrift.TEnum {
E_TAG_PROP_NOT_FOUND(-10),
E_ROLE_NOT_FOUND(-11),
E_CONFIG_NOT_FOUND(-12),
E_GROUP_NOT_FOUND(-13),
E_MACHINE_NOT_FOUND(-13),
E_ZONE_NOT_FOUND(-14),
E_LISTENER_NOT_FOUND(-15),
E_PART_NOT_FOUND(-16),
Expand Down
46 changes: 10 additions & 36 deletions client/src/main/generated/com/vesoft/nebula/PropertyType.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,20 @@ public enum PropertyType implements com.facebook.thrift.TEnum {
INT16(9),
INT32(10),
TIMESTAMP(21),
DURATION(23),
DATE(24),
DATETIME(25),
TIME(26),
GEOGRAPHY(31);

private static final Map<Integer, PropertyType> INDEXED_VALUES = new HashMap<Integer, PropertyType>();

static {
for (PropertyType e: values()) {
INDEXED_VALUES.put(e.getValue(), e);
}
}

private final int value;

private PropertyType(int value) {
Expand All @@ -48,41 +57,6 @@ public int getValue() {
* @return null if the value is not found.
*/
public static PropertyType findByValue(int value) {
switch (value) {
case 0:
return UNKNOWN;
case 1:
return BOOL;
case 2:
return INT64;
case 3:
return VID;
case 4:
return FLOAT;
case 5:
return DOUBLE;
case 6:
return STRING;
case 7:
return FIXED_STRING;
case 8:
return INT8;
case 9:
return INT16;
case 10:
return INT32;
case 21:
return TIMESTAMP;
case 24:
return DATE;
case 25:
return DATETIME;
case 26:
return TIME;
case 31:
return GEOGRAPHY;
default:
return null;
}
return INDEXED_VALUES.get(value);
}
}
Loading

0 comments on commit 5cceada

Please sign in to comment.