public class CruxOMRSRepositoryConnector
extends org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector
auditLog, maxPageSize, metadataCollection, metadataCollectionId, metadataCollectionName, organizationName, repositoryHelper, repositoryName, repositoryValidator, serverName, serverType, serverUserId| Constructor and Description |
|---|
CruxOMRSRepositoryConnector()
Default constructor used by the OCF Connector Provider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCreateEntityProxyStatements(crux.api.tx.Transaction.Builder tx,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy entity)
Retrieve the statements that need to be executed against Crux to create (persist) the entity proxy provided.
|
void |
addCreateEntityStatements(crux.api.tx.Transaction.Builder tx,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity)
Retrieve the statements that need to be executed against Crux to create (persist) the entity provided.
|
void |
addCreateRelationshipStatements(crux.api.tx.Transaction.Builder tx,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship)
Retrieve the statements that need to be executed against Crux to create (persist) the relationship provided.
|
void |
addPurgeEntityStatements(crux.api.tx.Transaction.Builder tx,
String guid)
Retrieve the statements that need to be executed against Crux to permanently delete the entity (and all of its
history) from the Crux repository.
|
void |
addPurgeRelationshipStatements(crux.api.tx.Transaction.Builder tx,
String guid)
Retrieve the statements that need to be executed against Crux to permanently delete the relationship (and all of
its history) from the Crux repository.
|
void |
addSaveReferenceCopyStatements(crux.api.tx.Transaction.Builder tx,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship)
Retrieve the statements that need to be executed against Crux to save the provided relationship as a reference
copy.
|
void |
addUpdateEntityStatements(crux.api.tx.Transaction.Builder tx,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity)
Retrieve the statements that need to be executed against Crux to update (persist) the entity provided.
|
void |
addUpdateRelationshipStatements(crux.api.tx.Transaction.Builder tx,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship)
Retrieve the statements that need to be executed against Crux to update the provided relationship instance in the
Crux repository.
|
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail |
createEntity(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity)
Create the provided entity instance in the Crux repository.
|
void |
createEntityProxy(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy entity)
Create the provided entity instance in the Crux repository.
|
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship |
createRelationship(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship)
Create the provided relationship instance in the Crux repository.
|
void |
disconnect() |
static void |
evict(crux.api.tx.Transaction.Builder tx,
String docRef)
Add eviction of the specified docRef to the transaction (applicable for permanently removing anything by its "primary key").
|
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> |
findActiveRelationshipsForEntity(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity,
String userId)
Find all active (non-deleted) relationships in this repository for the provided entity.
|
Collection<List<?>> |
findDirectNeighbors(crux.api.ICruxDatasource db,
String entityGUID,
List<String> entityTypeGUIDs,
List<String> relationshipTypeGUIDs,
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
List<String> limitResultsByClassification)
Find the immediate neighbors (1-degree separated entities and the relationships between) using the provided criteria.
|
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail> |
findEntities(String entityTypeGUID,
List<String> entitySubtypeGUIDs,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchProperties matchProperties,
int fromEntityElement,
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications matchClassifications,
Date asOfTime,
String sequencingProperty,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder,
int pageSize,
String userId)
Search based on the provided parameters.
|
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail> |
findEntitiesByText(String entityTypeGUID,
String searchCriteria,
int fromEntityElement,
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications matchClassifications,
Date asOfTime,
String sequencingProperty,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder,
int pageSize,
String userId)
Search based on the provided parameters.
|
Collection<List<?>> |
findEntityRelationships(crux.api.ICruxDatasource db,
String entityGUID,
String userId,
boolean includeDeleted)
Find the relationships that match the provided parameters.
|
Collection<List<?>> |
findEntityRelationships(crux.api.ICruxDatasource db,
String entityGUID,
String relationshipTypeGUID,
int fromRelationshipElement,
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
String sequencingProperty,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder,
int pageSize,
String userId)
Find the relationships that match the provided parameters.
|
Collection<List<?>> |
findHomedEntityRelationships(crux.api.ICruxDatasource db,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity,
String userId)
Find the relationships that match the provided parameters.
|
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> |
findHomedRelationshipsForEntity(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity,
String userId)
Find all relationships homed in this repository for the provided entity.
|
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceGraph |
findNeighborhood(String entityGUID,
List<String> entityTypeGUIDs,
List<String> relationshipTypeGUIDs,
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
List<String> limitResultsByClassification,
Date asOfTime,
int level,
boolean includeRelationships)
Find the entities and relationships that radiate out from the supplied entity GUID.
|
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> |
findRelationships(String relationshipTypeGUID,
List<String> relationshipSubtypeGUIDs,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchProperties matchProperties,
int fromRelationshipElement,
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder,
int pageSize,
String userId)
Search based on the provided parameters.
|
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> |
findRelationshipsByText(String relationshipTypeGUID,
String searchCriteria,
int fromRelationshipElement,
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder,
int pageSize,
String userId)
Search based on the provided parameters.
|
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> |
findRelationshipsForEntity(String entityGUID,
String relationshipTypeGUID,
int fromRelationshipElement,
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder,
int pageSize,
String userId)
Find the relationships, limited by the specified criteria, for the provided entity.
|
crux.api.ICruxAPI |
getCruxAPI()
Retrieve the Crux API directly.
|
crux.api.CruxDocument |
getCruxObjectByReference(crux.api.ICruxDatasource db,
String reference)
Retrieve the requested reference's details from an already-open Crux repository.
|
crux.api.CruxDocument |
getCruxObjectByReference(String reference)
Retrieve the current version of the requested reference's details from the Crux repository.
|
crux.api.CruxDocument |
getCruxObjectByReference(String reference,
Date asOfTime)
Retrieve the requested reference's details from the Crux repository.
|
crux.api.CruxDocument |
getCruxObjectByReference(String reference,
Map<clojure.lang.Keyword,?> txnDetails)
Retrieve the requested reference's details from the Crux repository at the precise version indicated by
the provided transaction details (as returned by an entity history call, must include the valid-time and
tx-time).
|
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail |
getEntity(String guid,
Date asOfTime,
boolean acceptProxies)
Retrieve the requested entity from the Crux repository.
|
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail |
getEntityByGuid(crux.api.ICruxDatasource db,
String guid)
Retrieve the requested entity from the Crux repository.
|
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy |
getEntityProxy(String guid)
Retrieve the requested entity, as a proxy, from the Crux repository.
|
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary |
getEntitySummary(String guid)
Retrieve the requested entity from the Crux repository.
|
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail> |
getPreviousVersionsOfEntity(String guid,
Date from,
Date to,
int offset,
int pageSize,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.HistorySequencingOrder order)
Retrieve previous versions of the entity between the provided dates, ordered as requested.
|
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> |
getPreviousVersionsOfRelationship(String guid,
Date from,
Date to,
int offset,
int pageSize,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.HistorySequencingOrder order)
Retrieve previous versions of the relationship between the provided dates, ordered as requested.
|
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship |
getRelationship(String guid,
Date asOfTime)
Retrieve the requested relationship from the Crux repository.
|
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceGraph |
getTraversalsBetweenEntities(String startEntityGUID,
String endEntityGUID,
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
Date asOfTime)
Find all of the traversals that exist between the provided entities, based on the other provided criteria.
|
boolean |
isDataStoreEmpty()
Checks whether the data store is currently empty.
|
void |
purgeEntity(String guid)
Permanently delete the entity (and all of its history) from the Crux repository.
|
void |
purgeRelationship(String guid)
Permanently delete the relationship (and all of its history) from the Crux repository.
|
static void |
put(crux.api.tx.Transaction.Builder tx,
crux.api.CruxDocument cruxDoc)
Add a write operation to the transaction (applicable for any write operation, since it is append-only).
|
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail |
restorePreviousVersionOfEntity(String userId,
String guid)
Restore the previous version of the provided entity, and return the restored version (or null if there was no
previous version and hence no restoration).
|
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship |
restorePreviousVersionOfRelationship(String userId,
String guid)
Restore the previous version of the provided relationship, and return the restored version (or null if there was
no previous version and hence no restoration).
|
crux.api.TransactionInstant |
runTx(crux.api.tx.Transaction statements)
Run multiple statements through Crux as a single transaction.
|
void |
saveReferenceCopy(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity)
Save the provided entity as a reference copy.
|
Collection<List<?>> |
searchCrux(crux.api.ICruxDatasource db,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory category,
String typeGuid,
List<String> subtypeGuids,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchProperties matchProperties,
int fromElement,
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications matchClassifications,
String sequencingProperty,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder,
int pageSize,
String namespace,
String userId)
Search Crux based on the provided parameters, using an already-opened point-in-time view of the database (should
work across both Entities and Relationships).
|
Collection<List<?>> |
searchCrux(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory category,
String typeGuid,
List<String> subtypeGuids,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchProperties matchProperties,
int fromElement,
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications matchClassifications,
Date asOfTime,
String sequencingProperty,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder,
int pageSize,
String namespace,
String userId)
Search Crux based on the provided parameters (should work across both Entities and Relationships).
|
Collection<List<?>> |
searchCruxText(crux.api.ICruxDatasource db,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory category,
String typeGuid,
String searchCriteria,
int fromElement,
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications matchClassifications,
String sequencingProperty,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder,
int pageSize,
String namespace,
String userId)
Search all text properties in Crux based on the provided parameters, using an already-opened point-in-time view
of the database (should work across both Entities and Relationships).
|
Collection<List<?>> |
searchCruxText(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory category,
String typeGuid,
String searchCriteria,
int fromElement,
List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications matchClassifications,
Date asOfTime,
String sequencingProperty,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder,
int pageSize,
String namespace,
String userId)
Search all text properties in Crux based on the provided parameters (should work across both Entities and
Relationships).
|
void |
setMetadataCollectionId(String metadataCollectionId) |
void |
start() |
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail |
updateEntity(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity)
Update the provided entity instance in the Crux repository.
|
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship |
updateRelationship(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship)
Update the provided relationship instance in the Crux repository.
|
getMaxPageSize, getMetadataCollection, getMetadataCollectionId, getMetadataCollectionName, getOrganizationName, getRepositoryHelper, getRepositoryName, getRepositoryValidator, getServerName, getServerType, getServerUserId, setAuditLog, setMaxPageSize, setMetadataCollectionName, setOrganizationName, setRepositoryHelper, setRepositoryName, setRepositoryValidator, setServerName, setServerType, setServerUserId, validateRepositoryIsActivepublic CruxOMRSRepositoryConnector()
public void setMetadataCollectionId(String metadataCollectionId)
setMetadataCollectionId in interface org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSMetadataCollectionManagersetMetadataCollectionId in class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnectorpublic void start()
throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException
start in class org.odpi.openmetadata.frameworks.connectors.ConnectorBaseorg.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedExceptionpublic void disconnect()
throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException
disconnect in class org.odpi.openmetadata.frameworks.connectors.ConnectorBaseorg.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedExceptionpublic boolean isDataStoreEmpty()
public void createEntityProxy(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy entity)
entity - to createpublic void addCreateEntityProxyStatements(crux.api.tx.Transaction.Builder tx,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy entity)
tx - the transaction through which to create the entity proxyentity - to createpublic org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail createEntity(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity)
entity - to createpublic void addCreateEntityStatements(crux.api.tx.Transaction.Builder tx,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity)
tx - the transaction through which to create the entityentity - to be createdpublic void addUpdateEntityStatements(crux.api.tx.Transaction.Builder tx,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity)
tx - the transaction through which to update the entityentity - to be updatedpublic void purgeEntity(String guid)
guid - of the entity to permanently deletepublic void addPurgeEntityStatements(crux.api.tx.Transaction.Builder tx,
String guid)
tx - the transaction through which to purge the entityguid - of the entity to permanently deletepublic org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail updateEntity(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity)
entity - to updatepublic org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy getEntityProxy(String guid)
guid - of the entity to retrievepublic org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary getEntitySummary(String guid)
guid - of the entity to retrievepublic org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail getEntity(String guid, Date asOfTime, boolean acceptProxies) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityProxyOnlyException
guid - of the entity to retrieveasOfTime - view of the entity at this particular point in timeacceptProxies - if true, allow proxies to be returned as EntityDetailsorg.odpi.openmetadata.repositoryservices.ffdc.exception.EntityProxyOnlyException - if the entity requested is only an EntityProxy (and acceptProxies is false)public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail getEntityByGuid(crux.api.ICruxDatasource db,
String guid)
db - already opened point-in-time view of the databaseguid - of the entity to retrievepublic List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail> findEntities(String entityTypeGUID, List<String> entitySubtypeGUIDs, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchProperties matchProperties, int fromEntityElement, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications matchClassifications, Date asOfTime, String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize, String userId) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException
entityTypeGUID - see CruxOMRSMetadataCollection#findEntitiesentitySubtypeGUIDs - see CruxOMRSMetadataCollection#findEntitiesmatchProperties - see CruxOMRSMetadataCollection#findEntitiesfromEntityElement - see CruxOMRSMetadataCollection#findEntitieslimitResultsByStatus - see CruxOMRSMetadataCollection#findEntitiesmatchClassifications - see CruxOMRSMetadataCollection#findEntitiesasOfTime - see CruxOMRSMetadataCollection#findEntitiessequencingProperty - see CruxOMRSMetadataCollection#findEntitiessequencingOrder - see CruxOMRSMetadataCollection#findEntitiespageSize - see CruxOMRSMetadataCollection#findEntitiesuserId - of the user running the queryList<EntityDetail>org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException - if a requested type for searching is not known to the repositoryorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException - if the query runs longer than the defined threshold (default: 30s)CruxOMRSMetadataCollection.findEntities(String, String, List, SearchProperties, int, List, SearchClassifications, Date, String, SequencingOrder, int)public List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail> findEntitiesByText(String entityTypeGUID, String searchCriteria, int fromEntityElement, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications matchClassifications, Date asOfTime, String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize, String userId) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException
entityTypeGUID - see CruxOMRSMetadataCollection#findEntitiesByPropertyValuesearchCriteria - see CruxOMRSMetadataCollection#findEntitiesByPropertyValuefromEntityElement - see CruxOMRSMetadataCollection#findEntitiesByPropertyValuelimitResultsByStatus - see CruxOMRSMetadataCollection#findEntitiesByPropertyValuematchClassifications - see CruxOMRSMetadataCollection#findEntitiesByPropertyValueasOfTime - see CruxOMRSMetadataCollection#findEntitiesByPropertyValuesequencingProperty - see CruxOMRSMetadataCollection#findEntitiesByPropertyValuesequencingOrder - see CruxOMRSMetadataCollection#findEntitiesByPropertyValuepageSize - see CruxOMRSMetadataCollection#findEntitiesByPropertyValueuserId - of the user running the queryList<EntityDetail>org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException - if a requested type for searching is not known to the repositoryorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException - if the query runs longer than the defined threshold (default: 30s)CruxOMRSMetadataCollection.findEntitiesByPropertyValue(String, String, String, int, List, List, Date, String, SequencingOrder, int)public List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> findRelationshipsForEntity(String entityGUID, String relationshipTypeGUID, int fromRelationshipElement, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize, String userId) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException
entityGUID - of the entity for which to find relationshipsrelationshipTypeGUID - to limit the relationship types to retrieve (optional)fromRelationshipElement - starting element for paginglimitResultsByStatus - by which to limit results (optional)asOfTime - view of the relationships at this particular point in timesequencingProperty - by which to order the results (required if sequencingOrder involves a property)sequencingOrder - by which to order results (optional, will default to GUID)pageSize - maximum number of results per pageuserId - of the user running the queryList<Relationship> list of the matching relationshipsorg.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException - if a requested type for searching is not known to the repositoryorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing open Crux resourcesorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException - if the query runs longer than the defined threshold (default: 30s)public List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> findActiveRelationshipsForEntity(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, String userId) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException
entity - for which to find relationshipsuserId - of the user running the queryList<Relationship> list of the homed relationshipsorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing open Crux resourcesorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException - if the query runs longer than the defined threshold (default: 30s)public List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> findHomedRelationshipsForEntity(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, String userId) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException
entity - for which to find relationshipsuserId - of the user running the queryList<Relationship> list of the homed relationshipsorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing open Crux resourcesorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException - if the query runs longer than the defined threshold (default: 30s)public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceGraph findNeighborhood(String entityGUID, List<String> entityTypeGUIDs, List<String> relationshipTypeGUIDs, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, int level, boolean includeRelationships) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException
entityGUID - the starting point for the radiationentityTypeGUIDs - list of entity types to include in the query results (null means include all)relationshipTypeGUIDs - list of relationship types to include in the query results (null means include all)limitResultsByStatus - list of statuses to restrict results (null means include all)limitResultsByClassification - list of classifications that must be present on all returned entitiesasOfTime - historical query of the radiated relationships and entities (null means current values)level - the number of relationships out from the starting entity thatincludeRelationships - whether to include relationships in the resulting graph (true) or not (false)org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing an open Crux resourceorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException - if the query runs longer than the defined threshold (default: 30s)public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceGraph getTraversalsBetweenEntities(String startEntityGUID, String endEntityGUID, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, Date asOfTime) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotKnownException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
startEntityGUID - from which to start traversingendEntityGUID - at which to stop traversinglimitResultsByStatus - to limit the entities that are traversed based on their statusasOfTime - to find the traversals for a particular point-in-timeorg.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotKnownException - if the requested starting point is not known to the repositoryorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing an open Crux resourcepublic List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> findRelationships(String relationshipTypeGUID, List<String> relationshipSubtypeGUIDs, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchProperties matchProperties, int fromRelationshipElement, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize, String userId) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException
relationshipTypeGUID - see CruxOMRSMetadataCollection#findRelationshipsrelationshipSubtypeGUIDs - see CruxOMRSMetadataCollection#findRelationshipsmatchProperties - see CruxOMRSMetadataCollection#findRelationshipsfromRelationshipElement - see CruxOMRSMetadataCollection#findRelationshipslimitResultsByStatus - see CruxOMRSMetadataCollection#findRelationshipsasOfTime - see CruxOMRSMetadataCollection#findRelationshipssequencingProperty - see CruxOMRSMetadataCollection#findRelationshipssequencingOrder - see CruxOMRSMetadataCollection#findRelationshipspageSize - see CruxOMRSMetadataCollection#findRelationshipsuserId - of the user running the queryList<Relationship>org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException - if a requested type for searching is not known to the repositoryorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing an open Crux resourceorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException - if the query runs longer than the defined threshold (default: 30s)CruxOMRSMetadataCollection.findRelationships(String, String, List, SearchProperties, int, List, Date, String, SequencingOrder, int)public List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> findRelationshipsByText(String relationshipTypeGUID, String searchCriteria, int fromRelationshipElement, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize, String userId) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException
relationshipTypeGUID - see CruxOMRSMetadataCollection#findRelationshipsByPropertyValuesearchCriteria - see CruxOMRSMetadataCollection#findRelationshipsByPropertyValuefromRelationshipElement - see CruxOMRSMetadataCollection#findRelationshipsByPropertyValuelimitResultsByStatus - see CruxOMRSMetadataCollection#findRelationshipsByPropertyValueasOfTime - see CruxOMRSMetadataCollection#findRelationshipsByPropertyValuesequencingProperty - see CruxOMRSMetadataCollection#findRelationshipsByPropertyValuesequencingOrder - see CruxOMRSMetadataCollection#findRelationshipsByPropertyValuepageSize - see CruxOMRSMetadataCollection#findRelationshipsByPropertyValueuserId - of the user running the queryList<Relationship>org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException - if a requested type for searching is not known to the repositoryorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing an open Crux resourceorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryTimeoutException - if the query runs longer than the defined threshold (default: 30s)CruxOMRSMetadataCollection.findRelationshipsByPropertyValue(String, String, String, int, List, Date, String, SequencingOrder, int)public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship createRelationship(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship)
relationship - to createpublic void addCreateRelationshipStatements(crux.api.tx.Transaction.Builder tx,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship)
tx - the transaction through which to create the relationshiprelationship - to be createdpublic void purgeRelationship(String guid)
guid - of the relationship to permanently deletepublic void addPurgeRelationshipStatements(crux.api.tx.Transaction.Builder tx,
String guid)
tx - the transaction through which to do the purgeguid - of the relationship to permanently deletepublic org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship updateRelationship(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship)
relationship - to updatepublic void addUpdateRelationshipStatements(crux.api.tx.Transaction.Builder tx,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship)
tx - the transaction through which to do the relationship updaterelationship - to updatepublic org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship getRelationship(String guid, Date asOfTime) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
guid - of the relationship to retrieveasOfTime - view of the relationship at this particular point in timeorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing an open Crux resourcepublic org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail restorePreviousVersionOfEntity(String userId, String guid) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
userId - of the user requesting the restorationguid - of the entity for which to restore the previous versionorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing the lazy-evaluating cursorpublic org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship restorePreviousVersionOfRelationship(String userId, String guid) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
userId - of the user requesting the restorationguid - of the relationship for which to restore the previous versionorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing an open Crux resourcepublic List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail> getPreviousVersionsOfEntity(String guid, Date from, Date to, int offset, int pageSize, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.HistorySequencingOrder order) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotKnownException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
guid - of the entity for which to retrieve previous versionsfrom - earliest date and time for which the versions to include were valid (inclusive)to - latest date and time for which the versions to include were valid (exclusive)offset - element from which to start (paging)pageSize - maximum number of results to include (paging)order - whether to order the results in reverse-chronological order (backwards) or chronologically (forwards)List<EntityDetail> giving all versions of the entity within the range requestedorg.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotKnownException - if the requested entity was not known to the repository during the specified time rangeorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing the lazy-evaluating cursorpublic List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> getPreviousVersionsOfRelationship(String guid, Date from, Date to, int offset, int pageSize, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.HistorySequencingOrder order) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RelationshipNotKnownException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
guid - of the relationship for which to retrieve previous versionsfrom - earliest date and time for which the versions to include were valid (inclusive)to - latest date and time for which the versions to include were valid (exclusive)offset - element from which to start (paging)pageSize - maximum number of results to include (paging)order - whether to order the results in reverse-chronological order (backwards) or chronologically (forwards)List<Relationship> giving all versions of the relationship within the range requestedorg.odpi.openmetadata.repositoryservices.ffdc.exception.RelationshipNotKnownException - if the requested relationship was not known to the repository during the specified time rangeorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing the lazy-evaluating cursorpublic void saveReferenceCopy(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity)
throws org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityConflictException
entity - to save as a reference copyorg.odpi.openmetadata.repositoryservices.ffdc.exception.EntityConflictException - the entity conflicts with an existing entity (different metadata collection IDs)public void addSaveReferenceCopyStatements(crux.api.tx.Transaction.Builder tx,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship)
throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RelationshipConflictException,
org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
tx - the transaction through which to save the reference copyrelationship - to save as a reference copyorg.odpi.openmetadata.repositoryservices.ffdc.exception.RelationshipConflictException - the relationship conflicts with an existing relationship (different metadata collection IDs)org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing an open Crux resourcepublic crux.api.CruxDocument getCruxObjectByReference(String reference)
reference - indicating the primary key of the Crux object to retrievepublic crux.api.CruxDocument getCruxObjectByReference(String reference, Date asOfTime)
reference - indicating the primary key of the Crux object to retrieveasOfTime - view of the object at this particular point in time (or null for current)public crux.api.CruxDocument getCruxObjectByReference(crux.api.ICruxDatasource db,
String reference)
db - from which to retrieve the detailsreference - indicating the primary key of the Crux object to retrievepublic crux.api.CruxDocument getCruxObjectByReference(String reference, Map<clojure.lang.Keyword,?> txnDetails)
reference - indicating the primary key of the Crux object to retrievetxnDetails - containing the valid-time and tx-time of the precise version of the document to retrievepublic Collection<List<?>> searchCrux(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory category, String typeGuid, List<String> subtypeGuids, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchProperties matchProperties, int fromElement, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications matchClassifications, Date asOfTime, String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize, String namespace, String userId) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException, TimeoutException
category - to limit the search to either entities or relationships (required)typeGuid - to limit the search by type (optional)subtypeGuids - to limit the search to a set of subtypes (optional)matchProperties - by which to limit the results (optional)fromElement - starting element for paginglimitResultsByStatus - by which to limit results (optional)matchClassifications - by which to limit entity results (must be null for relationships) (optional)asOfTime - for a historical search (optional, null will give current results)sequencingProperty - by which to order the results (required if sequencingOrder involves a property)sequencingOrder - by which to order results (optional, will default to GUID)pageSize - maximum number of results per pagenamespace - by which to qualify the matchPropertiesuserId - of the user running the queryCollection<List<?>> list of the Crux document references that matchorg.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException - if a requested type for searching is not known to the repositoryTimeoutException - if the query runs longer than the defined threshold (default: 30s)public Collection<List<?>> searchCrux(crux.api.ICruxDatasource db, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory category, String typeGuid, List<String> subtypeGuids, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchProperties matchProperties, int fromElement, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications matchClassifications, String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize, String namespace, String userId) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException, TimeoutException
db - already opened point-in-time view of the databasecategory - to limit the search to either entities or relationships (required)typeGuid - to limit the search by type (optional)subtypeGuids - to limit the search to a set of subtypes (optional)matchProperties - by which to limit the results (optional)fromElement - starting element for paginglimitResultsByStatus - by which to limit results (optional)matchClassifications - by which to limit entity results (must be null for relationships) (optional)sequencingProperty - by which to order the results (required if sequencingOrder involves a property)sequencingOrder - by which to order results (optional, will default to GUID)pageSize - maximum number of results per pagenamespace - by which to qualify the matchPropertiesuserId - of the user running the queryCollection<List<?>> list of the Crux document references that matchorg.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException - if a requested type for searching is not known to the repositoryTimeoutException - if the query runs longer than the defined threshold (default: 30s)public Collection<List<?>> searchCruxText(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory category, String typeGuid, String searchCriteria, int fromElement, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications matchClassifications, Date asOfTime, String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize, String namespace, String userId) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException, TimeoutException
category - to limit the search to either entities or relationships (required)typeGuid - to limit the search by type (optional)searchCriteria - by which to limit the results (required, must be a Java regular expression)fromElement - starting element for paginglimitResultsByStatus - by which to limit results (optional)matchClassifications - by which to limit entity results (must be null for relationships) (optional)asOfTime - for a historical search (optional, null will give current results)sequencingProperty - by which to order the results (required if sequencingOrder involves a property)sequencingOrder - by which to order results (optional, will default to GUID)pageSize - maximum number of results per pagenamespace - by which to qualify the matchPropertiesuserId - of the user running the queryCollection<List<?>> list of the Crux document references that matchorg.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException - if a requested type for searching is not known to the repositoryTimeoutException - if the query runs longer than the defined threshold (default: 30s)public Collection<List<?>> searchCruxText(crux.api.ICruxDatasource db, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefCategory category, String typeGuid, String searchCriteria, int fromElement, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications matchClassifications, String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize, String namespace, String userId) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException, TimeoutException
db - already opened point-in-time view of the databasecategory - to limit the search to either entities or relationships (required)typeGuid - to limit the search by type (optional)searchCriteria - by which to limit the results (required, must be a Java regular expression)fromElement - starting element for paginglimitResultsByStatus - by which to limit results (optional)matchClassifications - by which to limit entity results (must be null for relationships) (optional)sequencingProperty - by which to order the results (required if sequencingOrder involves a property)sequencingOrder - by which to order results (optional, will default to GUID)pageSize - maximum number of results per pagenamespace - by which to qualify the matchPropertiesuserId - of the user running the queryCollection<List<?>> list of the Crux document references that matchorg.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException - if a requested type for searching is not known to the repositoryTimeoutException - if the query runs longer than the defined threshold (default: 30s)public Collection<List<?>> findEntityRelationships(crux.api.ICruxDatasource db, String entityGUID, String relationshipTypeGUID, int fromRelationshipElement, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize, String userId) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException, TimeoutException
db - already opened point-in-time view of the databaseentityGUID - of the entity for which to find relationshipsrelationshipTypeGUID - to limit the relationship types to retrieve (optional)fromRelationshipElement - starting element for paginglimitResultsByStatus - by which to limit results (optional)sequencingProperty - by which to order the results (required if sequencingOrder involves a property)sequencingOrder - by which to order results (optional, will default to GUID)pageSize - maximum number of results per pageuserId - of the user running the queryCollection<List<?>> list of the Crux document references that matchorg.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException - if a requested type for searching is not known to the repositoryTimeoutException - if the query runs longer than the defined threshold (default: 30s)public Collection<List<?>> findEntityRelationships(crux.api.ICruxDatasource db, String entityGUID, String userId, boolean includeDeleted) throws TimeoutException
db - already opened point-in-time view of the databaseentityGUID - for which to find relationshipsuserId - of the user running the queryincludeDeleted - if true, include deleted relationships in the results (otherwise exclude them)Collection<List<?>> list of the Crux document references that matchTimeoutException - if the query runs longer than the defined threshold (default: 30s)public Collection<List<?>> findHomedEntityRelationships(crux.api.ICruxDatasource db, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, String userId) throws TimeoutException
db - already opened point-in-time view of the databaseentity - for which to find relationshipsuserId - of the user running the queryCollection<List<?>> list of the Crux document references that matchTimeoutException - if the query runs longer than the defined threshold (default: 30s)public Collection<List<?>> findDirectNeighbors(crux.api.ICruxDatasource db, String entityGUID, List<String> entityTypeGUIDs, List<String> relationshipTypeGUIDs, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification) throws TimeoutException
db - already opened point-in-view of the databaseentityGUID - of the entity for which to find immediate relationshipsentityTypeGUIDs - of the entity type definitions by which to restrict entities in the resultsrelationshipTypeGUIDs - of the relationship type definitions by which to restrict relationships in the resultslimitResultsByStatus - by which to limit relationshipslimitResultsByClassification - by which to limit the entities in the resultsCollection<List<?>> of tuples of relationships and entities found in the resultsTimeoutException - if the query runs longer than the defined threshold (default: 30s)public crux.api.TransactionInstant runTx(crux.api.tx.Transaction statements)
statements - the transaction to submitpublic crux.api.ICruxAPI getCruxAPI()
public static void put(crux.api.tx.Transaction.Builder tx,
crux.api.CruxDocument cruxDoc)
tx - the transaction through which to do the write operationcruxDoc - the document to write to the repositorypublic static void evict(crux.api.tx.Transaction.Builder tx,
String docRef)
tx - the transaction through which to do the evictiondocRef - giving the "primary key" of the record to be permanently removedCopyright © 2021 ODPi. All rights reserved.