[Feature-WIP](inverted index) support array type for inverted index reader (#16355)

This commit is contained in:
YueW
2023-02-02 16:14:14 +08:00
committed by GitHub
parent a69c0f28ca
commit bb179b77f7
6 changed files with 195 additions and 32 deletions

View File

@ -109,6 +109,7 @@ public abstract class Type {
private static final Logger LOG = LogManager.getLogger(Type.class);
private static final ArrayList<ScalarType> integerTypes;
private static final ArrayList<ScalarType> stringTypes;
private static final ArrayList<ScalarType> numericTypes;
private static final ArrayList<ScalarType> numericDateTimeTypes;
private static final ArrayList<ScalarType> supportedTypes;
@ -123,6 +124,11 @@ public abstract class Type {
integerTypes.add(BIGINT);
integerTypes.add(LARGEINT);
stringTypes = Lists.newArrayList();
stringTypes.add(CHAR);
stringTypes.add(VARCHAR);
stringTypes.add(STRING);
numericTypes = Lists.newArrayList();
numericTypes.addAll(integerTypes);
numericTypes.add(FLOAT);
@ -207,6 +213,10 @@ public abstract class Type {
return integerTypes;
}
public static ArrayList<ScalarType> getStringTypes() {
return stringTypes;
}
public static ArrayList<ScalarType> getNumericTypes() {
return numericTypes;
}