mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-28 05:56:04 +02:00
![twitter-team](/assets/img/avatar_default.png)
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
19 lines
817 B
Thrift
19 lines
817 B
Thrift
namespace java com.twitter.simclusters_v2.thriftjava
|
|
namespace py gen.twitter.simclusters_v2.clustering
|
|
#@namespace scala com.twitter.simclusters_v2.thriftscala
|
|
#@namespace strato com.twitter.simclusters_v2
|
|
|
|
/**
|
|
* Struct that represents an ordered list of producer clusters.
|
|
* The list is meant to be ordered by decreasing cluster size.
|
|
**/
|
|
struct OrderedClustersAndMembers {
|
|
1: required list<set<i64>> orderedClustersAndMembers (personalDataType = 'UserId')
|
|
// work around BQ not supporting nested struct such as list<set>
|
|
2: optional list<ClusterMembers> orderedClustersAndMembersStruct (personalDataType = 'UserId')
|
|
}(persisted = 'true', hasPersonalData = 'true')
|
|
|
|
struct ClusterMembers {
|
|
1: required set<i64> clusterMembers (personalDataType = 'UserId')
|
|
}(persisted = 'true', hasPersonalData = 'true')
|