Re: JanusGraphIndex how to retrieve constraint (indexOnly) specified for the global index?
Boxuan Li
You can do this:
toggle quoted messageShow quoted text
JanusGraphSchemaType constraint = ManagementSystem.getGraphIndexDirect("indexName", ((ManagementSystem) mgmt).getWrappedTx()).getSchemaTypeConstraint(); If (constraint == null) then there is no constraint. Otherwise constraint.name() returns your indexOnly label. Best regards, Boxuan
|
|