private static long timeFromQualifier ( final byte [ ] qualifier , final long base_time ) { final long offset ; if ( qualifier . length == 3 ) { offset = Bytes . getUnsignedShort ( qualifier , 1 ) ; return ( base_time + offset ) * 1000 ; } else { offset = Bytes . getUnsignedInt ( qualifier , 1 ) ; return ( base_time * 1000 ) + offset ; } }
Returns a timestamp after parsing an annotation qualifier .