Skip to content

Conversation

@rxin
Copy link
Contributor

@rxin rxin commented Dec 29, 2015

Just an example to use Scala Option to replace Guava Optional. I'm actually not sure whether this is the best option since it breaks source compatibility beyond "import".

@rxin
Copy link
Contributor Author

rxin commented Dec 29, 2015

cc @srowen -- if we use Scala's Option, I think we can just recommend users to use get and isDefined.

@srowen
Copy link
Member

srowen commented Dec 29, 2015

Yes that's viable too. I was just prepping something very similar but with an inlined clone of Java 8 Optional, on the theory that's next-most-Java-like. #10513

@SparkQA
Copy link

SparkQA commented Dec 29, 2015

Test build #48426 has finished for PR 10512 at commit 49ca121.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor Author

rxin commented Dec 30, 2015

Going to close this one since I was only posting it for demo.

@rxin rxin closed this Dec 30, 2015
asfgit pushed a commit that referenced this pull request Jan 8, 2016
Replace Guava `Optional` with (an API clone of) Java 8 `java.util.Optional` (edit: and a clone of Guava `Optional`)

See also #10512

Author: Sean Owen <sowen@cloudera.com>

Closes #10513 from srowen/SPARK-4819.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants