Package org.elasticsearch.index.fielddata

Examples of org.elasticsearch.index.fielddata.AtomicFieldData


                hitField = new InternalSearchHitField(field.name(), new ArrayList<>(2));
                hitContext.hit().fields().put(field.name(), hitField);
            }
            FieldMapper mapper = context.mapperService().smartNameFieldMapper(field.name());
            if (mapper != null) {
                AtomicFieldData data = context.fieldData().getForField(mapper).load(hitContext.readerContext());
                ScriptDocValues values = data.getScriptValues();
                values.setNextDocId(hitContext.docId());
                hitField.values().addAll(values.getValues());
            }
        }
    }
View Full Code Here


        if (uidFieldData == null) throw new NullPointerException("uid missing");
    }

    @Override
    public void setNextReader(LeafReaderContext context) {
        AtomicFieldData leafData = uidFieldData.load(context);
        uidByteData = leafData.getBytesValues();
        if (uidByteData == null) throw new NullPointerException("failed to get uid byte data");
    }
View Full Code Here

                        final IndexShard shard = indexService.shard(shardId.id());
                        if (shard != null) {
                            key.listeners.add(shard.fieldData());
                        }
                    }
                    final AtomicFieldData fieldData = indexFieldData.loadDirect(context);
                    for (Listener listener : key.listeners) {
                        try {
                            listener.onLoad(fieldNames, fieldDataType, fieldData);
                        } catch (Throwable e) {
                            // load anyway since listeners should not throw exceptions
View Full Code Here

        fieldData = d;
    }

    @Override
    public FunctionValues getValues(Map context, LeafReaderContext leaf) throws IOException {
        AtomicFieldData leafData = fieldData.load(leaf);
        assert(leafData instanceof AtomicNumericFieldData);
        return new FieldDataFunctionValues(this, (AtomicNumericFieldData)leafData);
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.index.fielddata.AtomicFieldData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.