Class SearchParameters
java.lang.Object
org.odpi.openmetadata.accessservices.assetcatalog.model.rest.body.SearchParameters
- All Implemented Interfaces:
Serializable
SearchParameters provides a structure to make the assets' search results more precise.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
boolean
Returns whether the search should be performed as a case-insensitive regular expression (true) or as a case-sensitive regular expression (false)Return the list of entity types name to search for.boolean
Returns whether the search should be performed taking into account and exact match criteria (true).getFrom()
Return the start from of the result setgetLevel()
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 orderedReturn the name of the property that is to be used to sequence the resultsint
hashCode()
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 paginationvoid
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 entriesvoid
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 orderedvoid
setSequencingProperty
(String sequencingProperty) Set up the name of the property that is to be used to sequence the resultstoString()
-
Constructor Details
-
SearchParameters
public SearchParameters()
-
-
Method Details
-
getPageSize
Return the maximum page pageSize supported by this server.- Returns:
- 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
-
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
-
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
-
getSequencingOrder
Return the enum defining how the results should be ordered- Returns:
- 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.
-
getEntityTypes
Return the list of entity types name to search for. Null means any types.- Returns:
- 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
-
getCaseInsensitive
public boolean getCaseInsensitive()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
-
getExactMatch
public boolean getExactMatch()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
-
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.
-
setFrom
Set up the start from of the result set for pagination- Parameters:
from
- start from of the result set
-
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
-
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
-
setSequencingOrder
Set up the enum defining how the results should be ordered- Parameters:
sequencingOrder
- the enum defining how the results should be ordered
-
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.
-
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
-
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
-
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
-
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
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-