use of com.questdb.std.str.StringSink in project questdb by bluestreak01.
the class ColumnType method columnTypeOf.
public static int columnTypeOf(CharSequence name) {
StringSink b = caseConverterBuffer.get();
b.clear();
for (int i = 0, n = name.length(); i < n; i++) {
b.put(Character.toUpperCase(name.charAt(i)));
}
return nameTypeMap.get(b);
}
use of com.questdb.std.str.StringSink in project questdb by bluestreak01.
the class Signature method userReadable.
public CharSequence userReadable() {
StringSink b = Misc.getThreadLocalBuilder();
b.put('\'');
b.put(name);
b.put('\'');
b.put('(');
for (int i = 0, n = paramCount; i < n; i++) {
if (i > 0) {
b.put(", ");
}
if (constParams.getQuick(i) == 1) {
b.put("const ");
}
b.put(ColumnType.nameOf(paramTypes.getQuick(i)));
}
b.put(')');
return b;
}
Aggregations