HBASE-11802 Scan copy constructor doesn't copy reversed member variable
This commit is contained in:
parent
3b57f28dad
commit
6f00f859a7
|
@ -19,6 +19,15 @@
|
||||||
|
|
||||||
package org.apache.hadoop.hbase.client;
|
package org.apache.hadoop.hbase.client;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.NavigableSet;
|
||||||
|
import java.util.TreeMap;
|
||||||
|
import java.util.TreeSet;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
import org.apache.hadoop.classification.InterfaceAudience;
|
import org.apache.hadoop.classification.InterfaceAudience;
|
||||||
|
@ -29,15 +38,6 @@ import org.apache.hadoop.hbase.filter.IncompatibleFilterException;
|
||||||
import org.apache.hadoop.hbase.io.TimeRange;
|
import org.apache.hadoop.hbase.io.TimeRange;
|
||||||
import org.apache.hadoop.hbase.util.Bytes;
|
import org.apache.hadoop.hbase.util.Bytes;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.NavigableSet;
|
|
||||||
import java.util.TreeMap;
|
|
||||||
import java.util.TreeSet;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to perform Scan operations.
|
* Used to perform Scan operations.
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -210,6 +210,7 @@ public class Scan extends Query {
|
||||||
filter = scan.getFilter(); // clone?
|
filter = scan.getFilter(); // clone?
|
||||||
loadColumnFamiliesOnDemand = scan.getLoadColumnFamiliesOnDemandValue();
|
loadColumnFamiliesOnDemand = scan.getLoadColumnFamiliesOnDemandValue();
|
||||||
consistency = scan.getConsistency();
|
consistency = scan.getConsistency();
|
||||||
|
reversed = scan.isReversed();
|
||||||
TimeRange ctr = scan.getTimeRange();
|
TimeRange ctr = scan.getTimeRange();
|
||||||
tr = new TimeRange(ctr.getMin(), ctr.getMax());
|
tr = new TimeRange(ctr.getMin(), ctr.getMax());
|
||||||
Map<byte[], NavigableSet<byte[]>> fams = scan.getFamilyMap();
|
Map<byte[], NavigableSet<byte[]>> fams = scan.getFamilyMap();
|
||||||
|
|
Loading…
Reference in New Issue