Skip to content

Commit

Permalink
dd expand method
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Rudnicki committed Oct 2, 2024
1 parent 0b0373c commit 0420297
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,12 @@ object aggregates {
_.computeStoredType(_)
)

def expand(key: String, aggregator: Aggregator): MapAggregator = {
val expandedMap: Map[String, Aggregator] = (scalaFields + (key -> aggregator))

new MapAggregator(expandedMap.asJava)
}

private def computeTypeByFields(
input: TypingResult,
objType: TypedClass,
Expand Down

0 comments on commit 0420297

Please sign in to comment.