- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中proj.zoie.api.indexing.ZoieIndexable
类的一些代码示例,展示了ZoieIndexable
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoieIndexable
类的具体详情如下:
包路径:proj.zoie.api.indexing.ZoieIndexable
类名称:ZoieIndexable
[英]Builder object to produce indexing requests.
[中]生成器对象生成索引请求。
代码示例来源:origin: com.senseidb.zoie/zoie-core
@Override
public IndexingReq[] buildIndexingReqs() {
return _inner.buildIndexingReqs();
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
@Override
public long getUID() {
return _inner.getUID();
}
代码示例来源:origin: senseidb/zoie
@Override
public boolean isDeleted() {
return _inner.isDeleted();
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
if (indexable == null || indexable.isSkip())
continue;
long uid = indexable.getUID();
delSet.add(uid);
addList.remove(uid);
if (!(indexable.isDeleted() || evt.isDelete())) // update event
IndexingReq[] reqs = indexable.buildIndexingReqs();
for (IndexingReq req : reqs) {
if (req != null) // if doc is provided, interpret as
if (doc!=null){
ZoieSegmentReader.fillDocumentID(doc, uid);
if (indexable.isStorable()){
byte[] bytes = indexable.getStoreValue();
if (bytes!=null){
doc.add(new Field(AbstractZoieIndexable.DOCUMENT_STORE_FIELD,bytes));
代码示例来源:origin: com.senseidb/sensei-core
public Document buildDoc(JSONObject json) {
ZoieIndexable indexable = defaultJsonSchemaInterpreter.convertAndInterpret(json);
Document ret = indexable.buildIndexingReqs()[0].getDocument();
ret.add(new StoredField(AbstractZoieIndexable.DOCUMENT_STORE_FIELD, indexable.getStoreValue()));
ZoieSegmentReader.fillDocumentID(ret, indexable.getUID());
return ret;
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
_version = event.getVersion();
ZoieIndexable indexable = _interpreter.convertAndInterpret(event.getData());
if (indexable.isSkip()) continue;
if (!_appendOnly){
try {
_writer.deleteDocuments(new Term(DOCUMENT_ID_FIELD,String.valueOf(indexable.getUID())));
} catch(IOException e) {
throw new ZoieException(e.getMessage(),e);
IndexingReq[] reqs = indexable.buildIndexingReqs();
for (IndexingReq req : reqs){
Analyzer localAnalyzer = req.getAnalyzer();
Document doc = req.getDocument();
Field uidField = new Field(DOCUMENT_ID_FIELD,String.valueOf(indexable.getUID()),Store.NO,Index.NOT_ANALYZED_NO_NORMS);
uidField.setOmitNorms(true);
doc.add(uidField);
代码示例来源:origin: senseidb/zoie
@Override
public boolean isSkip() {
return _inner.isSkip();
}
代码示例来源:origin: senseidb/zoie
if (indexable == null || indexable.isSkip()) continue;
long uid = indexable.getUID();
delSet.add(uid);
addList.remove(uid);
if (!(indexable.isDeleted() || evt.isDelete())) // update event
IndexingReq[] reqs = indexable.buildIndexingReqs();
for (IndexingReq req : reqs) {
if (req != null) // if doc is provided, interpret as
if (doc != null) {
ZoieSegmentReader.fillDocumentID(doc, uid);
if (indexable.isStorable()) {
byte[] bytes = indexable.getStoreValue();
if (bytes != null) {
doc.add(new StoredField(AbstractZoieIndexable.DOCUMENT_STORE_FIELD, bytes));
代码示例来源:origin: com.linkedin.zoie/zoie-core
if (indexable.isSkip())
continue;
_writer.deleteDocuments(new Term(DOCUMENT_ID_FIELD, String.valueOf(indexable.getUID())));
} catch (IOException e)
IndexingReq[] reqs = indexable.buildIndexingReqs();
for (IndexingReq req : reqs)
Field uidField = new Field(DOCUMENT_ID_FIELD, String.valueOf(indexable.getUID()), Store.NO, Index.NOT_ANALYZED_NO_NORMS);
uidField.setOmitNorms(true);
doc.add(uidField);
代码示例来源:origin: com.senseidb.zoie/zoie-core
@Override
public boolean isSkip() {
return _inner.isSkip();
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
if (indexable == null || indexable.isSkip()) continue;
long uid = indexable.getUID();
delSet.add(uid);
addList.remove(uid);
if (!(indexable.isDeleted() || evt.isDelete())) // update event
IndexingReq[] reqs = indexable.buildIndexingReqs();
for (IndexingReq req : reqs) {
if (req != null) // if doc is provided, interpret as
if (doc != null) {
ZoieSegmentReader.fillDocumentID(doc, uid);
if (indexable.isStorable()) {
byte[] bytes = indexable.getStoreValue();
if (bytes != null) {
doc.add(new StoredField(AbstractZoieIndexable.DOCUMENT_STORE_FIELD, bytes));
代码示例来源:origin: senseidb/zoie
@Override
public IndexingReq[] buildIndexingReqs() {
return _inner.buildIndexingReqs();
}
代码示例来源:origin: senseidb/zoie
@Override
public long getUID() {
return _inner.getUID();
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
public boolean isSkip() {
return _inner.isSkip();
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
@Override
public boolean isDeleted() {
return _inner.isDeleted();
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
@Override
public IndexingReq[] buildIndexingReqs() {
return _inner.buildIndexingReqs();
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
public long getUID() {
return _inner.getUID();
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
public boolean isDeleted() {
return _inner.isDeleted();
}
代码示例来源:origin: com.senseidb/sensei-core
IndexingReq[] idxReqs = indexable.buildIndexingReqs();
for (IndexingReq req : idxReqs) {
Document doc = req.getDocument();
本文整理了Java中proj.zoie.api.indexing.ZoieIndexable.isDeleted()方法的一些代码示例,展示了ZoieIndexable.isDeleted()的具体用
本文整理了Java中proj.zoie.api.indexing.ZoieIndexable.getUID()方法的一些代码示例,展示了ZoieIndexable.getUID()的具体用法。这些代码
本文整理了Java中proj.zoie.api.indexing.ZoieIndexable.isSkip()方法的一些代码示例,展示了ZoieIndexable.isSkip()的具体用法。这些代码
本文整理了Java中proj.zoie.api.indexing.ZoieIndexable.getStoreValue()方法的一些代码示例,展示了ZoieIndexable.getStoreVal
本文整理了Java中proj.zoie.api.indexing.ZoieIndexable.buildIndexingReqs()方法的一些代码示例,展示了ZoieIndexable.buildIn
我是一名优秀的程序员,十分优秀!