apurtell commented on code in PR #1569:
URL: https://github.com/apache/phoenix/pull/1569#discussion_r1124741708


##########
phoenix-core/src/main/java/org/apache/phoenix/filter/PagedFilter.java:
##########
@@ -28,16 +28,21 @@
 import org.apache.hadoop.hbase.Cell;
 import org.apache.hadoop.hbase.CellUtil;
 import org.apache.hadoop.hbase.DoNotRetryIOException;
+import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.exceptions.DeserializationException;
 import org.apache.hadoop.hbase.filter.Filter;
 import org.apache.hadoop.hbase.filter.FilterBase;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.hadoop.hbase.util.Writables;
 import org.apache.hadoop.io.Writable;
 import org.apache.phoenix.util.EnvironmentEdgeManager;
+import org.apache.phoenix.util.ScanUtil;
 
 /**
- * This filter overrides the behavior of delegate so that we do not scan more 
rows than pageSizeInRows .
+ * This is a top level Phoenix filter which injected to a scan at the server 
side. If the scan has
+ * already a filter then PagedFilter wraps it. There two functions this filter 
implements: paging
+ * and TTL. The paging function makes sure that the scan does not take more 
than pageSizeInMs.
+ * The TTL function is for masking expired rows.

Review Comment:
   Would it be a cleaner separation of concerns to stack two filters here, 
`PagedFilter` implements paging, `TTLFilter` implements masking of expired 
rows? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to