commit | c0ec868205878fc108a0e0aa442671886851aee8 | [log] [tgz] |
---|---|---|
author | alexander.behm <alexander.behm@123451ca-8445-de46-9d55-352943316053> | Sat Jan 19 02:37:13 2013 +0000 |
committer | alexander.behm <alexander.behm@123451ca-8445-de46-9d55-352943316053> | Sat Jan 19 02:37:13 2013 +0000 |
tree | a6ede68327bf49684b2ea31afa8a5354e937eb81 | |
parent | b33942db48318f47e03d924ed47e953f3d88f167 [diff] |
Fixed a performance bug that might have caused significant slowdown for inverted-index construction. git-svn-id: https://hyracks.googlecode.com/svn/branches/hyracks_lsm_experiments@2690 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks-storage-am-lsm-invertedindex/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/dataflow/BinaryTokenizerOperatorNodePushable.java b/hyracks-storage-am-lsm-invertedindex/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/dataflow/BinaryTokenizerOperatorNodePushable.java index 0ad10a7..6f28f61 100644 --- a/hyracks-storage-am-lsm-invertedindex/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/dataflow/BinaryTokenizerOperatorNodePushable.java +++ b/hyracks-storage-am-lsm-invertedindex/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/dataflow/BinaryTokenizerOperatorNodePushable.java
@@ -121,14 +121,13 @@ } } } - - if (appender.getTupleCount() > 0) { - FrameUtils.flushFrame(writeBuffer, writer); - } } @Override public void close() throws HyracksDataException { + if (appender.getTupleCount() > 0) { + FrameUtils.flushFrame(writeBuffer, writer); + } writer.close(); }