Class SearchParameters
java.lang.Object
org.odpi.openmetadata.viewservices.assetcatalog.beans.SearchParameters
SearchParameters provides a structure to make the assets' search results more precise.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the list of entity types name to search for.getFrom()
Return the start from of the result set.getLevel()
Return the number of the relationships out from the starting entity that the query will traverse to gather results.Returns the list of classifications that must be present on all returned entities.Return the maximum page pageSize supported by this server.Return the list of relationship types to include in the query results.Return the enum defining how the results should be ordered.Return the name of the property that is to be used to sequence the results.int
hashCode()
boolean
Returns whether the search should be performed as a case-insensitive regular expression (true) or as a case-sensitive regular expression (false).boolean
Returns whether the search should be performed taking into account and exact match criteria (true).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).void
setEntityTypes
(List<String> entityTypes) Set up the list of entity types name to search for.void
setExactMatch
(boolean exactMatch) Indicates whether the search should be performed taking into account and exact match criteria (true).void
Set up the start from of the result set for pagination.void
Set up the number of the relationships out from the starting entity that the query will traverse to gather results.void
setLimitResultsByClassification
(List<String> limitResultsByClassification) Set up the list of classifications that must be present on all returned entities.void
setPageSize
(Integer pageSize) Set up the pageSize the result set to only include the specified number of entries.void
setRelationshipTypeGUIDs
(List<String> relationshipTypeGUIDs) Set up the list of relationship types to include in the query results.void
setSequencingOrder
(SequencingOrder sequencingOrder) Set up the enum defining how the results should be ordered.void
setSequencingProperty
(String sequencingProperty) Set up the name of the property that is to be used to sequence the results.toString()
-
Constructor Details
-
SearchParameters
public SearchParameters()Default constructor;
-
-
Method Details
-
getPageSize
Return the maximum page pageSize supported by this server.- Returns:
- max number of elements that can be returned on a request.
-
setPageSize
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
Return the start from of the result set.- Returns:
- the start from of result
-
setFrom
Set up the start from of the result set for pagination.- Parameters:
from
- start from of the result set
-
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
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
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
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
Return the enum defining how the results should be ordered.- Returns:
- the enum defining how the results should be ordered
-
setSequencingOrder
Set up the enum defining how the results should be ordered.- Parameters:
sequencingOrder
- the enum defining how the results should be ordered
-
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
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
Return the list of entity types name to search for. Null means any types.- Returns:
- the list of entity types to search for
-
setEntityTypes
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
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
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
-
equals
-
hashCode
public int hashCode()
-