Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ object VeloxBroadcastBuildSideCache

def getOrBuildBroadcastHashTable(
broadcast: Broadcast[BuildSideRelation],
broadcastContext: BroadcastHashJoinContext): BroadcastHashTable = synchronized {
broadcastContext: BroadcastHashJoinContext): BroadcastHashTable = {

buildSideRelationCache
.get(
Expand All @@ -76,14 +76,13 @@ object VeloxBroadcastBuildSideCache
}

/** This is callback from c++ backend. */
def get(broadcastHashtableId: String): Long =
synchronized {
Option(buildSideRelationCache.getIfPresent(broadcastHashtableId))
.map(_.pointer)
.getOrElse(0)
}
def get(broadcastHashtableId: String): Long = {
Option(buildSideRelationCache.getIfPresent(broadcastHashtableId))
.map(_.pointer)
.getOrElse(0)
}

def invalidateBroadcastHashtable(broadcastHashtableId: String): Unit = synchronized {
def invalidateBroadcastHashtable(broadcastHashtableId: String): Unit = {
// Cleanup operations on the backend are idempotent.
buildSideRelationCache.invalidate(broadcastHashtableId)
}
Expand Down
Loading