@SuppressWarnings("unchecked") public E get() { return (E) ZoieContext.getContext().getReaderContext(_reader).get(_key); } }
public void set(E value) { ZoieContext.getContext().getReaderContext(_reader).set(_key, value); }
public void setMergePolicyParams(MergePolicyParams params) { if (params != null) { setPartialExpunge(params._doPartialExpunge); setNumLargeSegments(params._numLargeSegments); setMergeFactor(params._mergeFactor); setMaxSmallSegments(params._maxSmallSegments); setUseCompoundFile(params._useCompoundFile); setMaxMergeDocs(params._maxMergeDocs); } }
@Override protected ZoieContext initialValue() { return new ZoieContext(); } };
/** * Get the current thread's ZoieContext to keep in the wrapper runnable so that * when the runnable is executed, the context can be set to be the same as the * invoking thread. * @param runnable */ public ZoieRunnable(Runnable runnable) { innerRunnable = runnable; ctx = ZoieContext.getContext(); }
public DocIDMapperFactory getDocidMapperFactory() { return docidMapperFactory == null ? new DefaultDocIDMapperFactory() : docidMapperFactory; }
@Override protected ZoieContext childValue(ZoieContext parentValue) { return parentValue.clone(); }
public void setPartialExpunge(boolean doPartialExpunge) { _diskIndex._mergePolicyParams.setPartialExpunge(doPartialExpunge); }
public void setUseCompoundFile(boolean useCompoundFile) { _diskIndex._mergePolicyParams.setUseCompoundFile(useCompoundFile); }
public boolean isUseCompoundFile() { return _diskIndex._mergePolicyParams.isUseCompoundFile(); }
public void setMergePolicyParams(MergePolicyParams params) { if (params != null) { setPartialExpunge(params._doPartialExpunge); setNumLargeSegments(params._numLargeSegments); setMergeFactor(params._mergeFactor); setMaxSmallSegments(params._maxSmallSegments); setUseCompoundFile(params._useCompoundFile); setMaxMergeDocs(params._maxMergeDocs); } }
@SuppressWarnings("unchecked") public E get() { return (E) ZoieContext.getContext().getReaderContext(_reader).get(_key); } }
public void set(E value) { ZoieContext.getContext().getReaderContext(_reader).set(_key, value); }
@Override protected ZoieContext initialValue() { return new ZoieContext(); } };
/** * Get the current thread's ZoieContext to keep in the wrapper runnable so that * when the runnable is executed, the context can be set to be the same as the * invoking thread. * @param runnable */ public ZoieRunnable(Runnable runnable) { innerRunnable = runnable; ctx = ZoieContext.getContext(); } public ZoieContext getContext()
public void setMergePolicyParams(MergePolicyParams params){ if (params!=null){ setPartialExpunge(params._doPartialExpunge); setNumLargeSegments(params._numLargeSegments); setMergeFactor(params._mergeFactor); setMaxSmallSegments(params._maxSmallSegments); setPartialExpunge(params._doPartialExpunge); setUseCompoundFile(params._useCompoundFile); setMaxMergeDocs(params._maxMergeDocs); } }
@SuppressWarnings("unchecked") public E get() { return (E) ZoieContext.getContext().getReaderContext(_reader).get(_key); } }
public void set(E value) { ZoieContext.getContext().getReaderContext(_reader).set(_key, value); }
@Override protected ZoieContext initialValue() { return new ZoieContext(); } };
/** * Get the current thread's ZoieContext to keep in the wrapper runnable so that * when the runnable is executed, the context can be set to be the same as the * invoking thread. * @param runnable */ public ZoieRunnable(Runnable runnable) { innerRunnable = runnable; ctx = ZoieContext.getContext(); }