/** * Fetch the first value. Added for backwards compatibility with 5.x when date fields were {@link Longs}. */ @Deprecated public JodaCompatibleZonedDateTime getDate() { deprecated("scripting_get_date_deprecation", "getDate is no longer necessary on date fields as the value is now a date."); return getValue(); }
@Deprecated public JodaCompatibleZonedDateTime getDate() throws IOException { deprecated("scripting_get_date_deprecation","getDate on numeric fields is deprecated. Use a date field to get dates."); if (dates == null) { dates = new Dates(in, deprecationCallback); dates.setNextDocId(docId); } return dates.getValue(); }
/** * Fetch the first value. Added for backwards compatibility with 5.x when date fields were {@link Longs}. */ @Deprecated public ReadableDateTime getDate() { deprecated("getDate is no longer necessary on date fields as the value is now a date."); return getValue(); }
@Deprecated public ReadableDateTime getDate() throws IOException { deprecated("getDate on numeric fields is deprecated. Use a date field to get dates."); if (dates == null) { dates = new Dates(in); dates.setNextDocId(docId); } return dates.getValue(); }
/** * Fetch the first value. Added for backwards compatibility with 5.x when date fields were {@link Longs}. */ @Deprecated public JodaCompatibleZonedDateTime getDate() { deprecated("scripting_get_date_deprecation", "getDate is no longer necessary on date fields as the value is now a date."); return getValue(); }
@Deprecated public JodaCompatibleZonedDateTime getDate() throws IOException { deprecated("scripting_get_date_deprecation","getDate on numeric fields is deprecated. Use a date field to get dates."); if (dates == null) { dates = new Dates(in, deprecationCallback); dates.setNextDocId(docId); } return dates.getValue(); }
public ReadableDateTime getDate() { if (dates == null) { dates = new Dates(values); dates.refreshArray(); } return dates.getValue(); }