Skip to content

Reading String Array types from Collect_Unique query output #227

Answered by Romkisel
ShivaniSK asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, ShivaniSK

To be able to print messages as json in timebase shell, call set printJson true before query.

To be able to read array of strings into custom Java class you should map query output type to your java class, use the following steps:

  1. Create custom class:
package sample;

import com.epam.deltix.timebase.messages.InstrumentMessage;
import com.epam.deltix.timebase.messages.SchemaArrayType;
import com.epam.deltix.timebase.messages.SchemaElement;
import com.epam.deltix.util.collections.generated.ObjectArrayList;

public class TestMessage extends InstrumentMessage {

    private ObjectArrayList<CharSequence> columnArray;

    @SchemaElement
    @SchemaArrayType
    public ObjectArr…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ShivaniSK
Comment options

Answer selected by ShivaniSK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants