Thanks for looking -- sure I can post the schema, but as I said I can't 
find any 'tdvalid' documents in any of the 'minute.index' LINKSETs when I 
dig through the transaction, only 'tdindex' documents. I use this code 
right before the commit that throws the exception:
                        OTransaction tx = docDB.getTransaction();
                        for (ORecordOperation ro : 
tx.getCurrentRecordEntries())
                        {
                            if (ro.record.toString().startsWith("minute"))
                            {
                                ODocument odoc = (ODocument) ro.getRecord();
                                ORecordLazySet index = odoc.field("index");
                                String istring = index.toString();
                                for (OIdentifiable id : index)
                                {
                                    ORecord record = id.getRecord();
                                    String rstring = record.toString();
                                    if (rstring.contains("tdvalid") || 
istring.contains("tdvalid"))
                                    {
                                        System.out.println("found it!");
                                    }
                                }
                                System.out.println("iii: " + index);
                            }
                        }


 and would expect it to print "found it!" if there were a tdvalid record in 
ANY of the minute.index sets, but it doesn't.  Does anybody know if I am I 
doing something wrong here?  Or if there's some other way to track down 
this needle in the haystack?

FWIW, here's the schema:
drop database remote:localhost/rawxp root root

create database remote:localhost/rawxp root root plocal

begin

create class hour extends V
create class minute extends V
create class tdindex extends V
create class tdvalid extends V

create property hour.hour integer
create property hour.minute linkmap minute

create property minute.index linkset tdindex

create property tdindex.field string
create property tdindex.value string
create property tdindex.hour integer
create property tdindex.minute integer
create property tdindex.count integer
create property tdindex.records linkset

create property tdvalid.transponder string
create property tdvalid.carrier string
create property tdvalid.site string

commit




On Wednesday, January 27, 2016 at 1:47:14 AM UTC-7, [email protected] 
wrote:
>
> Hi Keith,
> can you post the schema of the class that contains the field 
> minute.index,because it would seem that your field of type linkset accepts 
> values of type tindex, but you are given at that field a document of type 
> tvalid.
>
> Kind regards,
> Alessandro
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to