Re: Handling Deleted nodes in TDB2 storage

2022-01-13 Thread Aayush Yadav
Hi, Thanks Brain and Andy. Got it. Regards, Aayush. On Thu, Jan 13, 2022, 3:34 PM Andy Seaborne wrote: > > > On 13/01/2022 06:33, Aayush Yadav wrote: > > Hi, > > > > I just had a query regarding how JENA handles deleted nodes in TDB2? I > read > > in the documentation and even saw while implem

Re: Handling Deleted nodes in TDB2 storage

2022-01-13 Thread Andy Seaborne
On 13/01/2022 06:33, Aayush Yadav wrote: Hi, I just had a query regarding how JENA handles deleted nodes in TDB2? I read in the documentation and even saw while implementing, that the nodes that are deleted are not removed from storage until compact is run. So how are these nodes handled exac

Re: Handling Deleted nodes in TDB2 storage

2022-01-12 Thread brain
Hi Aayush, Here are some code snippets maybe help. org.apache.jena.tdb2.store.StorageTDB /** Delete a tuple */ public void delete( Tuple t ) { if ( tupleLen != t.len() ) throw new TDBException(format("Mismatch: deleting tuple of length %d from a table of tuples of length %d", t.len(

Handling Deleted nodes in TDB2 storage

2022-01-12 Thread Aayush Yadav
Hi, I just had a query regarding how JENA handles deleted nodes in TDB2? I read in the documentation and even saw while implementing, that the nodes that are deleted are not removed from storage until compact is run. So how are these nodes handled exactly? By handled I mean, how does compact know