Skip to content

Commit

Permalink
add expand method
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Rudnicki committed Sep 26, 2024
1 parent a2e3279 commit 8470bc1
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(newField: (String, Aggregator)): MapAggregator = {
val expandedMap: Map[String, Aggregator] = (scalaFields + newField)

new MapAggregator(expandedMap.asJava)
}

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

0 comments on commit 8470bc1

Please sign in to comment.