make_avro_schema¶
- lsst.ts.salkafka.make_avro_schema(topic)¶
Make an Avro schema for a given topic.
- Parameters:
- topic
lsst.ts.salobj.topics.BaseTopic Topic for which to get the schema.
- topic
- Returns:
- schema
dict Avro schema.
- schema
Notes
Scalar type names supported by Avro:
null A type having no value.
boolean
int 32-bit signed integer.
long 64-bit signed integer.
float Single precision (32-bit) IEEE 754 floating-point number.
double Double precision (64-bit) IEEE 754 floating-point number.
bytes Sequence of 8-bit unsigned bytes.
string Sequence of unicode characters.
Initially this function only supports
long,double,string. When this function is modified to parse the IDL file then it will support all types exceptnull.