HBASE-21734 Some optimization in FilterListWithOR
This commit is contained in:
parent
acdd23ec4c
commit
3015e23c09
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue