table.go 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. package data
  2. var (
  3. //HBaseVideoTablePrefix 播放流失分布
  4. HBaseVideoTablePrefix = "video_play_churn_"
  5. //HBaseArchiveTablePrefix 分类分端播放
  6. HBaseArchiveTablePrefix = "video_play_category_"
  7. //HBaseAreaTablePrefix 地区播放
  8. HBaseAreaTablePrefix = "video_play_area_"
  9. //HBaseUpStatTablePrefix up主概况
  10. HBaseUpStatTablePrefix = "up_stats_"
  11. //HBaseUpViewerBase 观众数据,性别年龄分布 + 设备分布
  12. HBaseUpViewerBase = "up_viewer_base_"
  13. //HBaseUpViewerArea 地区分布
  14. HBaseUpViewerArea = "up_viewer_area_"
  15. //HBaseUpViewerTrend 内容倾向
  16. HBaseUpViewerTrend = "up_viewer_trend_"
  17. //HBaseUpViewerActionHour 行为时间分布
  18. HBaseUpViewerActionHour = "up_viewer_action_hour_"
  19. //HBaseUpRelationFansDay 日维度 最近30天 只保留31天
  20. HBaseUpRelationFansDay = "up_relation_fans_day"
  21. // HBaseUpRelationFansHistory 日维度 各月份每日数据,日更,永久保存
  22. HBaseUpRelationFansHistory = "up_relation_fans_history"
  23. //HBaseUpRelationFansMonth 年维度 2017.8月以后的数据永久保存
  24. HBaseUpRelationFansMonth = "up_relation_fans_month"
  25. //HBaseUpPlayInc 我的概况 播放相关
  26. HBaseUpPlayInc = "up_play_inc_"
  27. //HBaseUpDmInc 弹幕相关
  28. HBaseUpDmInc = "up_dm_inc_"
  29. //HBaseUpReplyInc 评论相关
  30. HBaseUpReplyInc = "up_reply_inc_"
  31. //HBaseUpShareInc 分享相关
  32. HBaseUpShareInc = "up_share_inc_"
  33. //HBaseUpCoinInc 投币相关
  34. HBaseUpCoinInc = "up_coin_inc_"
  35. //HBaseUpFavInc 收藏相关
  36. HBaseUpFavInc = "up_fav_inc_"
  37. //HBaseUpElecInc 充电相关
  38. HBaseUpElecInc = "up_elec_inc_"
  39. //HBaseUpFansAnalysis 粉丝管理
  40. HBaseUpFansAnalysis = "up_fans_analysis"
  41. //HBaseUpPlaySourceAnalysis 播放来源
  42. HBaseUpPlaySourceAnalysis = "up_play_analysis"
  43. //HBaseUpArcPlayAnalysis 平均观看时长、播放用户数、留存率
  44. HBaseUpArcPlayAnalysis = "up_archive_play_analysis"
  45. //HBaseUpArcQuery 稿件索引表
  46. HBaseUpArcQuery = "up_archive_query"
  47. //HBaseUpFansMedalQuery up主粉丝勋章
  48. HBaseUpFansMedalQuery = "up_fans_medal"
  49. //HBaseupArchiveStatQuery up主稿件指标表
  50. HBaseupArchiveStatQuery = "creation:up_archive_stat_"
  51. //HBasePlayArc 播放相关 archive for 30 days
  52. HBasePlayArc = "up_play_trend"
  53. //HBaseDmArc 弹幕相关
  54. HBaseDmArc = "up_dm_trend"
  55. //HBaseReplyArc 评论相关
  56. HBaseReplyArc = "up_reply_trend"
  57. //HBaseShareArc 分享相关
  58. HBaseShareArc = "up_share_trend"
  59. //HBaseCoinArc 投币相关
  60. HBaseCoinArc = "up_coin_trend"
  61. //HBaseFavArc 收藏相关
  62. HBaseFavArc = "up_fav_trend"
  63. //HBaseElecArc 充电相关
  64. HBaseElecArc = "up_elec_trend"
  65. //HBaseLikeArc 点赞相关
  66. HBaseLikeArc = "up_like_trend"
  67. //HBaseFamilyPlat family
  68. HBaseFamilyPlat = []byte("v")
  69. //HBaseColumnAid aid
  70. HBaseColumnAid = []byte("avid")
  71. //HBaseColumnWebPC pc
  72. HBaseColumnWebPC = []byte("plat0")
  73. //HBaseColumnWebH5 h5
  74. HBaseColumnWebH5 = []byte("plat1")
  75. //HBaseColumnOutsite out
  76. HBaseColumnOutsite = []byte("plat2")
  77. //HBaseColumnIOS ios
  78. HBaseColumnIOS = []byte("plat3")
  79. //HBaseColumnAndroid android
  80. HBaseColumnAndroid = []byte("plat4")
  81. //HBaseColumnElse else
  82. HBaseColumnElse = []byte("else")
  83. //HBaseColumnFans fans
  84. HBaseColumnFans = []byte("fans")
  85. //HBaseColumnGuest guest
  86. HBaseColumnGuest = []byte("guest")
  87. //HBaseColumnAll all
  88. HBaseColumnAll = []byte("all")
  89. //HBaseColumnCoin coin
  90. HBaseColumnCoin = []byte("coin")
  91. //HBaseColumnElec elec
  92. HBaseColumnElec = []byte("elec")
  93. //HBaseColumnFav fav
  94. HBaseColumnFav = []byte("fav")
  95. //HBaseColumnShare share
  96. HBaseColumnShare = []byte("share")
  97. )
  98. const (
  99. //ArtViewTBL 专栏增量数据趋势-阅读
  100. ArtViewTBL = "creation:read_up_view_trend"
  101. //ArtReplyTBL 评论
  102. ArtReplyTBL = "creation:read_up_reply_trend"
  103. //ArtShareTBL 分享
  104. ArtShareTBL = "creation:read_up_share_trend"
  105. //ArtCoinTBL 硬币
  106. ArtCoinTBL = "creation:read_up_coin_trend"
  107. //ArtFavTBL 收藏
  108. ArtFavTBL = "creation:read_up_fav_trend"
  109. //ArtLikeTBL 喜欢
  110. ArtLikeTBL = "creation:read_up_like_trend"
  111. //ArtViewIncTBL 来源稿件-阅读
  112. ArtViewIncTBL = "creation:read_up_view_inc_"
  113. //ArtReplyIncTBL 评论
  114. ArtReplyIncTBL = "creation:read_up_reply_inc_"
  115. //ArtShareIncTBL 分享
  116. ArtShareIncTBL = "creation:read_up_share_inc_"
  117. //ArtCoinIncTBL 硬币
  118. ArtCoinIncTBL = "creation:read_up_coin_inc_"
  119. //ArtFavIncTBL 收藏
  120. ArtFavIncTBL = "creation:read_up_fav_inc_"
  121. //ArtLikeIncTBL 喜欢
  122. ArtLikeIncTBL = "creation:read_up_like_inc_"
  123. //ArtReadAnalysisTBL 阅读来源分析
  124. ArtReadAnalysisTBL = "creation:read_up_play_analysis"
  125. )