Search in sources :

Example 1 with LuceneBytesRefExternalizer

use of org.infinispan.query.impl.externalizers.LuceneBytesRefExternalizer in project infinispan by infinispan.

the class LifecycleManager method cacheManagerStarting.

@Override
public void cacheManagerStarting(GlobalComponentRegistry gcr, GlobalConfiguration globalCfg) {
    SerializationContextRegistry ctxRegistry = gcr.getComponent(SerializationContextRegistry.class);
    ctxRegistry.addContextInitializer(SerializationContextRegistry.MarshallerType.PERSISTENCE, new PersistenceContextInitializerImpl());
    Map<Integer, AdvancedExternalizer<?>> externalizerMap = globalCfg.serialization().advancedExternalizers();
    externalizerMap.put(ExternalizerIds.LUCENE_SORT, new LuceneSortExternalizer());
    externalizerMap.put(ExternalizerIds.LUCENE_SORT_FIELD, new LuceneSortFieldExternalizer());
    externalizerMap.put(ExternalizerIds.CLUSTERED_QUERY_TOPDOCS, new NodeTopDocs.Externalizer());
    externalizerMap.put(ExternalizerIds.LUCENE_TOPDOCS, new LuceneTopDocsExternalizer());
    externalizerMap.put(ExternalizerIds.LUCENE_FIELD_SCORE_DOC, new LuceneFieldDocExternalizer());
    externalizerMap.put(ExternalizerIds.LUCENE_SCORE_DOC, new LuceneScoreDocExternalizer());
    externalizerMap.put(ExternalizerIds.LUCENE_TOPFIELDDOCS, new LuceneTopFieldDocsExternalizer());
    externalizerMap.put(ExternalizerIds.INDEX_WORKER, new IndexWorker.Externalizer());
    externalizerMap.put(ExternalizerIds.LUCENE_BYTES_REF, new LuceneBytesRefExternalizer());
    externalizerMap.put(ExternalizerIds.QUERY_DEFINITION, new QueryDefinition.Externalizer());
    externalizerMap.put(ExternalizerIds.CLUSTERED_QUERY_COMMAND_RESPONSE, new QueryResponse.Externalizer());
    externalizerMap.put(ExternalizerIds.CLUSTERED_QUERY_OPERATION, new ClusteredQueryOperation.Externalizer());
    externalizerMap.put(ExternalizerIds.POJO_TYPE_IDENTIFIER, new PojoRawTypeIdentifierExternalizer());
    externalizerMap.put(ExternalizerIds.LUCENE_TOTAL_HITS, new LuceneTotalHitsExternalizer());
}
Also used : LuceneBytesRefExternalizer(org.infinispan.query.impl.externalizers.LuceneBytesRefExternalizer) LuceneScoreDocExternalizer(org.infinispan.query.impl.externalizers.LuceneScoreDocExternalizer) LuceneSortFieldExternalizer(org.infinispan.query.impl.externalizers.LuceneSortFieldExternalizer) PojoRawTypeIdentifierExternalizer(org.infinispan.query.impl.externalizers.PojoRawTypeIdentifierExternalizer) LuceneSortExternalizer(org.infinispan.query.impl.externalizers.LuceneSortExternalizer) LuceneTopDocsExternalizer(org.infinispan.query.impl.externalizers.LuceneTopDocsExternalizer) SerializationContextRegistry(org.infinispan.marshall.protostream.impl.SerializationContextRegistry) ClusteredQueryOperation(org.infinispan.query.clustered.ClusteredQueryOperation) NodeTopDocs(org.infinispan.query.clustered.NodeTopDocs) LuceneFieldDocExternalizer(org.infinispan.query.impl.externalizers.LuceneFieldDocExternalizer) LuceneTopFieldDocsExternalizer(org.infinispan.query.impl.externalizers.LuceneTopFieldDocsExternalizer) QueryResponse(org.infinispan.query.clustered.QueryResponse) LuceneTotalHitsExternalizer(org.infinispan.query.impl.externalizers.LuceneTotalHitsExternalizer) IndexWorker(org.infinispan.query.impl.massindex.IndexWorker) AdvancedExternalizer(org.infinispan.commons.marshall.AdvancedExternalizer)

Aggregations

AdvancedExternalizer (org.infinispan.commons.marshall.AdvancedExternalizer)1 SerializationContextRegistry (org.infinispan.marshall.protostream.impl.SerializationContextRegistry)1 ClusteredQueryOperation (org.infinispan.query.clustered.ClusteredQueryOperation)1 NodeTopDocs (org.infinispan.query.clustered.NodeTopDocs)1 QueryResponse (org.infinispan.query.clustered.QueryResponse)1 LuceneBytesRefExternalizer (org.infinispan.query.impl.externalizers.LuceneBytesRefExternalizer)1 LuceneFieldDocExternalizer (org.infinispan.query.impl.externalizers.LuceneFieldDocExternalizer)1 LuceneScoreDocExternalizer (org.infinispan.query.impl.externalizers.LuceneScoreDocExternalizer)1 LuceneSortExternalizer (org.infinispan.query.impl.externalizers.LuceneSortExternalizer)1 LuceneSortFieldExternalizer (org.infinispan.query.impl.externalizers.LuceneSortFieldExternalizer)1 LuceneTopDocsExternalizer (org.infinispan.query.impl.externalizers.LuceneTopDocsExternalizer)1 LuceneTopFieldDocsExternalizer (org.infinispan.query.impl.externalizers.LuceneTopFieldDocsExternalizer)1 LuceneTotalHitsExternalizer (org.infinispan.query.impl.externalizers.LuceneTotalHitsExternalizer)1 PojoRawTypeIdentifierExternalizer (org.infinispan.query.impl.externalizers.PojoRawTypeIdentifierExternalizer)1 IndexWorker (org.infinispan.query.impl.massindex.IndexWorker)1