the-algorithm/src/thrift/com/twitter/simclusters_v2/clustering.thrift
twitter-team ef4c5eb65e Twitter Recommendation Algorithm
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.
2023-03-31 17:36:31 -05:00

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')