java.lang.Object
org.odpi.openmetadata.viewservices.assetcatalog.beans.SearchParameters

public class SearchParameters extends Object
SearchParameters provides a structure to make the assets' search results more precise.
  • Constructor Details

    • SearchParameters

      public SearchParameters()
      Default constructor;
  • Method Details

    • getPageSize

      public Integer getPageSize()
      Return the maximum page pageSize supported by this server.
      Returns:
      max number of elements that can be returned on a request.
    • setPageSize

      public void setPageSize(Integer pageSize)
      Set up the pageSize the result set to only include the specified number of entries.
      Parameters:
      pageSize - max number of elements that can be returned on a request.
    • getFrom

      public Integer getFrom()
      Return the start from of the result set.
      Returns:
      the start from of result
    • setFrom

      public void setFrom(Integer from)
      Set up the start from of the result set for pagination.
      Parameters:
      from - start from of the result set
    • getLevel

      public Integer getLevel()
      Return the number of the relationships out from the starting entity that the query will traverse to gather results.
      Returns:
      number of the relationship
    • setLevel

      public void setLevel(Integer level)
      Set up the number of the relationships out from the starting entity that the query will traverse to gather results.
      Parameters:
      level - the number of the relationships out from the starting entity
    • getSequencingProperty

      public String getSequencingProperty()
      Return the name of the property that is to be used to sequence the results.
      Returns:
      the name of the property that is to be used to sequence the results
    • setSequencingProperty

      public void setSequencingProperty(String sequencingProperty)
      Set up the name of the property that is to be used to sequence the results.
      Parameters:
      sequencingProperty - the name of the property that is to be used to sequence the results
    • getSequencingOrder

      public SequencingOrder getSequencingOrder()
      Return the enum defining how the results should be ordered.
      Returns:
      the enum defining how the results should be ordered
    • setSequencingOrder

      public void setSequencingOrder(SequencingOrder sequencingOrder)
      Set up the enum defining how the results should be ordered.
      Parameters:
      sequencingOrder - the enum defining how the results should be ordered
    • getLimitResultsByClassification

      public List<String> getLimitResultsByClassification()
      Returns the list of classifications that must be present on all returned entities.
      Returns:
      list of classifications that must be present on all returned entities.
    • setLimitResultsByClassification

      public void setLimitResultsByClassification(List<String> limitResultsByClassification)
      Set up the list of classifications that must be present on all returned entities.
      Parameters:
      limitResultsByClassification - list of classifications that must be present on all returned entities.
    • getEntityTypes

      public List<String> getEntityTypes()
      Return the list of entity types name to search for. Null means any types.
      Returns:
      the list of entity types to search for
    • setEntityTypes

      public void setEntityTypes(List<String> entityTypes)
      Set up the list of entity types name to search for. Null means any types.
      Parameters:
      entityTypes - the list of entity types to search for
    • getRelationshipTypeGUIDs

      public List<String> getRelationshipTypeGUIDs()
      Return the list of relationship types to include in the query results. Null means include all relationships found, irrespective of their type.
      Returns:
      list of relationship types to include in the query results
    • setRelationshipTypeGUIDs

      public void setRelationshipTypeGUIDs(List<String> relationshipTypeGUIDs)
      Set up the list of relationship types to include in the query results. Null means include all relationships found, irrespective of their type.
      Parameters:
      relationshipTypeGUIDs - List of relationship types to include in the query results
    • isCaseInsensitive

      public boolean isCaseInsensitive()
      Returns whether the search should be performed as a case-insensitive regular expression (true) or as a case-sensitive regular expression (false).
      Returns:
      false if it is performed a case-insensitive search and true otherwise
    • setCaseInsensitive

      public void setCaseInsensitive(boolean caseInsensitive)
      Indicates whether the search should be performed as a case-insensitive regular expression (true) or as a case-sensitive regular expression (false).
      Parameters:
      caseInsensitive - boolean to set the case sensitivity for the search criteria
    • isExactMatch

      public boolean isExactMatch()
      Returns whether the search should be performed taking into account and exact match criteria (true).
      Returns:
      false if it is performed an inexact match search and true otherwise
    • setExactMatch

      public void setExactMatch(boolean exactMatch)
      Indicates whether the search should be performed taking into account and exact match criteria (true).
      Parameters:
      exactMatch - boolean to set the exact match parameter for the search criteria
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object objectToCompare)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object