diff options
author | Sean Owen <sowen@cloudera.com> | 2014-09-23 11:58:05 -0700 |
---|---|---|
committer | Matei Zaharia <matei@databricks.com> | 2014-09-23 11:58:05 -0700 |
commit | e73b48ace0a7e0f249221240140235d33eeac36b (patch) | |
tree | 50adea378f370306aa024e6165b385e4dad1d9c2 /sql/hive | |
parent | 3b8eefa9b843c7f1e0e8dda6023272bc9f011c5c (diff) | |
download | spark-e73b48ace0a7e0f249221240140235d33eeac36b.tar.gz spark-e73b48ace0a7e0f249221240140235d33eeac36b.tar.bz2 spark-e73b48ace0a7e0f249221240140235d33eeac36b.zip |
SPARK-2745 [STREAMING] Add Java friendly methods to Duration class
tdas is this what you had in mind for this JIRA? I saw this one and thought it would be easy to take care of, and helpful as I use streaming from Java.
I could do the same for `Time`? Happy to do so.
Author: Sean Owen <sowen@cloudera.com>
Closes #2403 from srowen/SPARK-2745 and squashes the following commits:
5a9e706 [Sean Owen] Change "Duration" to "Durations" to avoid changing Duration case class API
bda301c [Sean Owen] Just delegate to Scala binary operator syntax to avoid scalastyle warning
7dde949 [Sean Owen] Disable scalastyle for false positives. Add Java static factory methods seconds(), minutes() to Duration. Add Java-friendly methods to Time too, and unit tests. Remove unnecessary math.floor from Time.floor()
4dee32e [Sean Owen] Add named methods to Duration in parallel to symbolic methods for Java-friendliness. Also add unit tests for Duration, in Scala and Java.
Diffstat (limited to 'sql/hive')
0 files changed, 0 insertions, 0 deletions