public static Deferred < TSMeta > parseFromColumn ( final TSDB tsdb , final KeyValue column , final boolean load_uidmetas ) { if ( column . value ( ) == null || column . value ( ) . length < 1 ) { throw new IllegalArgumentException ( "Empty column value" ) ; } final TSMeta parsed_meta = JSON . parseToObject ( column . value ( ) , TSMeta . class ) ; // fix in case the tsuid is missing if ( parsed_meta . tsuid == null || parsed_meta . tsuid . isEmpty ( ) ) { parsed_meta . tsuid = UniqueId . uidToString ( column . key ( ) ) ; } Deferred < TSMeta > meta = getFromStorage ( tsdb , UniqueId . stringToUid ( parsed_meta . tsuid ) ) ; if ( ! load_uidmetas ) { return meta ; } return meta . addCallbackDeferring ( new LoadUIDs ( tsdb , parsed_meta . tsuid ) ) ; }
Parses a TSMeta object from the given column optionally loading the UIDMeta objects