twitter / GraphJet

GraphJet is a real-time graph processing library.
Apache License 2.0
713 stars 111 forks source link

Add metadata edge filter #92

Closed guimingTang closed 7 years ago

guimingTang commented 7 years ago

This Pull Request mainly accomplishes 2 things:

  1. Moved all remaining filter classes under the "filter" folder
  2. Added a new filter based on edge's metadata. The new filter, RecentEdgeMetadataFilter, is based on the edge metadata field and assumes the metadata represents a timestamp. This filter will filter out all the nodes whose social proof edges are younger than a set timeframe, essentially guaranteeing the all returned nodes are social proofed by edges at least "X days" old.
guimingTang commented 7 years ago

CI test is failing due to a test timeout: com.twitter.graphjet.bipartite.MultiSegmentPowerLawBipartiteGraphTest testRandomConcurrentReadWrites(com.twitter.graphjet.bipartite.MultiSegmentPowerLawBipartiteGraphTest) Time elapsed: 10.153 sec <<< ERROR! java.util.concurrent.CancellationException

A re-run of master also reflects the same failure