You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by cloud-fan <gi...@git.apache.org> on 2018/03/01 14:53:20 UTC

[GitHub] spark pull request #19222: [SPARK-10399][CORE][SQL] Introduce multiple Memor...

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

    https://github.com/apache/spark/pull/19222#discussion_r171582505
  
    --- Diff: common/unsafe/src/main/java/org/apache/spark/unsafe/types/UTF8String.java ---
    @@ -50,12 +52,10 @@
     
       // These are only updated by readExternal() or read()
       @Nonnull
    -  private Object base;
    -  private long offset;
    -  private int numBytes;
    +  private MemoryBlock base;
     
    -  public Object getBaseObject() { return base; }
    -  public long getBaseOffset() { return offset; }
    +  public MemoryBlock getBaseObject() { return base; }
    --- End diff --
    
    This changes the semantics, shall we return `base.getBaseObject`?


---

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