Hi, OrientDB allows more flexibility for the weirdest use case, so there is no check here because you could don't create classes at all and use clusters.
Lvc@ On 31 January 2014 13:42, Andrey Yesyev <[email protected]> wrote: > Yes, I haven't added cluster in vertex class. Now I did and everything > works as expected. > > But still, I would expect some warnings or errors from DB when I do > something wrong with it. > > Thanks for your help! > > > On Friday, January 31, 2014 3:41:25 AM UTC-5, Andrey Lomakin wrote: > >> Hi, >> If your cluster is absent in schema metadata query can not find it. >> You did not add cluster in list of clusters for given class so query can >> not find it. >> >> >> >> On Thu, Jan 30, 2014 at 10:50 PM, Andrey Yesyev <[email protected]>wrote: >> >>> Ok, this is my fault, I added vertices to the wrong cluster. >>> But why query >>> >>> *select count(*) from Name* >>> >>> return 0 vertices? >>> >>> It doesn't matter in what cluster I added them if I query by class name, >>> does it? >>> >>> On Thursday, January 30, 2014 2:48:35 AM UTC-5, Andrey Lomakin wrote: >>> >>>> Hi Andrey, >>>> Each class by definition uses separate cluster it is performed by >>>> default. >>>> >>>> Your mistake is that you store vertex in separate cluster not >>>> associated with given class (it has the same name as class) but you did not >>>> add cluster id in list of clusters for given class. >>>> So queries do not take this cluster in account. >>>> >>>> So if you need to have 2 clusters for given class call following method >>>> com.orientechnologies.orient.core.metadata.schema.OClass#addClusterId. >>>> But probably, as I understand from your design, you need each class in >>>> separate cluster which is already done and you should not need to do any >>>> additional steps. >>>> >>>> >>>> >>>> On Wed, Jan 29, 2014 at 9:53 PM, Andrey Yesyev <[email protected]>wrote: >>>> >>>>> I have to explain what I'm trying to do, I guess. >>>>> >>>>> I have a number of classes, all inherit Vertex. >>>>> MACAddress, >>>>> IPAddress, >>>>> WebHost, >>>>> ChatID, >>>>> SocialSecurityNumber, >>>>> EmailAddress, >>>>> Name, >>>>> PhoneNumber, >>>>> UKNationalInsuranceNumber, >>>>> X509CertificateHash, >>>>> PostalAddress, >>>>> CreditCardNumber, >>>>> VOIPEndpoint; >>>>> >>>>> All of those classes I intend to store in different clusters. Let's >>>>> say each cluster is a user defined case in our software. >>>>> E.g. case1, case2 etc. >>>>> >>>>> I want to be able to query nodes (vertices) by class name, for example >>>>> I want to get all IPAddresses, but also I want to be able to query all >>>>> nodes that are in case1. >>>>> I think this is absolutely possible, according documentation I read, >>>>> is it? >>>>> >>>>> Thanks! >>>>> >>>>> -Andrey >>>>> >>>>> -- >>>>> >>>>> --- >>>>> 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/groups/opt_out. >>>>> >>>> >>>> >>>> >>>> -- >>>> Best regards, >>>> Andrey Lomakin. >>>> >>>> Orient Technologies >>>> the Company behind OrientDB >>>> >>>> -- >>> >>> --- >>> 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/groups/opt_out. >>> >> >> >> >> -- >> Best regards, >> Andrey Lomakin. >> >> Orient Technologies >> the Company behind OrientDB >> >> -- > > --- > 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/groups/opt_out. > -- --- 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/groups/opt_out.
