代码之家  ›  专栏  ›  技术社区  ›  user01380121

限制Go中Bigtable查询返回的单元格数

  •  0
  • user01380121  · 技术社区  · 7 年前

    1 回复  |  直到 7 年前
        1
  •  2
  •   Gary Elliott    7 年前

    this 提交,有3种方法限制返回的单元格数:

    // LatestNFilter returns a filter that matches the most recent N cells in each column.
    
    // CellsPerRowOffsetFilter returns a filter that skips the first N cells of each row, matching all subsequent cells.
    
    // CellsPerRowLimitFilter returns a filter that matches only the first N cells of each row.
    

    LatestNFilter 已经有一段时间了,但另外两个是新的。