本文整理了Java中proj.zoie.impl.indexing.ZoieConfig.getVersionComparator()
方法的一些代码示例,展示了ZoieConfig.getVersionComparator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoieConfig.getVersionComparator()
方法的具体详情如下:
包路径:proj.zoie.impl.indexing.ZoieConfig
类名称:ZoieConfig
方法名:getVersionComparator
暂无
代码示例来源:origin: senseidb/zoie
@Override
public Comparator<String> getVersionComparator() {
return _zConfig.getVersionComparator();
}
代码示例来源:origin: senseidb/zoie
@Override
public Comparator<String> getVersionComparator() {
return _zoieConfig.getVersionComparator();
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
@Override
public Comparator<String> getVersionComparator() {
return _zConfig.getVersionComparator();
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
public Comparator<String> getVersionComparator()
{
return _zoieConfig.getVersionComparator();
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
@Override
public Comparator<String> getVersionComparator() {
return _zoieConfig.getVersionComparator();
}
代码示例来源:origin: com.senseidb/sensei-core
public Comparator<String> getVersionComparator() {
return _zoieConfig.getVersionComparator();
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
public Comparator<String> getVersionComparator() {
return _zConfig.getVersionComparator();
}
代码示例来源:origin: senseidb/zoie
@Override
public String getCurrentReaderVersion() {
String v1 = null, v2 = null;
Zoie<R, D> zoieOne = _zoieOne;
if (zoieOne != null) {
v1 = zoieOne.getCurrentReaderVersion();
}
if (_zoieTwo != null) {
v2 = _zoieTwo.getCurrentReaderVersion();
}
return _zoieConfig.getVersionComparator().compare(v2, v1) > 0 ? v2 : v1;
}
代码示例来源:origin: senseidb/zoie
@Override
public String getVersion() {
String v1 = null, v2 = null;
Zoie<R, D> zoieOne = _zoieOne;
if (zoieOne != null) {
v1 = zoieOne.getVersion();
}
if (_zoieTwo != null) {
v2 = _zoieTwo.getVersion();
}
return _zoieConfig.getVersionComparator().compare(v2, v1) > 0 ? v2 : v1;
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
@Override
public String getCurrentReaderVersion()
{
String v1 = null, v2 = null;
Zoie zoieOne = _zoieOne;
if (zoieOne != null)
v1 = zoieOne.getCurrentReaderVersion();
if (_zoieTwo != null)
v2 = _zoieTwo.getCurrentReaderVersion();
return _zoieConfig.getVersionComparator().compare(v2, v1) > 0 ? v2 : v1;
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
public String getVersion()
{
String v1 = null, v2 = null;
Zoie zoieOne = _zoieOne;
if (zoieOne != null)
v1 = zoieOne.getVersion();
if (_zoieTwo != null)
v2 = _zoieTwo.getVersion();
return _zoieConfig.getVersionComparator().compare(v2, v1) > 0 ? v2 : v1;
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
@Override
public String getCurrentReaderVersion() {
String v1 = null, v2 = null;
Zoie<R, D> zoieOne = _zoieOne;
if (zoieOne != null) {
v1 = zoieOne.getCurrentReaderVersion();
}
if (_zoieTwo != null) {
v2 = _zoieTwo.getCurrentReaderVersion();
}
return _zoieConfig.getVersionComparator().compare(v2, v1) > 0 ? v2 : v1;
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
@Override
public String getVersion() {
String v1 = null, v2 = null;
Zoie<R, D> zoieOne = _zoieOne;
if (zoieOne != null) {
v1 = zoieOne.getVersion();
}
if (_zoieTwo != null) {
v2 = _zoieTwo.getVersion();
}
return _zoieConfig.getVersionComparator().compare(v2, v1) > 0 ? v2 : v1;
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
@Override
public String getVersion() {
// _currentVersion = Math.max(_currentVersion, _currentZoie.getCurrentVersion());
if (_currentZoie.getCurrentVersion() != null) {
if (_currentVersion == null) {
return _currentVersion = _currentZoie.getCurrentVersion();
} else {
_currentVersion = _zConfig.getVersionComparator().compare(_currentZoie.getCurrentVersion(),
_currentVersion) < 0 ? _currentVersion : _currentZoie.getCurrentVersion();
}
}
return _currentVersion;
}
代码示例来源:origin: senseidb/zoie
@Override
public String getVersion() {
// _currentVersion = Math.max(_currentVersion, _currentZoie.getCurrentVersion());
if (_currentZoie.getCurrentVersion() != null) {
if (_currentVersion == null) {
return _currentVersion = _currentZoie.getCurrentVersion();
} else {
_currentVersion = _zConfig.getVersionComparator().compare(_currentZoie.getCurrentVersion(),
_currentVersion) < 0 ? _currentVersion : _currentZoie.getCurrentVersion();
}
}
return _currentVersion;
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
public String getVersion()
{
//_currentVersion = Math.max(_currentVersion, _currentZoie.getCurrentVersion());
if(_currentZoie.getCurrentVersion() != null)
{
if(_currentVersion == null)
{
return _currentVersion = _currentZoie.getCurrentVersion();
}
else
{
_currentVersion = _zConfig.getVersionComparator().compare(_currentZoie.getCurrentVersion(), _currentVersion) < 0 ? _currentVersion : _currentZoie.getCurrentVersion();
}
}
return _currentVersion;
}
代码示例来源:origin: senseidb/zoie
/**
* Creates a new ZoieSystem.
*
* @param dirMgr
* Directory manager, mandatory.
* @param interpreter
* data interpreter, mandatory.
* @param indexReaderDecorator
* index reader decorator,optional. If not specified,
* {@link proj.zoie.impl.indexing.DefaultIndexReaderDecorator} is
* used.
* @param zoieConfig
* configuration object
*/
@SuppressWarnings({ "deprecation", "unchecked" })
public ZoieSystem(DirectoryManager dirMgr, ZoieIndexableInterpreter<D> interpreter,
IndexReaderDecorator<R> indexReaderDecorator, ZoieConfig zoieConfig) {
this(dirMgr, interpreter, indexReaderDecorator, zoieConfig.getDocidMapperFactory(), zoieConfig
.getAnalyzer(), zoieConfig.getSimilarity(), zoieConfig.getBatchSize(), zoieConfig
.getBatchDelay(), zoieConfig.isRtIndexing(), zoieConfig.getMaxBatchSize(), zoieConfig
.getReadercachefactory(), (RAMIndexFactory<R>) zoieConfig.getRamIndexFactory(), zoieConfig
.getVersionComparator(), zoieConfig.isSkipBadRecord());
readercache.setFreshness(zoieConfig.getFreshness());
}
代码示例来源:origin: senseidb/zoie
/**
* Creates a new ZoieSystem.
*
* @param idxDir
* index directory, mandatory.
* @param interpreter
* data interpreter, mandatory.
* @param indexReaderDecorator
* index reader decorator,optional. If not specified,
* {@link proj.zoie.impl.indexing.DefaultIndexReaderDecorator} is
* used.
* @param zoieConfig
* configuration object
*/
@SuppressWarnings({ "deprecation", "unchecked" })
public ZoieSystem(File idxDir, ZoieIndexableInterpreter<D> interpreter,
IndexReaderDecorator<R> indexReaderDecorator, ZoieConfig zoieConfig) {
this(new DefaultDirectoryManager(idxDir), interpreter, indexReaderDecorator, zoieConfig
.getDocidMapperFactory(), zoieConfig.getAnalyzer(), zoieConfig.getSimilarity(), zoieConfig
.getBatchSize(), zoieConfig.getBatchDelay(), zoieConfig.isRtIndexing(), zoieConfig
.getMaxBatchSize(), zoieConfig.getReadercachefactory(), (RAMIndexFactory<R>) zoieConfig
.getRamIndexFactory(), zoieConfig.getVersionComparator(), zoieConfig.isSkipBadRecord());
readercache.setFreshness(zoieConfig.getFreshness());
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
/**
* Creates a new ZoieSystem.
*
* @param dirMgr
* Directory manager, mandatory.
* @param interpreter
* data interpreter, mandatory.
* @param indexReaderDecorator
* index reader decorator,optional. If not specified,
* {@link proj.zoie.impl.indexing.DefaultIndexReaderDecorator} is
* used.
* @param zoieConfig
* configuration object
*/
@SuppressWarnings({ "deprecation", "unchecked" })
public ZoieSystem(DirectoryManager dirMgr, ZoieIndexableInterpreter<D> interpreter,
IndexReaderDecorator<R> indexReaderDecorator, ZoieConfig zoieConfig) {
this(dirMgr, interpreter, indexReaderDecorator, zoieConfig.getDocidMapperFactory(), zoieConfig
.getAnalyzer(), zoieConfig.getSimilarity(), zoieConfig.getBatchSize(), zoieConfig
.getBatchDelay(), zoieConfig.isRtIndexing(), zoieConfig.getMaxBatchSize(), zoieConfig
.getReadercachefactory(), (RAMIndexFactory<R>) zoieConfig.getRamIndexFactory(), zoieConfig
.getVersionComparator(), zoieConfig.isSkipBadRecord());
readercache.setFreshness(zoieConfig.getFreshness());
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
/**
* Creates a new ZoieSystem.
*
* @param idxDir
* index directory, mandatory.
* @param interpreter
* data interpreter, mandatory.
* @param indexReaderDecorator
* index reader decorator,optional. If not specified,
* {@link proj.zoie.impl.indexing.DefaultIndexReaderDecorator} is
* used.
* @param zoieConfig
* configuration object
*/
@SuppressWarnings({ "deprecation", "unchecked" })
public ZoieSystem(File idxDir, ZoieIndexableInterpreter<D> interpreter,
IndexReaderDecorator<R> indexReaderDecorator, ZoieConfig zoieConfig) {
this(new DefaultDirectoryManager(idxDir), interpreter, indexReaderDecorator, zoieConfig
.getDocidMapperFactory(), zoieConfig.getAnalyzer(), zoieConfig.getSimilarity(), zoieConfig
.getBatchSize(), zoieConfig.getBatchDelay(), zoieConfig.isRtIndexing(), zoieConfig
.getMaxBatchSize(), zoieConfig.getReadercachefactory(), (RAMIndexFactory<R>) zoieConfig
.getRamIndexFactory(), zoieConfig.getVersionComparator(), zoieConfig.isSkipBadRecord());
readercache.setFreshness(zoieConfig.getFreshness());
}
内容来源于网络,如有侵权,请联系作者删除!