In BatchInserterIndex method of inserting into timelineindex, the key would be "timestamp" and the value should be an instance of ValueContext of type numeric. So, you need to call static function ValueContext.numeric(value)
timelineIndexPropertiesMap.put("timestamp", ValueContext.numeric(12345678L);
The method to access the timelineindex values would be same.