@Deprecated public List<JodaCompatibleZonedDateTime> getDates() throws IOException { deprecated("scripting_get_date_deprecation", "getDates 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; }
@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(); }
@Deprecated public List<JodaCompatibleZonedDateTime> getDates() throws IOException { deprecated("scripting_get_date_deprecation", "getDates 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; }
@Override public void setNextDocId(int docId) throws IOException { this.docId = docId; if (in.advanceExact(docId)) { resize(in.docValueCount()); for (int i = 0; i < count; i++) { values[i] = in.nextValue(); } } else { resize(0); } if (dates != null) { dates.setNextDocId(docId); } }
@Override public void setNextDocId(int docId) throws IOException { this.docId = docId; if (in.advanceExact(docId)) { resize(in.docValueCount()); for (int i = 0; i < count; i++) { values[i] = in.nextValue(); } } else { resize(0); } if (dates != null) { dates.setNextDocId(docId); } }
@Deprecated public List<ReadableDateTime> getDates() throws IOException { deprecated("getDates on numeric fields is deprecated. Use a date field to get dates."); if (dates == null) { dates = new Dates(in); dates.setNextDocId(docId); } return dates; }
@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(); }
@Override public void setNextDocId(int docId) throws IOException { realDV.setNextDocId(docId); } };
@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(); }
@Override public void setNextDocId(int docId) throws IOException { this.docId = docId; if (in.advanceExact(docId)) { resize(in.docValueCount()); for (int i = 0; i < count; i++) { values[i] = in.nextValue(); } } else { resize(0); } if (dates != null) { dates.setNextDocId(docId); } }
@Override public void setNextDocId(int docId) throws IOException { realDV.setNextDocId(docId); } };