net.conquiris.lucene.document
Class BaseBinaryFieldBuilder<B extends BaseBinaryFieldBuilder<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.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

Field Summary
 
Fields inherited from interface net.conquiris.schema.IsStoredFlag
STORED
 
Fields inherited from interface net.conquiris.schema.IsIndexedFlag
INDEXED
 
Method Summary
 Field build(byte[] value)
          Builds a binary field with the provided value.
 Field build(ByteString value)
          Builds a binary field with the provided value.
 boolean isIndexed()
           
 boolean isStored()
           
 
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()

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.

build

public final Field build(ByteString 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 © 2013 Derquinse Projects. All Rights Reserved.