Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19285#discussion_r163750079
  
    --- Diff: 
core/src/main/scala/org/apache/spark/storage/memory/MemoryStore.scala ---
    @@ -702,6 +641,87 @@ private[spark] class MemoryStore(
       }
     }
     
    +private trait ValuesBuilder[T] {
    +  def preciseSize: Long
    +  def build(): MemoryEntry[T]
    +}
    +
    +private trait ValuesHolder[T] {
    +  def storeValue(value: T): Unit
    +  def estimatedSize(): Long
    +  def getBuilder(): ValuesBuilder[T]
    --- End diff --
    
    add a comment to say that, after `getBuilder` is called, this 
`ValuesHolder` becomes invalid.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to