List of usage examples for org.apache.lucene.store FilterDirectory getDelegate
public final Directory getDelegate()
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; }