net.conquiris.lucene.document
Class BaseBinaryFieldBuilder<B extends BaseBinaryFieldBuilder<B>>
java.lang.Object
net.derquinse.common.reflect.This<B>
net.conquiris.lucene.document.FieldBuilder<B>
net.conquiris.lucene.document.BaseBinaryFieldBuilder<B>
- All Implemented Interfaces:
- IsIndexedFlag, IsStoredFlag
- Direct Known Subclasses:
- BaseDocumentBuilder.DocBinaryFieldBuilder, BinaryFieldBuilder
public abstract class BaseBinaryFieldBuilder<B extends BaseBinaryFieldBuilder<B>>
- extends FieldBuilder<B>
Base class for binary field builders. Binary fields are stored and not indexed.
- Author:
- Andres Rodriguez
| 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 |
isStored
public final boolean isStored()
isIndexed
public final boolean isIndexed()
build
public final Field build(byte[] value)
- Builds a binary field with the provided value.
- Parameters:
value - Field value.
- Returns:
- The created field.
- Throws:
IllegalStateException - if the field is neither stored nor indexed.
Copyright © 2012 Derquinse Projects.. All Rights Reserved.