-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scripting: Rework joda time backcompat #33486
Changes from 1 commit
f815009
8260827
56f1f1e
9035788
d876b3d
f3ec719
19019e7
92a227c
8cc0a3a
3930cf6
bd83968
11e03c7
eab341a
f105096
03a28dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,9 +76,85 @@ class org.elasticsearch.index.fielddata.ScriptDocValues$Longs { | |
List getValues() | ||
} | ||
|
||
class org.elasticsearch.script.JodaCompatibleZonedDateTime { | ||
##### ZonedDateTime methods | ||
int getDayOfMonth() | ||
int getDayOfYear() | ||
int getHour() | ||
LocalDate toLocalDate() | ||
LocalDateTime toLocalDateTime() | ||
int getMinute() | ||
Month getMonth() | ||
int getMonthValue() | ||
int getNano() | ||
int getSecond() | ||
int getYear() | ||
ZonedDateTime minus(TemporalAmount) | ||
ZonedDateTime minus(long,TemporalUnit) | ||
ZonedDateTime minusYears(long) | ||
ZonedDateTime minusMonths(long) | ||
ZonedDateTime minusWeeks(long) | ||
ZonedDateTime minusDays(long) | ||
ZonedDateTime minusHours(long) | ||
ZonedDateTime minusMinutes(long) | ||
ZonedDateTime minusSeconds(long) | ||
ZonedDateTime minusNanos(long) | ||
ZonedDateTime plus(TemporalAmount) | ||
ZonedDateTime plus(long,TemporalUnit) | ||
ZonedDateTime plusDays(long) | ||
ZonedDateTime plusHours(long) | ||
ZonedDateTime plusMinutes(long) | ||
ZonedDateTime plusMonths(long) | ||
ZonedDateTime plusNanos(long) | ||
ZonedDateTime plusSeconds(long) | ||
ZonedDateTime plusWeeks(long) | ||
ZonedDateTime plusYears(long) | ||
Instant toInstant() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. where is this one coming from? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ignore this, misread it as being something for BWC, but it's a new method |
||
OffsetDateTime toOffsetDateTime() | ||
ZonedDateTime truncatedTo(TemporalUnit) | ||
ZonedDateTime with(TemporalAdjuster) | ||
ZonedDateTime with(TemporalField,long) | ||
ZonedDateTime withDayOfMonth(int) | ||
ZonedDateTime withDayOfYear(int) | ||
ZonedDateTime withEarlierOffsetAtOverlap() | ||
ZonedDateTime withFixedOffsetZone() | ||
ZonedDateTime withHour(int) | ||
ZonedDateTime withLaterOffsetAtOverlap() | ||
ZonedDateTime withMinute(int) | ||
ZonedDateTime withMonth(int) | ||
ZonedDateTime withNano(int) | ||
ZonedDateTime withSecond(int) | ||
ZonedDateTime withYear(int) | ||
ZonedDateTime withZoneSameLocal(ZoneId) | ||
ZonedDateTime withZoneSameInstant(ZoneId) | ||
|
||
#### Joda time methods | ||
long getMillis() | ||
int getCenturyOfEra() | ||
int getEra() | ||
int getHourOfDay() | ||
int getMillisOfDay() | ||
int getMillisOfSecond() | ||
int getMinuteOfDay() | ||
int getMinuteOfHour() | ||
int getMonthOfYear() | ||
int getSecondOfDay() | ||
int getSecondOfMinute() | ||
int getWeekOfWeekyear() | ||
int getWeekyear() | ||
int getYearOfCentury() | ||
int getYearOfEra() | ||
String toString(String) | ||
String toString(String,Locale) | ||
|
||
# conflicting methods | ||
DayOfWeek getDayOfWeekEnum() | ||
int getDayOfWeek() | ||
} | ||
|
||
class org.elasticsearch.index.fielddata.ScriptDocValues$Dates { | ||
Object get(int) | ||
Object getValue() | ||
JodaCompatibleZonedDateTime get(int) | ||
JodaCompatibleZonedDateTime getValue() | ||
List getValues() | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "the return type of getDayOfWeek will change in 7.0. Call getDayOfWeekEnum().getValue() to be compatible with 7.0."