Class FindEntities
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractSearchOperation
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractEntitySearchOperation
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.FindEntities
Implements the 'findEntities' operation of the OMRS metadata collection interface.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractSearchOperation
fromElement, limitResultsByStatus, matchClassifications, pageSize, sequencingOrder, sequencingProperty, typeGUID, userId
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
asOfTime, existingDB, xtdb
-
Constructor Summary
ConstructorDescriptionFindEntities
(XTDBOMRSRepositoryConnector xtdb, String entityTypeGUID, List<String> entitySubtypeGUIDs, SearchProperties matchProperties, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, SearchClassifications matchClassifications, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize, String userId) Create a new 'findEntities' executable. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<List<?>>
runQuery
(xtdb.api.IXtdbDatasource db) Interface that must be implemented to actually execute the query logic.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractEntitySearchOperation
getResults
Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractSearchOperation
deduplicateAndPage, searchXtdb, searchXtdbText, updateQuery
Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
getXtdbObjectByReference
-
Constructor Details
-
FindEntities
public FindEntities(XTDBOMRSRepositoryConnector xtdb, String entityTypeGUID, List<String> entitySubtypeGUIDs, SearchProperties matchProperties, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, SearchClassifications matchClassifications, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize, String userId) Create a new 'findEntities' executable.- Parameters:
xtdb
- connectivity to XTDBentityTypeGUID
- see XTDBOMRSMetadataCollection#findEntitiesentitySubtypeGUIDs
- see XTDBOMRSMetadataCollection#findEntitiesmatchProperties
- see XTDBOMRSMetadataCollection#findEntitiesfromEntityElement
- see XTDBOMRSMetadataCollection#findEntitieslimitResultsByStatus
- see XTDBOMRSMetadataCollection#findEntitiesmatchClassifications
- see XTDBOMRSMetadataCollection#findEntitiesasOfTime
- see XTDBOMRSMetadataCollection#findEntitiessequencingProperty
- see XTDBOMRSMetadataCollection#findEntitiessequencingOrder
- see XTDBOMRSMetadataCollection#findEntitiespageSize
- see XTDBOMRSMetadataCollection#findEntitiesuserId
- of the user running the query- See Also:
-
-
Method Details
-
runQuery
protected Collection<List<?>> runQuery(xtdb.api.IXtdbDatasource db) throws TypeErrorException, TimeoutException, RepositoryErrorException Interface that must be implemented to actually execute the query logic.- Specified by:
runQuery
in classAbstractSearchOperation
- Parameters:
db
- the datasource against which to run the query- Returns:
Collection<List<?>>
of internal XT references (IDs) that match the query- Throws:
TypeErrorException
- if a requested type for searching is not known to the repositoryTimeoutException
- if the query times outRepositoryErrorException
- if there is any issue iterating through the results
-