private Parameter getStringMapping() { if (indexFeatures.supportsStringMapping(Mapping.STRING)) return Mapping.STRING.asParameter(); else if (indexFeatures.supportsStringMapping(Mapping.TEXTSTRING)) return Mapping.TEXTSTRING.asParameter(); throw new AssertionError("String mapping not supported"); }
private Parameter getTextMapping() { if (indexFeatures.supportsStringMapping(Mapping.TEXT)) return Mapping.TEXT.asParameter(); else if (indexFeatures.supportsStringMapping(Mapping.TEXTSTRING)) return Mapping.TEXTSTRING.asParameter(); throw new AssertionError("Text mapping not supported"); }
TitanGraphIndex mixed = mgmt.buildIndex("mixed", Vertex.class).addKey(name, Mapping.TEXTSTRING.asParameter()).buildMixedIndex(INDEX); mixed.name(); finishSchema();
mgmt.buildIndex("blablub", Vertex.class).addKey(text, Mapping.TEXT.asParameter()).buildCompositeIndex(); fail(); } catch (IllegalArgumentException e) { mgmt.buildIndex("blablub", Vertex.class).addKey(text, Mapping.TEXT.asParameter()).buildCompositeIndex(); fail(); } catch (IllegalArgumentException e) {