Skip to content

Commit

Permalink
Reverted the AbstractGlossaryPreProcessor file , previously edited.
Browse files Browse the repository at this point in the history
  • Loading branch information
hr2904 committed Jun 19, 2024
1 parent 57fe38e commit 36e7c36
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.apache.atlas.authorize.AtlasPrivilege;
import org.apache.atlas.discovery.EntityDiscoveryService;
import org.apache.atlas.exception.AtlasBaseException;
import org.apache.atlas.model.discovery.IndexSearchParams;
import org.apache.atlas.model.instance.AtlasEntity;
import org.apache.atlas.model.instance.AtlasEntityHeader;
import org.apache.atlas.model.instance.AtlasObjectId;
Expand All @@ -40,14 +41,17 @@
import org.apache.atlas.tasks.TaskManagement;
import org.apache.atlas.type.AtlasEntityType;
import org.apache.atlas.type.AtlasTypeRegistry;
import org.apache.atlas.util.lexoRank.LexoRank;
import org.apache.atlas.utils.AtlasPerfMetrics;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

import static org.apache.atlas.repository.Constants.ATLAS_GLOSSARY_TERM_ENTITY_TYPE;
Expand All @@ -56,8 +60,10 @@
import static org.apache.atlas.repository.Constants.STATE_PROPERTY_KEY;
import static org.apache.atlas.repository.store.graph.v2.preprocessor.PreProcessorUtils.indexSearchPaginated;
import static org.apache.atlas.repository.util.AtlasEntityUtils.mapOf;
import static org.apache.atlas.type.Constants.*;
import static org.apache.atlas.type.Constants.LEXICOGRAPHICAL_SORT_ORDER;
import static org.apache.atlas.type.Constants.MEANINGS_PROPERTY_KEY;
import static org.apache.atlas.type.Constants.MEANINGS_TEXT_PROPERTY_KEY;
import static org.apache.atlas.type.Constants.MEANING_NAMES_PROPERTY_KEY;
import static org.apache.atlas.type.Constants.PENDING_TASKS_PROPERTY_KEY;

public abstract class AbstractGlossaryPreProcessor implements PreProcessor {
private static final Logger LOG = LoggerFactory.getLogger(AbstractGlossaryPreProcessor.class);
Expand All @@ -67,7 +73,6 @@ public abstract class AbstractGlossaryPreProcessor implements PreProcessor {
protected static final String ATTR_MEANINGS = "meanings";
protected static final String ATTR_CATEGORIES = "categories";


protected final AtlasTypeRegistry typeRegistry;
protected final EntityGraphRetriever entityRetriever;
protected final TaskManagement taskManagement;
Expand Down

0 comments on commit 36e7c36

Please sign in to comment.