net.conquiris.lucene.document
Interface BinaryFieldAdder<B extends BaseDocumentBuilder<B>>

All Known Implementing Classes:
BaseDocumentBuilder.DocBinaryFieldBuilder

public interface BinaryFieldAdder<B extends BaseDocumentBuilder<B>>

Base interface for binary field adders.

Author:
Andres Rodriguez

Method Summary
 B add(byte[] value)
          Adds the field to the document with the provided value.
 B add(ByteString value)
          Adds the field to the document with the provided value.
 

Method Detail

add

B add(byte[] value)
Adds the field to the document with the provided value.

Parameters:
value - Field value.
Returns:
The document builder.
Throws:
IllegalStateException - if the document was already built.

add

B add(ByteString value)
Adds the field to the document with the provided value.

Parameters:
value - Field value.
Returns:
The document builder.
Throws:
IllegalStateException - if the document was already built.


Copyright © 2013 Derquinse Projects. All Rights Reserved.