@SuppressWarnings({ "unchecked", "rawtypes" }) protected Class<IValueCentricTextIndexer> determineTextIndexerClass() { final String className = getProperty( AbstractTripleStore.Options.TEXT_INDEXER_CLASS, AbstractTripleStore.Options.DEFAULT_TEXT_INDEXER_CLASS); final Class<?> cls; try { cls = Class.forName(className); } catch (ClassNotFoundException e) { throw new RuntimeException("Bad option: " + AbstractTripleStore.Options.TEXT_INDEXER_CLASS, e); } if (!IValueCentricTextIndexer.class.isAssignableFrom(cls)) { throw new RuntimeException( AbstractTripleStore.Options.TEXT_INDEXER_CLASS + ": Must implement: " + IValueCentricTextIndexer.class.getName()); } return (Class<IValueCentricTextIndexer>) cls; }
@SuppressWarnings("unchecked") protected Class<BigdataValueFactory> determineValueFactoryClass() { final String className = getProperty( AbstractTripleStore.Options.VALUE_FACTORY_CLASS, AbstractTripleStore.Options.DEFAULT_VALUE_FACTORY_CLASS); final Class<?> cls; try { cls = Class.forName(className); } catch (ClassNotFoundException e) { throw new RuntimeException("Bad option: " + AbstractTripleStore.Options.VALUE_FACTORY_CLASS, e); } if (!BigdataValueFactory.class.isAssignableFrom(cls)) { throw new RuntimeException( AbstractTripleStore.Options.VALUE_FACTORY_CLASS + ": Must implement: " + BigdataValueFactory.class.getName()); } return (Class<BigdataValueFactory>) cls; }
@SuppressWarnings({ "unchecked", "rawtypes" }) protected Class<ISubjectCentricTextIndexer> determineSubjectCentricTextIndexerClass() { final String className = getProperty( AbstractTripleStore.Options.SUBJECT_CENTRIC_TEXT_INDEXER_CLASS, AbstractTripleStore.Options.DEFAULT_SUBJECT_CENTRIC_TEXT_INDEXER_CLASS); final Class<?> cls; try { cls = Class.forName(className); } catch (ClassNotFoundException e) { throw new RuntimeException("Bad option: " + AbstractTripleStore.Options.SUBJECT_CENTRIC_TEXT_INDEXER_CLASS, e); } if (!ISubjectCentricTextIndexer.class.isAssignableFrom(cls)) { throw new RuntimeException( AbstractTripleStore.Options.SUBJECT_CENTRIC_TEXT_INDEXER_CLASS + ": Must implement: " + ISubjectCentricTextIndexer.class.getName()); } return (Class<ISubjectCentricTextIndexer>) cls; }
@SuppressWarnings({ "unchecked", "rawtypes" }) protected Class<ISubjectCentricTextIndexer> determineSubjectCentricTextIndexerClass() { final String className = getProperty( AbstractTripleStore.Options.SUBJECT_CENTRIC_TEXT_INDEXER_CLASS, AbstractTripleStore.Options.DEFAULT_SUBJECT_CENTRIC_TEXT_INDEXER_CLASS); final Class<?> cls; try { cls = Class.forName(className); } catch (ClassNotFoundException e) { throw new RuntimeException("Bad option: " + AbstractTripleStore.Options.SUBJECT_CENTRIC_TEXT_INDEXER_CLASS, e); } if (!ISubjectCentricTextIndexer.class.isAssignableFrom(cls)) { throw new RuntimeException( AbstractTripleStore.Options.SUBJECT_CENTRIC_TEXT_INDEXER_CLASS + ": Must implement: " + ISubjectCentricTextIndexer.class.getName()); } return (Class<ISubjectCentricTextIndexer>) cls; }
@SuppressWarnings("unchecked") protected Class<BigdataValueFactory> determineValueFactoryClass() { final String className = getProperty( AbstractTripleStore.Options.VALUE_FACTORY_CLASS, AbstractTripleStore.Options.DEFAULT_VALUE_FACTORY_CLASS); final Class<?> cls; try { cls = Class.forName(className); } catch (ClassNotFoundException e) { throw new RuntimeException("Bad option: " + AbstractTripleStore.Options.VALUE_FACTORY_CLASS, e); } if (!BigdataValueFactory.class.isAssignableFrom(cls)) { throw new RuntimeException( AbstractTripleStore.Options.VALUE_FACTORY_CLASS + ": Must implement: " + BigdataValueFactory.class.getName()); } return (Class<BigdataValueFactory>) cls; }
@SuppressWarnings({ "unchecked", "rawtypes" }) protected Class<IValueCentricTextIndexer> determineTextIndexerClass() { final String className = getProperty( AbstractTripleStore.Options.TEXT_INDEXER_CLASS, AbstractTripleStore.Options.DEFAULT_TEXT_INDEXER_CLASS); final Class<?> cls; try { cls = Class.forName(className); } catch (ClassNotFoundException e) { throw new RuntimeException("Bad option: " + AbstractTripleStore.Options.TEXT_INDEXER_CLASS, e); } if (!IValueCentricTextIndexer.class.isAssignableFrom(cls)) { throw new RuntimeException( AbstractTripleStore.Options.TEXT_INDEXER_CLASS + ": Must implement: " + IValueCentricTextIndexer.class.getName()); } return (Class<IValueCentricTextIndexer>) cls; }
final String className = getProperty( AbstractTripleStore.Options.EXTENSION_FACTORY_CLASS, defaultClassName);
final String className = getProperty( AbstractTripleStore.Options.EXTENSION_FACTORY_CLASS, defaultClassName);
final String className = getProperty( AbstractTripleStore.Options.INLINE_URI_FACTORY_CLASS, defaultClassName);
final String className = getProperty( AbstractTripleStore.Options.INLINE_URI_FACTORY_CLASS, defaultClassName);
this.textIndex = Boolean.parseBoolean(getProperty( AbstractTripleStore.Options.TEXT_INDEX, AbstractTripleStore.Options.DEFAULT_TEXT_INDEX)); this.storeBlankNodes = Boolean.parseBoolean(getProperty( AbstractTripleStore.Options.STORE_BLANK_NODES, AbstractTripleStore.Options.DEFAULT_STORE_BLANK_NODES)); blobsThreshold = Integer.parseInt(getProperty( AbstractTripleStore.Options.BLOBS_THRESHOLD, AbstractTripleStore.Options.DEFAULT_BLOBS_THRESHOLD)); termIdBitsToReverse = Integer.parseInt(getProperty( AbstractTripleStore.Options.TERMID_BITS_TO_REVERSE, defaultValue)); final int termCacheCapacity = Integer.parseInt(getProperty( AbstractTripleStore.Options.TERM_CACHE_CAPACITY, AbstractTripleStore.Options.DEFAULT_TERM_CACHE_CAPACITY)); inlineLiterals = Boolean.parseBoolean(getProperty( AbstractTripleStore.Options.INLINE_XSD_DATATYPE_LITERALS, AbstractTripleStore.Options.DEFAULT_INLINE_XSD_DATATYPE_LITERALS)); inlineTextLiterals = Boolean.parseBoolean(getProperty( AbstractTripleStore.Options.INLINE_TEXT_LITERALS, AbstractTripleStore.Options.DEFAULT_INLINE_TEXT_LITERALS)); maxInlineTextLength = Integer.parseInt(getProperty(
this.textIndex = Boolean.parseBoolean(getProperty( AbstractTripleStore.Options.TEXT_INDEX, AbstractTripleStore.Options.DEFAULT_TEXT_INDEX)); this.storeBlankNodes = Boolean.parseBoolean(getProperty( AbstractTripleStore.Options.STORE_BLANK_NODES, AbstractTripleStore.Options.DEFAULT_STORE_BLANK_NODES)); blobsThreshold = Integer.parseInt(getProperty( AbstractTripleStore.Options.BLOBS_THRESHOLD, AbstractTripleStore.Options.DEFAULT_BLOBS_THRESHOLD)); termIdBitsToReverse = Integer.parseInt(getProperty( AbstractTripleStore.Options.TERMID_BITS_TO_REVERSE, defaultValue)); final int termCacheCapacity = Integer.parseInt(getProperty( AbstractTripleStore.Options.TERM_CACHE_CAPACITY, AbstractTripleStore.Options.DEFAULT_TERM_CACHE_CAPACITY)); inlineLiterals = Boolean.parseBoolean(getProperty( AbstractTripleStore.Options.INLINE_XSD_DATATYPE_LITERALS, AbstractTripleStore.Options.DEFAULT_INLINE_XSD_DATATYPE_LITERALS)); inlineTextLiterals = Boolean.parseBoolean(getProperty( AbstractTripleStore.Options.INLINE_TEXT_LITERALS, AbstractTripleStore.Options.DEFAULT_INLINE_TEXT_LITERALS)); maxInlineTextLength = Integer.parseInt(getProperty(