Example usage for org.apache.lucene.index IndexWriter getLiveCommitData

List of usage examples for org.apache.lucene.index IndexWriter getLiveCommitData

Introduction

In this page you can find the example usage for org.apache.lucene.index IndexWriter getLiveCommitData.

Prototype

public final synchronized Iterable<Map.Entry<String, String>> getLiveCommitData() 

Source Link

Document

Returns the commit user data iterable previously set with #setLiveCommitData(Iterable) , or null if nothing has been set yet.

Usage

From source file:org.elasticsearch.index.engine.EngineDiskUtils.java

License:Apache License

private static Map<String, String> getUserData(IndexWriter writer) {
    final Map<String, String> userData = new HashMap<>();
    writer.getLiveCommitData().forEach(e -> userData.put(e.getKey(), e.getValue()));
    return userData;
}