orientdb2.2 - OrientDB Network Binary Protocol - What is returned when creating a CLASS? -
what meaning of last 2 bytes of output (one part of wrapped record, 1 not) when creating class?
i issued command "create class foo extends v". output (annotated understanding of the protocol):
writing byte (1 byte): 0 [ochannelbinaryserver] # success writing int (4 bytes): 43 [ochannelbinaryserver] # session id 43 writing byte (1 byte): 119 [ochannelbinaryserver] # w - wrapped record writing short (2 bytes): 0 [ochannelbinaryserver] # full record writing byte (1 byte): 100 [ochannelbinaryserver] # d - record document writing short (2 bytes): -1 [ochannelbinaryserver] # cluster id null writing long (8 bytes): -1 [ochannelbinaryserver] # cluster position null writing int (4 bytes): 0 [ochannelbinaryserver] # version 0 writing bytes (4+16=20 bytes): [0, 0, 12, 114, 101, 115, 117, 108, 116, 0, 0, 0, 15, 1, 0, 84] [ochannelbinaryserver] # record, 84? writing byte (1 byte): 0 [ochannelbinaryserver] # this?
the record decodes field named "result". value of result integer, encoded varint 84 decodes 42. there trailing byte of 0.
what result value of 42 mean? trailing 0 mean?
please note i'm on protocol version 36.
thanks!
the number returned create class number of classes in database. 0 @ end, have no idea.
scott
Comments
Post a Comment