Skip to content

Commit

Permalink
Change private non-arg constructors to public ones to make Java seria…
Browse files Browse the repository at this point in the history
…lizer work.
  • Loading branch information
yhuai committed Aug 12, 2015
1 parent 762bacc commit 16c3438
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -66,7 +66,8 @@ private[joins] final class GeneralHashedRelation(
private var hashTable: JavaHashMap[InternalRow, CompactBuffer[InternalRow]])
extends HashedRelation with Externalizable {

private def this() = this(null) // Needed for serialization
// Needed for serialization (it is public to make Java serialization work)
def this() = this(null)

override def get(key: InternalRow): Seq[InternalRow] = hashTable.get(key)

Expand All @@ -88,7 +89,8 @@ private[joins]
final class UniqueKeyHashedRelation(private var hashTable: JavaHashMap[InternalRow, InternalRow])
extends HashedRelation with Externalizable {

private def this() = this(null) // Needed for serialization
// Needed for serialization (it is public to make Java serialization work)
def this() = this(null)

override def get(key: InternalRow): Seq[InternalRow] = {
val v = hashTable.get(key)
Expand Down

0 comments on commit 16c3438

Please sign in to comment.