net.conquiris.api.search
Class Reader

java.lang.Object
  extended by net.conquiris.api.search.Reader
All Implemented Interfaces:
Supplier<IndexReader>

public final class Reader
extends Object
implements Supplier<IndexReader>

A reference to an exact instance of an index reader.

Author:
Andres Rodriguez

Method Summary
 IndexReader get()
          Returns the index reader.
 boolean isReopenable()
          Returns whether the index is reopenable.
static Reader of(IndexReader reader, boolean reopenable)
          Creates a new reader reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

of

public static Reader of(IndexReader reader,
                        boolean reopenable)
Creates a new reader reference.

Parameters:
reader - Index reader.
reopenable - Whether the reader is reopenable.
Returns:
The requested reference.

get

public IndexReader get()
Returns the index reader.

Specified by:
get in interface Supplier<IndexReader>

isReopenable

public boolean isReopenable()
Returns whether the index is reopenable.



Copyright © 2013 Derquinse Projects. All Rights Reserved.