net.conquiris.lucene.document
Class FieldSelectors

java.lang.Object
  extended by net.conquiris.lucene.document.FieldSelectors

public final class FieldSelectors
extends Object

Support class for field selectors.

Author:
Andres Rodriguez
See Also:
FieldSelector.

Method Summary
static org.apache.lucene.document.FieldSelector loadFields(Iterable<String> fieldsToLoad)
          Creates a mapper with a selector that loads a certain set of fields eagerly and the rest are not loaded.
static org.apache.lucene.document.FieldSelector loadFields(Iterable<String> fieldsToLoad, Iterable<String> fieldsToLoadLazily)
          Creates a mapper with a selector that loads a certain set of fields eagerly, another set lazily and the rest are not loaded.
static org.apache.lucene.document.FieldSelector loadFields(String... fieldsToLoad)
          Creates a mapper with a selector that loads a certain set of fields eagerly and the rest are not loaded.
static org.apache.lucene.document.FieldSelector loadItems(Iterable<? extends SchemaItem> itemsToLoad)
          Creates a mapper with a selector that loads a certain set of fields (represented by schema items) eagerly and the rest are not loaded.
static org.apache.lucene.document.FieldSelector loadItems(Iterable<? extends SchemaItem> itemsToLoad, Iterable<? extends SchemaItem> itemsToLoadLazily)
          Creates a mapper with a selector that loads a certain set of fields (represented by schema items) eagerly, another set lazily and the rest are not loaded.
static org.apache.lucene.document.FieldSelector loadItems(SchemaItem... itemsToLoad)
          Creates a mapper with a selector that loads a certain set of fields (represented by schema items) eagerly and the rest are not loaded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadFields

public static org.apache.lucene.document.FieldSelector loadFields(Iterable<String> fieldsToLoad,
                                                                  Iterable<String> fieldsToLoadLazily)
Creates a mapper with a selector that loads a certain set of fields eagerly, another set lazily and the rest are not loaded.

Parameters:
fieldsToLoad - Fields to load eagerly.
fieldsToLoadLazily - Fields to load lazily.
Throws:
NullPointerException - if any of the argument or any of their members is null.

loadFields

public static org.apache.lucene.document.FieldSelector loadFields(Iterable<String> fieldsToLoad)
Creates a mapper with a selector that loads a certain set of fields eagerly and the rest are not loaded.

Parameters:
fieldsToLoad - Fields to load eagerly.
Throws:
NullPointerException - if any the argument or any of its members is null.

loadFields

public static org.apache.lucene.document.FieldSelector loadFields(String... fieldsToLoad)
Creates a mapper with a selector that loads a certain set of fields eagerly and the rest are not loaded.

Parameters:
fieldsToLoad - Fields to load eagerly.
Throws:
NullPointerException - if any the arguments is null.

loadItems

public static org.apache.lucene.document.FieldSelector loadItems(Iterable<? extends SchemaItem> itemsToLoad,
                                                                 Iterable<? extends SchemaItem> itemsToLoadLazily)
Creates a mapper with a selector that loads a certain set of fields (represented by schema items) eagerly, another set lazily and the rest are not loaded.

Parameters:
itemsToLoad - Fields to load eagerly.
itemsToLoadLazily - Fields to load lazily.
Throws:
NullPointerException - if any of the argument or any of their members is null.

loadItems

public static org.apache.lucene.document.FieldSelector loadItems(Iterable<? extends SchemaItem> itemsToLoad)
Creates a mapper with a selector that loads a certain set of fields (represented by schema items) eagerly and the rest are not loaded.

Parameters:
itemsToLoad - Fields to load eagerly.
Throws:
NullPointerException - if any the argument or any of its members is null.

loadItems

public static org.apache.lucene.document.FieldSelector loadItems(SchemaItem... itemsToLoad)
Creates a mapper with a selector that loads a certain set of fields (represented by schema items) eagerly and the rest are not loaded.

Parameters:
itemsToLoad - Fields to load eagerly.
Throws:
NullPointerException - if any the arguments is null.


Copyright © 2012 Derquinse Projects.. All Rights Reserved.