Processing Interval Joins On Map-Reduce

Bhupesh Chawda, Himanshu Gupta, Sumit Negi, Tanveer A. Faruquie, L. Venkata Subramaniam, Mukesh K. MohaniaEdbt 2014

Introduction

Interval data—records defined by a start and end time $[t_s, t_e]$—is ubiquitous in fields like spatio-temporal modeling, telecommunications, and network analysis. A common task is an interval join: finding sets of intervals that satisfy specific relationships, such as "Event A happened during Event B" or "Event A happened before Event B." Performing these joins at scale on Map-Reduce (like Hadoop) is notoriously difficult because intervals have duration and can overlap multiple data partitions, leading to massive network overhead and computational skew.

Methodology

The authors classify interval joins into three types based on Allen’s interval algebra: Colocation (e.g., overlaps), Sequence (e.g., before), and Hybrid. They propose four primary algorithms to handle these efficiently by mapping temporal predicates to specific data distribution operations: Project (Proj), Replicate (Rep), and Split.

Mapping Allen's interval relations to data distribution strategies.

Key Algorithms

  • RCCIS (Replicate Consistent and Crossing Interval Sets): Designed for colocation joins. It uses a two-pass approach to identify "crossing sets"—intervals spanning partition boundaries—and selectively replicates only these necessary intervals, drastically reducing communication costs.
  • All-Matrix: Designed for sequence joins. It maps reducers into an $m$-dimensional grid, allowing the system to identify "inconsistent reducers" that cannot produce results based on temporal constraints, thereby pruning the search space before data leaves the Map phase.
  • All-Seq-Matrix & Gen-Matrix: Hybrid and generalized versions that handle complex queries and multiple interval attributes simultaneously.

Experimental Evaluation

The proposed algorithms were evaluated using synthetic datasets and real-life Internet packet traces from the WIDE Project. The results consistently outperformed standard "2-way Cascade" and naive "All-Replicate" strategies.

Performance and Scalability

The RCCIS algorithm demonstrated significant improvements in both execution time and network overhead. As shown in the performance table below, RCCIS was roughly 6x faster than a standard 2-way cascade on synthetic data.

Performance comparison of RCCIS vs. baselines on synthetic data.

For a 1.25M record dataset, RCCIS replicated only ~36.6K intervals compared to 2.5M in the All-Replicate approach. This reduction in replicated intervals directly translates to lower communication costs and better scalability. On real-world packet trace data, the All-Matrix approach completed sequence joins in 7 minutes, while the 2-way cascade took 24 minutes, largely because the multi-dimensional grid prevented individual reducers from becoming overloaded bottlenecks.

Conclusion

By leveraging the mathematical properties of Allen’s interval algebra and multi-dimensional reducer mapping, the authors provide a robust framework for large-scale interval joins. While the current work focuses on batch processing, it establishes fundamental primitives that can be integrated into specialized spatio-temporal engines like Spatial-Hadoop.

Summary updated

BibTeX
@inproceedings{chawda2014processing,
  author = {Bhupesh Chawda and Himanshu Gupta and Sumit Negi and Tanveer A. Faruquie and L. Venkata Subramaniam and Mukesh K. Mohania},
  title = {{Processing Interval Joins On Map-Reduce}},
  booktitle = {Edbt},
  year = {2014},
  doi = {10.5441/002/edbt.2014.42},
}
Figure