[ 
https://issues.apache.org/jira/browse/RYA-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15344532#comment-15344532
 ] 

David W. Lotts commented on RYA-15:
-----------------------------------

More details:
Rya does not delete index entries for the SPARQL commands: 
{code}
DROP <graphname> 
DROP ALL
{code}
Here is what needs to be done:
The method:
{{mvm.rya.api.persist.index.RyaSecondaryIndexer.dropGraph( RyaURI...)}}

Needs to implemented in the index implementations.

It is overridden with a stub {} in a couple of abstract classes:
In:  {{mvm.rya.accumulo.experimental.AbstractAccumuloIndexer}}
And similar in:  {{mvm.rya.indexing.mongodb.AbstractMongoIndexer}}

If you comment these out, the compiler will show all the places it is missing:
{code}
mvm.rya.indexing.accumulo.geo.GeoMesaGeoIndexer
mvm.rya.indexing.mongodb.geo.MongoGeoIndexer
mvm.rya.indexing.accumulo.temporal.AccumuloTemporalIndexer
mvm.rya.indexing.mongodb.temporal.MongoTemporalIndexer
mvm.rya.indexing.accumulo.freetext.AccumuloFreeTextIndexer
mvm.rya.indexing.mongodb.freetext.MongoFreeTextIndexer
{code}
To devise a way to delete all the statements for a particular 
context/named-graph, 
look at each indexer’s {{deleteStatements}} method
Also look at its {{queryEquals}} or {{queryText}} method to see how it handles 
a {{StatementContraints}} with a non-null context ({{getContext()}}).



> Add Drop Graph support for Secondary Indexers
> ---------------------------------------------
>
>                 Key: RYA-15
>                 URL: https://issues.apache.org/jira/browse/RYA-15
>             Project: Rya
>          Issue Type: New Feature
>          Components: dao
>    Affects Versions: 3.2.9
>            Reporter: Aaron Mihalik
>
> {{AccumuloRyaDAO.java}} contains this note.  This task is to implement 
> dropGraph for the indexers, and verify it works for the DAO.
> {code:java}
> //TODO indexers do not support delete-UnsupportedOperation Exception will be 
> thrown
> //            for (AccumuloIndex index : secondaryIndexers) {
> //                index.dropGraph(graphs);
> //            }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to