@Override
  public byte[] toByteArray() {
    FilterProtos.PageFilter.Builder builder = FilterProtos.PageFilter.newBuilder();
    builder.setPageSize(this.pageSize);
    return builder.build().toByteArray();
  }
Returns The filter serialized using pb
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/PageFilter.java