![JAR search and dependency download from the Maven repository](/logo.png)
com.arangodb.entity.arangosearch.SearchAliasIndex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core module for ArangoDB Java Driver
package com.arangodb.entity.arangosearch;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author Michele Rastelli
* @since ArabgoDB 3.10
*/
public final class SearchAliasIndex {
private final String collection;
private final String index;
private final OperationType operation;
/**
* @param collection The name of a collection.
* @param index The name of an inverted index of the collection.
*/
public SearchAliasIndex(String collection, String index) {
this(collection, index, null);
}
/**
* @param collection The name of a collection.
* @param index The name of an inverted index of the collection.
* @param operation Whether to add or remove the index to the stored indexes property of the View. (default "add")
*/
@JsonCreator
public SearchAliasIndex(
@JsonProperty("collection") String collection,
@JsonProperty("index") String index,
@JsonProperty("operation") OperationType operation) {
this.collection = collection;
this.index = index;
this.operation = operation;
}
public String getCollection() {
return collection;
}
public String getIndex() {
return index;
}
public OperationType getOperation() {
return operation;
}
public enum OperationType {
add, del
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy