Package org.hibernate.search.indexes.serialization.impl

Examples of org.hibernate.search.indexes.serialization.impl.LuceneWorkSerializerImpl.toSerializedModel()


        serializationProvider,
        searchFactoryHolder.getSearchFactory()
    );
    List<LuceneWork> works = buildWorks();

    byte[] bytes = converter.toSerializedModel( works );
    List<LuceneWork> copyOfWorks = converter.toLuceneWorks( bytes );

    assertThat( copyOfWorks ).hasSize( works.size() );
    for ( int index = 0; index < works.size(); index++ ) {
      AvroTestHelpers.assertLuceneWork( works.get( index ), copyOfWorks.get( index ) );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.