Ghost: A General Framework for High-Performance Online Similarity Queries over Distributed Trajectory Streams