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

com.eventsourcing.index.Index Maven / Gradle / Ivy

There is a newer version: 0.4.6
Show newest version
/**
 * Copyright (c) 2016, All Contributors (see CONTRIBUTORS file)
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package com.eventsourcing.index;

import com.eventsourcing.index.IndexEngine.IndexFeature;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static com.eventsourcing.index.IndexEngine.IndexFeature.EQ;

/**
 * This annotation configures an index, but is not required to be specified
 * over the index if only equality ({@link IndexFeature#EQ})
 * is sought.
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Index {
    IndexFeature[] value() default {EQ};
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy