/** * Return a {@link String} representation of the provided values. That is * typically used for scripts or for the `map` execution mode of terms aggs. * NOTE: this is very slow! */ public static SortedBinaryDocValues toString(final SortedNumericDoubleValues values) { return toString(new ToStringValues() { @Override public boolean advanceExact(int doc) throws IOException { return values.advanceExact(doc); } @Override public void get(List<CharSequence> list) throws IOException { for (int i = 0, count = values.docValueCount(); i < count; ++i) { list.add(Double.toString(values.nextValue())); } } }); }
/** * Return a {@link String} representation of the provided values. That is * typically used for scripts or for the `map` execution mode of terms aggs. * NOTE: this is very slow! */ public static SortedBinaryDocValues toString(final SortedNumericDocValues values) { return toString(new ToStringValues() { @Override public boolean advanceExact(int doc) throws IOException { return values.advanceExact(doc); } @Override public void get(List<CharSequence> list) throws IOException { for (int i = 0, count = values.docValueCount(); i < count; ++i) { list.add(Long.toString(values.nextValue())); } } }); }
/** * Return a {@link String} representation of the provided values. That is * typically used for scripts or for the `map` execution mode of terms aggs. * NOTE: this is very slow! */ public static SortedBinaryDocValues toString(final MultiGeoPointValues values) { return toString(new ToStringValues() { @Override public boolean advanceExact(int doc) throws IOException { return values.advanceExact(doc); } @Override public void get(List<CharSequence> list) throws IOException { for (int i = 0, count = values.docValueCount(); i < count; ++i) { list.add(values.nextValue().toString()); } } }); }
@Override public final SortedBinaryDocValues getBytesValues() { return FieldData.toString(getLongValues()); }
@Override public final SortedBinaryDocValues getBytesValues() { return FieldData.toString(getOrdinalsValues()); }
@Override public final SortedBinaryDocValues getBytesValues() { return FieldData.toString(getGeoPointValues()); }
@Override public final SortedBinaryDocValues getBytesValues() { return FieldData.toString(getDoubleValues()); }
@Override public final SortedBinaryDocValues getBytesValues() { return FieldData.toString(getDoubleValues()); }
@Override public final SortedBinaryDocValues getBytesValues() { return FieldData.toString(getGeoPointValues()); }
@Override public final SortedBinaryDocValues getBytesValues() { return FieldData.toString(getOrdinalsValues()); }
@Override public final SortedBinaryDocValues getBytesValues() { return FieldData.toString(getOrdinalsValues()); }
@Override public final SortedBinaryDocValues getBytesValues() { return FieldData.toString(getGeoPointValues()); }
@Override public final SortedBinaryDocValues getBytesValues() { return FieldData.toString(getDoubleValues()); }
@Override public SortedBinaryDocValues getBytesValues() { return FieldData.toString(getOrdinalsValues()); }
@Override public SortedBinaryDocValues getBytesValues() { return FieldData.toString(getDoubleValues()); }
@Override public SortedBinaryDocValues getBytesValues() { return FieldData.toString(getDoubleValues()); }
@Override public final SortedBinaryDocValues getBytesValues() { return FieldData.toString(getLongValues()); }
@Override public SortedBinaryDocValues getBytesValues() { return FieldData.toString(getDoubleValues()); }
@Override public final SortedBinaryDocValues getBytesValues() { return FieldData.toString(getLongValues()); }
@Override public final SortedBinaryDocValues getBytesValues() { return FieldData.toString(getGeoPointValues()); }