Example usage for org.apache.lucene.store FilterDirectory getDelegate

List of usage examples for org.apache.lucene.store FilterDirectory getDelegate

Introduction

In this page you can find the example usage for org.apache.lucene.store FilterDirectory getDelegate.

Prototype

public final Directory getDelegate() 

Source Link

Document

Return the wrapped Directory .

Usage

From source file:org.elasticsearch.index.store.DirectoryUtils.java

License:Apache License

private static final Directory getLeafDirectory(FilterDirectory dir) {
    Directory current = dir.getDelegate();
    while ((current instanceof FilterDirectory)) {
        current = ((FilterDirectory) current).getDelegate();
    }/*from   ww  w  .  j a v a2 s  .  co  m*/
    return current;
}