Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update scan interface according to the latest server #410

Merged
merged 4 commits into from
Dec 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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