@@ -107,7 +107,6 @@ class SymmetricHashJoinStateManager(
107107 val joinedRow = generateJoinedRow(keyIdxToValue.value)
108108 if (predicate(joinedRow)) {
109109 if (! keyIdxToValue.matched) {
110- // only update when matched flag is false
111110 keyWithIndexToValue.put(key, keyIdxToValue.valueIndex, keyIdxToValue.value,
112111 matched = true )
113112 }
@@ -134,7 +133,7 @@ class SymmetricHashJoinStateManager(
134133 private val allKeyToNumValues = keyToNumValues.iterator
135134
136135 private var currentKeyToNumValue : KeyAndNumValues = null
137- private var currentValues : Iterator [KeyWithIndexAndValueWithMatched ] = null
136+ private var currentValues : Iterator [KeyWithIndexAndValue ] = null
138137
139138 private def currentKey = currentKeyToNumValue.key
140139
@@ -412,7 +411,7 @@ class SymmetricHashJoinStateManager(
412411 * Helper class for representing data returned by [[KeyWithIndexToValueStore ]].
413412 * Designed for object reuse.
414413 */
415- private class KeyWithIndexAndValueWithMatched (
414+ private class KeyWithIndexAndValue (
416415 var key : UnsafeRow = null ,
417416 var valueIndex : Long = - 1 ,
418417 var value : UnsafeRow = null ,
@@ -520,11 +519,11 @@ class SymmetricHashJoinStateManager(
520519 * Get all values and indices for the provided key.
521520 * Should not return null.
522521 */
523- def getAll (key : UnsafeRow , numValues : Long ): Iterator [KeyWithIndexAndValueWithMatched ] = {
524- val keyWithIndexAndValueWithMatched = new KeyWithIndexAndValueWithMatched ()
522+ def getAll (key : UnsafeRow , numValues : Long ): Iterator [KeyWithIndexAndValue ] = {
523+ val keyWithIndexAndValueWithMatched = new KeyWithIndexAndValue ()
525524 var index = 0
526- new NextIterator [KeyWithIndexAndValueWithMatched ] {
527- override protected def getNext (): KeyWithIndexAndValueWithMatched = {
525+ new NextIterator [KeyWithIndexAndValue ] {
526+ override protected def getNext (): KeyWithIndexAndValue = {
528527 if (index >= numValues) {
529528 finished = true
530529 null
@@ -565,8 +564,8 @@ class SymmetricHashJoinStateManager(
565564 }
566565 }
567566
568- def iterator : Iterator [KeyWithIndexAndValueWithMatched ] = {
569- val keyWithIndexAndValueWithMatched = new KeyWithIndexAndValueWithMatched ()
567+ def iterator : Iterator [KeyWithIndexAndValue ] = {
568+ val keyWithIndexAndValueWithMatched = new KeyWithIndexAndValue ()
570569 stateStore.getRange(None , None ).map { pair =>
571570 val (value, matched) = valueRowConverter.convertValue(pair.value)
572571 keyWithIndexAndValueWithMatched.withNew(
0 commit comments