本文整理了Java中com.hurence.logisland.record.Record.getId
方法的一些代码示例,展示了Record.getId
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.getId
方法的具体详情如下:
包路径:com.hurence.logisland.record.Record
类名称:Record
方法名:getId
暂无
代码示例来源:origin: com.hurence.logisland/logisland-querymatcher-plugin
@Override
public void handleMatch(final Record record,
final ProcessContext context,
final MatchingRule matchingRule,
MatchQuery.RecordTypeUpdatePolicy recordTypeUpdatePolicy) {
// Forward processing of tagging to either only first or concat matchHandler.
this.matchHandler.handleMatch(record, context, matchingRule, recordTypeUpdatePolicy);
// Remove the processed record from the records to append in case of non-match.
inputRecords.remove(record.getId());
}
代码示例来源:origin: com.hurence.logisland/logisland-solr-client-service-api
@Override
public Record get(String collectionName, Record record) throws DatastoreClientServiceException {
return get(collectionName, record.getId());
}
代码示例来源:origin: com.hurence.logisland/logisland-redis_4-client-service
@Override
public Record get(String collectionName, Record record) throws DatastoreClientServiceException {
return get(record.getId());
}
代码示例来源:origin: com.hurence.logisland/logisland-redis_4-client-service
@Override
public void bulkPut(String collectionName, Record record) throws DatastoreClientServiceException {
set(record.getId(),record);
}
代码示例来源:origin: com.hurence.logisland/logisland-redis_4-client-service
@Override
public void put(String collectionName, Record record, boolean asynchronous) throws DatastoreClientServiceException {
set(record.getId(),record);
}
代码示例来源:origin: com.hurence.logisland/logisland-querymatcher-plugin
/**
*
* @param records the records received by the processor.
* @param onMatchPolicy the match policy to specify if only the first matching rule or all matching rules
* are tagged in the send out records.
*/
public AllInAllOutMatchHandler(final Collection<Record> records,
final MatchQuery.OnMatchPolicy onMatchPolicy) {
this.matchHandler = onMatchPolicy== MatchQuery.OnMatchPolicy.first ? new LegacyMatchHandler()
: new ConcatMatchHandler();
this.inputRecords = new HashMap<>();
// Store all record identifiers.
records.forEach(record -> inputRecords.put(record.getId(), record));
}
代码示例来源:origin: com.hurence.logisland/logisland-solr_6_4
@Override
public void remove(String collectionName, Record record, boolean asynchronous) throws DatastoreClientServiceException {
try {
solr.deleteById(collectionName, record.getId());
} catch (SolrServerException | IOException e) {
logger.error(e.toString());
throw new DatastoreClientServiceException(e);
}
}
代码示例来源:origin: com.hurence.logisland/logisland-solr-client-service-api
@Override
public void remove(String collectionName, Record record, boolean asynchronous) throws DatastoreClientServiceException {
try {
getClient().deleteById(collectionName, record.getId());
} catch (SolrServerException | IOException e) {
logger.error(e.toString());
throw new DatastoreClientServiceException(e);
}
}
}
代码示例来源:origin: com.hurence.logisland/logisland-redis_4-client-service
@Override
public void remove(String collectionName, Record record, boolean asynchronous) throws DatastoreClientServiceException {
try {
remove(record.getId(),stringSerializer);
} catch (IOException e) {
getLogger().warn("Error removing record : " + e.getMessage(), e);
}
}
代码示例来源:origin: com.hurence.logisland/logisland-common-processors-plugin
String error = String.format("Unable to return a scalar value for the expression %s " +
"for Record %s. Evaluated value was %s.",
jsonPathExp.getPath(), record.getId(), result.toString());
record.getId(), jsonPathExp.getPath(), jsonPathAttrKey);
logger.error(error);
record.addError(ERROR_INVALID_JSON_FIELD, error);
String error = String.format("Record %s has no field %s.", record.getId(), jsonInputField);
logger.error(error);
record.addError(ERROR_INVALID_JSON_FIELD, error);
代码示例来源:origin: com.hurence.logisland/logisland-querymatcher-plugin
final Map<String, Record> inputRecords = new HashMap<>();
for (final Record record : records) {
final InputDocument.Builder docbuilder = InputDocument.builder(record.getId());
for (final String fieldName : record.getAllFieldNames()) {
if (luceneAttrsToQuery.contains(fieldName) &&
inputRecords.put(record.getId(), record);
代码示例来源:origin: com.hurence.logisland/logisland-solr-client-service-api
public SolrInputDocument toSolrInputDocument(Record record, String uniqueKey) {
SolrInputDocument document = createNewSolrInputDocument();
document.addField(uniqueKey, record.getId());
for (Field field : record.getAllFields()) {
if (field.isReserved()) {
continue;
}
document.addField(field.getName(), field.getRawValue());
}
return document;
}
代码示例来源:origin: com.hurence.logisland/logisland-elasticsearch-plugin
elasticsearchClientService.bulkPut(docIndex, docType, document, Optional.of(record.getId()));
代码示例来源:origin: com.hurence.logisland/logisland-querymatcher-plugin
com.hurence.logisland.record.Field queryField = null;
Record outRecord = this.outRecords.get(record.getId());
context.getPropertyValue(MatchQuery.OUTPUT_RECORD_TYPE).asString() : record.getType()
);
this.outRecords.put(record.getId(), outRecord);
代码示例来源:origin: com.hurence.logisland/logisland-querymatcher-plugin
final Map<String, Record> inputRecords = new HashMap<>();
for (final Record record : records) {
final InputDocument.Builder docbuilder = InputDocument.builder(record.getId());
for (final String fieldName : record.getAllFieldNames()) {
if (record.getField(fieldName).getRawValue() != null) {
inputRecords.put(record.getId(), record);
内容来源于网络,如有侵权,请联系作者删除!