net.conquiris.lucene.document
Class IndexableFieldBuilder<B extends IndexableFieldBuilder<B>>

java.lang.Object
  extended by net.derquinse.common.reflect.This<B>
      extended by net.conquiris.lucene.document.FieldBuilder<B>
          extended by net.conquiris.lucene.document.IndexableFieldBuilder<B>
All Implemented Interfaces:
IsIndexedFlag, IsStoredFlag
Direct Known Subclasses:
BaseNumericFieldBuilder, BaseTextFieldBuilder

public abstract class IndexableFieldBuilder<B extends IndexableFieldBuilder<B>>
extends FieldBuilder<B>

Base class for indexable field builders. Indexable fields are indexed but not stored by default.

Author:
Andres Rodriguez

Field Summary
 
Fields inherited from interface net.conquiris.schema.IsStoredFlag
STORED
 
Fields inherited from interface net.conquiris.schema.IsIndexedFlag
INDEXED
 
Method Summary
 B index(boolean index)
          Sets whether to index the field.
 boolean isIndexed()
           
 boolean isStored()
           
 B store()
          Sets the field to be stored.
 B store(boolean store)
          Sets whether to store the field.
 B store(Field.Store store)
          Sets whether to store the field.
 
Methods inherited from class net.derquinse.common.reflect.This
thisValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isStored

public final boolean isStored()

isIndexed

public final boolean isIndexed()

store

public final B store(boolean store)
Sets whether to store the field.


store

public final B store()
Sets the field to be stored.


store

public final B store(@Nullable
                     Field.Store store)
Sets whether to store the field.

Parameters:
store - The field will be stored if the argument is Field.Store.YES.

index

public final B index(boolean index)
Sets whether to index the field.



Copyright © 2012 Derquinse Projects.. All Rights Reserved.