HBASE-21734 Some optimization in FilterListWithOR

This commit is contained in:
huzheng 2019-01-18 22:18:50 +08:00
parent acdd23ec4c
commit 3015e23c09
1 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,6 @@ package org.apache.hadoop.hbase.filter;
import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.CellUtil; import org.apache.hadoop.hbase.CellUtil;
import org.apache.hadoop.hbase.KeyValueUtil;
import org.apache.hadoop.hbase.classification.InterfaceAudience; import org.apache.hadoop.hbase.classification.InterfaceAudience;
import java.io.IOException; import java.io.IOException;
@ -254,7 +253,7 @@ public class FilterListWithOR extends FilterListBase {
// need not save current cell to prevCellList for saving heap memory. // need not save current cell to prevCellList for saving heap memory.
prevCellList.set(index, null); prevCellList.set(index, null);
} else { } else {
prevCellList.set(index, KeyValueUtil.copyToNewKeyValue(currentCell)); prevCellList.set(index, currentCell);
} }
} }