All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.engine.nulls.impl.MissingValueStrategy Maven / Gradle / Ivy

There is a newer version: 5.11.12.Final
Show newest version
/*
 * Hibernate Search, full-text search for your domain model
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.search.engine.nulls.impl;

import org.hibernate.search.bridge.spi.NullMarker;
import org.hibernate.search.engine.metadata.impl.PartialDocumentFieldMetadata;
import org.hibernate.search.engine.nulls.codec.impl.NullMarkerCodec;
import org.hibernate.search.spi.IndexedTypeIdentifier;

/**
 * Strategy for handling missing values.
 *
 * 

Currently only serves as a factory for {@link NullMarkerCodec}s, but could be * extended in the future to also handle exists/missing queries (see HSEARCH-2389). * * @author Yoann Rodiere */ public interface MissingValueStrategy { /** * @param entityType The entity on which the null marker is being used. * @param fieldMetadata The field metadata we know about so far. * @param marker The null marker to use when indexing/querying null values. * @return A codec that will index and query the given marker. */ NullMarkerCodec createNullMarkerCodec(IndexedTypeIdentifier entityType, PartialDocumentFieldMetadata fieldMetadata, NullMarker marker); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy