org.hibernate.search.indexes.serialization.avro.impl
Class AvroSerializer

java.lang.Object
  extended by org.hibernate.search.indexes.serialization.avro.impl.AvroSerializer
All Implemented Interfaces:
Serializer

public class AvroSerializer
extends Object
implements Serializer

Author:
Emmanuel Bernard

Constructor Summary
AvroSerializer(org.apache.avro.Protocol protocol)
           
 
Method Summary
 void addAdd(String entityClassName, Map<String,String> fieldToAnalyzerMap)
           
 void addDelete(String entityClassName)
           
 void addDocument(float boost)
           
 void addDoubleNumericField(double value, LuceneNumericFieldContext context)
           
 void addFieldWithBinaryData(LuceneFieldContext context)
           
 void addFieldWithSerializableFieldable(byte[] fieldable)
           
 void addFieldWithSerializableReaderData(LuceneFieldContext context)
           
 void addFieldWithStringData(LuceneFieldContext context)
           
 void addFieldWithTokenStreamData(LuceneFieldContext context)
           
 void addFloatNumericField(float value, LuceneNumericFieldContext context)
           
 void addIdAsDouble(double id)
           
 void addIdAsFloat(float id)
           
 void addIdAsInteger(int id)
           
 void addIdAsLong(long id)
           
 void addIdAsString(String id)
           
 void addIdSerializedInJava(byte[] id)
           
 void addIntNumericField(int value, LuceneNumericFieldContext context)
           
 void addLongNumericField(long value, LuceneNumericFieldContext context)
           
 void addOptimizeAll()
           
 void addPurgeAll(String entityClassName)
           
 void addUpdate(String entityClassName, Map<String,String> fieldToAnalyzerMap)
           
 void fields(List<Fieldable> fields)
           
 void luceneWorks(List<LuceneWork> works)
           
 byte[] serialize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvroSerializer

public AvroSerializer(org.apache.avro.Protocol protocol)
Method Detail

luceneWorks

public void luceneWorks(List<LuceneWork> works)
Specified by:
luceneWorks in interface Serializer

addOptimizeAll

public void addOptimizeAll()
Specified by:
addOptimizeAll in interface Serializer

addPurgeAll

public void addPurgeAll(String entityClassName)
Specified by:
addPurgeAll in interface Serializer

addIdSerializedInJava

public void addIdSerializedInJava(byte[] id)
Specified by:
addIdSerializedInJava in interface Serializer

addIdAsInteger

public void addIdAsInteger(int id)
Specified by:
addIdAsInteger in interface Serializer

addIdAsLong

public void addIdAsLong(long id)
Specified by:
addIdAsLong in interface Serializer

addIdAsFloat

public void addIdAsFloat(float id)
Specified by:
addIdAsFloat in interface Serializer

addIdAsDouble

public void addIdAsDouble(double id)
Specified by:
addIdAsDouble in interface Serializer

addIdAsString

public void addIdAsString(String id)
Specified by:
addIdAsString in interface Serializer

addDelete

public void addDelete(String entityClassName)
Specified by:
addDelete in interface Serializer

addAdd

public void addAdd(String entityClassName,
                   Map<String,String> fieldToAnalyzerMap)
Specified by:
addAdd in interface Serializer

addUpdate

public void addUpdate(String entityClassName,
                      Map<String,String> fieldToAnalyzerMap)
Specified by:
addUpdate in interface Serializer

serialize

public byte[] serialize()
Specified by:
serialize in interface Serializer

fields

public void fields(List<Fieldable> fields)
Specified by:
fields in interface Serializer

addIntNumericField

public void addIntNumericField(int value,
                               LuceneNumericFieldContext context)
Specified by:
addIntNumericField in interface Serializer

addLongNumericField

public void addLongNumericField(long value,
                                LuceneNumericFieldContext context)
Specified by:
addLongNumericField in interface Serializer

addFloatNumericField

public void addFloatNumericField(float value,
                                 LuceneNumericFieldContext context)
Specified by:
addFloatNumericField in interface Serializer

addDoubleNumericField

public void addDoubleNumericField(double value,
                                  LuceneNumericFieldContext context)
Specified by:
addDoubleNumericField in interface Serializer

addFieldWithBinaryData

public void addFieldWithBinaryData(LuceneFieldContext context)
Specified by:
addFieldWithBinaryData in interface Serializer

addFieldWithStringData

public void addFieldWithStringData(LuceneFieldContext context)
Specified by:
addFieldWithStringData in interface Serializer

addFieldWithTokenStreamData

public void addFieldWithTokenStreamData(LuceneFieldContext context)
Specified by:
addFieldWithTokenStreamData in interface Serializer

addFieldWithSerializableReaderData

public void addFieldWithSerializableReaderData(LuceneFieldContext context)
Specified by:
addFieldWithSerializableReaderData in interface Serializer

addFieldWithSerializableFieldable

public void addFieldWithSerializableFieldable(byte[] fieldable)
Specified by:
addFieldWithSerializableFieldable in interface Serializer

addDocument

public void addDocument(float boost)
Specified by:
addDocument in interface Serializer


Copyright © 2006-2013 Red Hat, Inc. All Rights Reserved