mirror of https://github.com/apache/druid.git
Merge pull request #1725 from metamx/genericIndexedWriteOptimizationObjectsSorted
Don't check for sortedness if we already know GenericIndexedWriter isn't sorted
This commit is contained in:
commit
43012d3c48
|
@ -66,7 +66,7 @@ public class GenericIndexedWriter<T> implements Closeable
|
||||||
|
|
||||||
public void write(T objectToWrite) throws IOException
|
public void write(T objectToWrite) throws IOException
|
||||||
{
|
{
|
||||||
if (prevObject != null && strategy.compare(prevObject, objectToWrite) >= 0) {
|
if (objectsSorted && prevObject != null && strategy.compare(prevObject, objectToWrite) >= 0) {
|
||||||
objectsSorted = false;
|
objectsSorted = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue