Hi, I think the encoding implementation is in src/main/java/org/apache/iotdb/tsfile/utils/ReadWriteForEncodingUtils.java @Yuan Tian <jackiet...@apache.org> implemented it.
Best, ----------------------------------- Xiangdong Huang School of Software, Tsinghua University 黄向东 清华大学 软件学院 Julian Feinauer <j.feina...@pragmaticminds.de> 于2022年6月13日周一 17:47写道: > Hi, > > > > I can only comment on floating points: we dont. > > Currently we also only have var-length encoding vor u32 (not for u64). > > > > Regarding ZigZag Encoding perhaps anybody else can jump in here? > > > > Julian > > > > *Julian Feinauer* > Geschäftsführer/CEO > <https://pragmaticindustries.com/> <https://pragmaticindustries.com/> > j.feina...@pragmaticminds.de <%7BE-mail%7D> > +49 (0) 7021 87868-01 <+49%20(0)%207021%2087868-01> | > Jesinger Str. 57, 73230 Kirchheim unter Teck > www.pragmaticindustries.de <https://pragmaticindustries.com/> > > <https://www.linkedin.com/company/pragmatic-industries-gmbh/> > <https://twitter.com/pragmaticindus1> > <https://www.facebook.com/Pragmatic-industries-GmbH-102791535422112> > <https://www.instagram.com/pragmaticindustries/> > Pflichtinformationen > <https://pragmaticindustries.com/datenschutzerklaerung/> gemäß Artikel > 13 DSGVO > > *Von: *Christofer Dutz <christofer.d...@c-ware.de> > *Datum: *Montag, 13. Juni 2022 um 09:50 > *An: *dev@iotdb.apache.org <dev@iotdb.apache.org> > *Betreff: *Var-Length-Numeric encoding? > > Hi all, > > Just out of curiosity. Julian told me TSFiles make use of variable length > encoding of numeric types. > I would expect the encoding for unsigned integers to be the "ordinary" one > where 7 bits of a byte are being used for encoding the numeric value and > new bytes are added as long as the first bit is 1. > However, I would be interested in which encoding is being used for > unsigned integers? Julian posted a reply in the #iotdb slack channel, but > I'm unsure which official encoding type this is. > It most likely looks like ZigZag Encoding, but I'm a bit unsure if it > really is. > Could anyone here please shed a bit of lite on this? And do we have > var-length encoding for floating-point types too? > > Chris >