SwiftprotocolSiriReferenceResolution

protocol SiriReferenceResolution.RREntityStorage

Members 8

  1. funcclear() throws -> ()
  2. funcmethod descriptor for delete(entityKeys: [SiriReferenceResolutionDataModel.RREntityKey], ignoreError: Bool) throws -> ()
  3. funcmethod descriptor for findAnnotatedEntities(thatMatch: SiriOntology.UsoEntity) throws -> [SiriReferenceResolutionDataModel.RRAnnotatedEntity]
  4. funcmethod descriptor for getAllEntities() throws -> [SiriReferenceResolutionDataModel.RRAnnotatedEntity]
  5. funcmethod descriptor for getEntity(entityKey: SiriReferenceResolutionDataModel.RREntityKey) throws -> SiriReferenceResolutionDataModel.RRAnnotatedEntity?
  6. funcmethod descriptor for query(predicate: NSPredicate) throws -> [SiriReferenceResolutionDataModel.RRAnnotatedEntity]
  7. funcmethod descriptor for updateSaliency(entityKey: SiriReferenceResolutionDataModel.RREntityKey, saliencyScore: Double, saliencyComputedAt: Foundation.Date) throws -> ()
  8. funcmethod descriptor for upsertEntity(entities: [SiriReferenceResolutionDataModel.RRAnnotatedEntity]) throws -> ()
protocol RREntityStorage {
    func getEntity(entityKey: SiriReferenceResolutionDataModel.RREntityKey) throws -> SiriReferenceResolutionDataModel.RRAnnotatedEntity?
    func getAllEntities() throws -> [SiriReferenceResolutionDataModel.RRAnnotatedEntity]
    func upsertEntity(entities: [SiriReferenceResolutionDataModel.RRAnnotatedEntity]) throws
    func updateSaliency(entityKey: SiriReferenceResolutionDataModel.RREntityKey, saliencyScore: Swift.Double, saliencyComputedAt: Foundation.Date) throws
    func query(predicate: __C.NSPredicate) throws -> [SiriReferenceResolutionDataModel.RRAnnotatedEntity]
    func findAnnotatedEntities(thatMatch: SiriOntology.UsoEntity) throws -> [SiriReferenceResolutionDataModel.RRAnnotatedEntity]
    func delete(entityKeys: [SiriReferenceResolutionDataModel.RREntityKey], ignoreError: Swift.Bool) throws
}
extension SiriReferenceResolution.RREntityStorage {
    func clear() throws
}