com.autonomy.nonaci.indexing.impl.DreRegenerateCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of indexing-api Show documentation
Show all versions of indexing-api Show documentation
API for indexing into IDOL using Java
/*
* (c) Copyright 2008-2015 Micro Focus or one of its affiliates.
*
* Licensed under the MIT License (the "License"); you may not use this file
* except in compliance with the License.
*
* The only warranties for products and services of Micro Focus and its affiliates
* and licensors ("Micro Focus") are as may be set forth in the express warranty
* statements accompanying such products and services. Nothing herein should be
* construed as constituting an additional warranty. Micro Focus shall not be
* liable for technical or editorial errors or omissions contained herein. The
* information contained herein is subject to change without notice.
*/
package com.autonomy.nonaci.indexing.impl;
/**
* Allows you to index documents that use ReferenceMemoryMappedType fields out of order. For example,
* a child in the hierarchy may be indexed before its parent.
*
* @author boba
*/
public class DreRegenerateCommand extends IndexCommandImpl {
public enum Type {
REFERENCE_MEMORY_MAPPED("ReferenceMemoryMapped");
private final String actual;
Type(final String actual) {
this.actual = actual;
}
@Override
public String toString() {
return actual;
}
}
/** Creates a new instance of DreRegenerateCommand. */
public DreRegenerateCommand() {
super(CMD_DREREGENERATE);
}
public Type getType() {
return Type.valueOf(get(PARAM_TYPE));
}
/**
* The type of field that is to be fixed.
*
* @param type The type of field that is to be fixed
*/
public void setType(final Type type) {
put(PARAM_TYPE, type.toString());
}
} // End of class DreRegenerateCommand...