@Test public void testMapKey2Field_MappingSpaces() { String expected = "field" + REPLACEMENT_CHAR + "name" + REPLACEMENT_CHAR + "with" + REPLACEMENT_CHAR + "spaces"; assertEquals(expected, index.mapKey2Field("field name with spaces", null)); }
@Override public String mapKey2Field(String key, KeyInformation information) { IndexProvider.checkKeyValidity(key); return key.replace(' ', REPLACEMENT_CHAR); }
LuceneIndex implements IndexProvider { @Override public String mapKey2Field(String key, KeyInformation information) { IndexProvider.checkKeyValidity(key); return key.replace(' ', REPLACEMENT_CHAR); } }
LuceneIndex implements IndexProvider { @Override public String mapKey2Field(String key, KeyInformation information) { IndexProvider.checkKeyValidity(key); return key.replace(' ', REPLACEMENT_CHAR); } LuceneIndex(Configuration config); }
LuceneIndex implements IndexProvider { @Override public String mapKey2Field(String key, KeyInformation information) { IndexProvider.checkKeyValidity(key); return key.replace(' ', REPLACEMENT_CHAR); } LuceneIndex(Configuration config); @Override void register(String store, String key, KeyInformation information, BaseTransaction tx); @Override void mutate(Map<String, Map<String, IndexMutation>> mutations, KeyInformation.IndexRetriever information, BaseTransaction tx); @Override void restore(Map<String, Map<String, List<IndexEntry>>> documents, KeyInformation.IndexRetriever information, BaseTransaction tx); @Override Stream<String> query(IndexQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx); @Override Stream<RawQuery.Result<String>> query(RawQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx); @Override Long totals(RawQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx); @Override BaseTransactionConfigurable beginTransaction(BaseTransactionConfig config); @Override boolean supports(KeyInformation information, JanusGraphPredicate janusgraphPredicate); @Override boolean supports(KeyInformation information); @Override String mapKey2Field(String key, KeyInformation information); @Override IndexFeatures getFeatures(); @Override void close(); @Override void clearStorage(); @Override boolean exists(); }
LuceneIndex implements IndexProvider { @Override public String mapKey2Field(String key, KeyInformation information) { IndexProvider.checkKeyValidity(key); return key.replace(' ', REPLACEMENT_CHAR); } LuceneIndex(Configuration config); @Override void register(String store, String key, KeyInformation information, BaseTransaction tx); @Override void mutate(Map<String, Map<String, IndexMutation>> mutations, KeyInformation.IndexRetriever information, BaseTransaction tx); @Override void restore(Map<String, Map<String, List<IndexEntry>>> documents, KeyInformation.IndexRetriever information, BaseTransaction tx); @Override Stream<String> query(IndexQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx); @Override Stream<RawQuery.Result<String>> query(RawQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx); @Override Long totals(RawQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx); @Override BaseTransactionConfigurable beginTransaction(BaseTransactionConfig config); @Override boolean supports(KeyInformation information, JanusGraphPredicate janusgraphPredicate); @Override boolean supports(KeyInformation information); @Override String mapKey2Field(String key, KeyInformation information); @Override IndexFeatures getFeatures(); @Override void close(); @Override void clearStorage(); @Override boolean exists(); static final int DEFAULT_GEO_MAX_LEVELS; static final double DEFAULT_GEO_DIST_ERROR_PCT; }