本文整理了Java中proj.zoie.api.ZoieSegmentReader.<init>()
方法的一些代码示例,展示了ZoieSegmentReader.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoieSegmentReader.<init>()
方法的具体详情如下:
包路径:proj.zoie.api.ZoieSegmentReader
类名称:ZoieSegmentReader
方法名:<init>
[英]make exact shallow copy for duplication. The decorated reader is also shallow copied.
[中]制作精确的浅拷贝以便复制。被修饰的读者也是肤浅的复制品。
代码示例来源:origin: senseidb/zoie
/**
* makes exact shallow copy of a given ZoieSegmentReader
* @throws IOException
*/
public ZoieSegmentReader<R> copy() throws IOException {
return new ZoieSegmentReader<R>(this, this.in);
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
/**
* makes exact shallow copy of a given ZoieSegmentReader
* @throws IOException
*/
public ZoieSegmentReader<R> copy() throws IOException {
return new ZoieSegmentReader<R>(this, this.in);
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
/**
* makes exact shallow copy of a given ZoieMultiReader
* @param <R>
* @param source
* @return
* @throws IOException
*/
@Override
public ZoieSegmentReader<R> copy() throws IOException
{
return new ZoieSegmentReader<R>(this, this.in);
}
}
代码示例来源:origin: senseidb/zoie
@Override
public AtomicReader wrap(AtomicReader reader) {
if (!(reader instanceof SegmentReader)) {
throw new IllegalStateException("reader not insance of " + SegmentReader.class);
}
try {
if (_readerMap != null && !_readerMap.isEmpty()) {
SegmentReader sr = (SegmentReader) reader;
String segmentName = sr.getSegmentName();
ZoieSegmentReader<R> zoieSegmentReader = _readerMap.get(segmentName);
if (zoieSegmentReader != null && zoieSegmentReader.getInnerReader() == sr) {
return new ZoieSegmentReader<R>(zoieSegmentReader, sr);
}
}
return new ZoieSegmentReader<R>(reader, _decorator);
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
@Override
public AtomicReader wrap(AtomicReader reader) {
if (!(reader instanceof SegmentReader)) {
throw new IllegalStateException("reader not insance of " + SegmentReader.class);
}
try {
if (_readerMap != null && !_readerMap.isEmpty()) {
SegmentReader sr = (SegmentReader) reader;
String segmentName = sr.getSegmentName();
ZoieSegmentReader<R> zoieSegmentReader = _readerMap.get(segmentName);
if (zoieSegmentReader != null && zoieSegmentReader.getInnerReader() == sr) {
return new ZoieSegmentReader<R>(zoieSegmentReader, sr);
}
}
return new ZoieSegmentReader<R>(reader, _decorator);
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
zr = new ZoieSegmentReader<R>(sr,_decorator);
代码示例来源:origin: com.linkedin.zoie/zoie-core
hasDeletes = true;
zoieSegmentReader = new ZoieSegmentReader<R>(zoieSegmentReader,sr,hasDeletes);
zoieSegmentReader = new ZoieSegmentReader<R>(sr,_decorator);
内容来源于网络,如有侵权,请联系作者删除!