Replies: 2 comments
-
Hello @alex-karpovich |
Beta Was this translation helpful? Give feedback.
0 replies
-
Greeting, @bardale here is correct sample:
when you do query "select ..." all fields becomes nullable in resulting schema, that's why you need to have field declared as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greeting @alex-karpovich
I am able to map every field from stream to Message class except boolean field.
Please find below sample stream and code for reference.
Stream:
Data:
<style> </style>Corresponding Message Class:
`@SchemaElement(name = "boolean_test")
public class BooleanTestMessage2 extends InstrumentMessage {
@SchemaElement(name = "on_venue")
public boolean onVenue;
}
`
Sample code to read data:
`
public class TestBoolean {
public static void main(String[] args) {
}
}
`
I am able to map venue, symbol and timestamp from boolean_test stream to BooleanTestMessage except on_venue field.
Cursor.getMessage is not showing values of "on_venue" field from Stream.
Can you help to resolve this issue?
Regards,
Deepak
Beta Was this translation helpful? Give feedback.
All reactions