use of com.questdb.std.str.CharSink in project questdb by bluestreak01.
the class LongList method toString.
/**
* {@inheritDoc}
*/
@Override
public String toString() {
CharSink toStringBuilder = Misc.getThreadLocalBuilder();
toStringBuilder.put('[');
for (int i = 0, k = size(); i < k; i++) {
if (i > 0) {
toStringBuilder.put(',');
}
toStringBuilder.put(get(i));
}
toStringBuilder.put(']');
return toStringBuilder.toString();
}
use of com.questdb.std.str.CharSink in project questdb by bluestreak01.
the class QueryParser method makeJoinAlias.
private ExprNode makeJoinAlias(int index) {
CharSink b = Misc.getThreadLocalBuilder();
ExprNode node = exprNodePool.next();
node.token = b.put("_xQdbA").put(index).toString();
node.type = ExprNode.LITERAL;
return node;
}
use of com.questdb.std.str.CharSink in project questdb by bluestreak01.
the class JournalMetadata method toString.
@Override
public String toString() {
CharSink b = Misc.getThreadLocalBuilder();
sep(b);
b.put('|');
pad(b, TO_STRING_COL1_PAD, "Name:");
pad(b, TO_STRING_COL2_PAD, name).put('\n');
b.put('|');
pad(b, TO_STRING_COL1_PAD, "Partition by");
pad(b, TO_STRING_COL2_PAD, PartitionBy.toString(partitionBy)).put('\n');
sep(b);
for (int i = 0; i < columnCount; i++) {
b.put('|');
pad(b, TO_STRING_COL1_PAD, Integer.toString(i));
col(b, columnMetadata[i]);
b.put('\n');
}
sep(b);
return b.toString();
}
use of com.questdb.std.str.CharSink in project questdb by bluestreak01.
the class QueryParser method makeModelAlias.
private ExprNode makeModelAlias(String modelAlias, ExprNode node) {
CharSink b = Misc.getThreadLocalBuilder();
ExprNode exprNode = exprNodePool.next();
b.put(modelAlias).put('.').put(node.token);
exprNode.token = b.toString();
exprNode.type = ExprNode.LITERAL;
exprNode.position = node.position;
return exprNode;
}
Aggregations