Search in sources :

Example 6 with CharSink

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();
}
Also used : CharSink(com.questdb.std.str.CharSink)

Example 7 with CharSink

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;
}
Also used : CharSink(com.questdb.std.str.CharSink)

Example 8 with CharSink

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();
}
Also used : CharSink(com.questdb.std.str.CharSink)

Example 9 with CharSink

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;
}
Also used : CharSink(com.questdb.std.str.CharSink)

Aggregations

CharSink (com.questdb.std.str.CharSink)9 LogFactory (com.questdb.log.LogFactory)1 Job (com.questdb.mp.Job)1 HttpServer (com.questdb.net.http.HttpServer)1 SimpleUrlMatcher (com.questdb.net.http.SimpleUrlMatcher)1 TypeProbeCollection (com.questdb.parser.typeprobe.TypeProbeCollection)1 DateFormatFactory (com.questdb.std.time.DateFormatFactory)1 DateLocaleFactory (com.questdb.std.time.DateLocaleFactory)1 Factory (com.questdb.store.factory.Factory)1 File (java.io.File)1 Date (java.util.Date)1 Signal (sun.misc.Signal)1