Github user haoyuan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/158#discussion_r10861073
  
    --- Diff: core/src/main/java/org/apache/spark/api/java/StorageLevels.java 
---
    @@ -23,17 +23,19 @@
      * Expose some commonly useful storage level constants.
      */
     public class StorageLevels {
    -  public static final StorageLevel NONE = create(false, false, false, 1);
    -  public static final StorageLevel DISK_ONLY = create(true, false, false, 
1);
    -  public static final StorageLevel DISK_ONLY_2 = create(true, false, 
false, 2);
    -  public static final StorageLevel MEMORY_ONLY = create(false, true, true, 
1);
    -  public static final StorageLevel MEMORY_ONLY_2 = create(false, true, 
true, 2);
    -  public static final StorageLevel MEMORY_ONLY_SER = create(false, true, 
false, 1);
    -  public static final StorageLevel MEMORY_ONLY_SER_2 = create(false, true, 
false, 2);
    -  public static final StorageLevel MEMORY_AND_DISK = create(true, true, 
true, 1);
    -  public static final StorageLevel MEMORY_AND_DISK_2 = create(true, true, 
true, 2);
    -  public static final StorageLevel MEMORY_AND_DISK_SER = create(true, 
true, false, 1);
    -  public static final StorageLevel MEMORY_AND_DISK_SER_2 = create(true, 
true, false, 2);
    +  public static final StorageLevel NONE = new StorageLevel(false, false, 
false, false, 1);
    --- End diff --
    
    Good point. Thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to