-
Enhancement
-
Resolution: Done
-
Minor
-
None
-
None
-
False
-
False
-
Undefined
-
I see every SourceInfo is public, except for mysql.
when i parse SourceRecord in my code,them like this:
Struct value = (Struct) record.value(); String schemaName = ((Struct) value.get(Envelope.FieldName.SOURCE)).getString(CloudEventsMaker.FieldName.SCHEMA_FIELD_NAME); String serverId = value.getString("server_id"); // hard code //........
actually, i want:
Struct value = (Struct) record.value(); String schemaName = ((Struct) value.get(Envelope.FieldName.SOURCE)).getString(CloudEventsMaker.FieldName.SCHEMA_FIELD_NAME); String serverId = value.getString(SourceInfo.SERVER_ID_KEY); // if "server_id" will change, i can void upgrade problem //........