com.hurence.logisland.record.Record.getAllFieldsSorted()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中com.hurence.logisland.record.Record.getAllFieldsSorted方法的一些代码示例,展示了Record.getAllFieldsSorted的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.getAllFieldsSorted方法的具体详情如下:
包路径:com.hurence.logisland.record.Record
类名称:Record
方法名:getAllFieldsSorted

Record.getAllFieldsSorted介绍

暂无

代码示例

代码示例来源:origin: com.hurence.logisland/logisland-api

public StandardRecord(Record toClone) {
  this();
  this.setType(toClone.getType());
  this.setTime(toClone.getTime());
  this.setId(UUID.randomUUID().toString());
  toClone.getAllFieldsSorted().forEach(this::setField);
  this.errors = (List<String>) toClone.getErrors();
}

代码示例来源:origin: com.hurence.logisland/logisland-solr_6_4

Map<String, Object> attributes = first.getAllFieldsSorted().stream()
    .filter(field -> !fieldToMetricTypeMapping.containsKey(field.getName()))
    .filter(field -> !field.getName().equals(FieldDictionary.RECORD_TIME) &&

代码示例来源:origin: com.hurence.logisland/logisland-cache_key_value-service-api

@Override
public List<MultiGetResponseRecord> multiGet(List<MultiGetQueryRecord> multiGetQueryRecords) throws DatastoreClientServiceException {
  List<MultiGetResponseRecord> results = new ArrayList<>();
  for (MultiGetQueryRecord mgqr : multiGetQueryRecords) {
    String collectionName = mgqr.getIndexName();
    String typeName = mgqr.getTypeName();
    for (String id : mgqr.getDocumentIds()) {
      Record record = get(collectionName, new StandardRecord().setStringField(rowKey, id));
      Map<String, String> retrievedFields = new HashMap<>();
      if (record != null) {
        if (mgqr.getFieldsToInclude()[0].equals("*")) {
          for (Field field : record.getAllFieldsSorted()) {
            if (!field.getName().equals(FieldDictionary.RECORD_TIME) &&
                !field.getName().equals(FieldDictionary.RECORD_TYPE) &&
                !field.getName().equals(FieldDictionary.RECORD_ID))
              retrievedFields.put(field.getName(), field.asString());
          }
        } else {
          for (String prop : mgqr.getFieldsToInclude()) {
            retrievedFields.put(prop, record.getField(prop).asString());
          }
        }
      } else {
        logger.debug("unable to retrieve record (id=" + id + ") from collection " + collectionName);
      }
      results.add(new MultiGetResponseRecord(collectionName, typeName, id, retrievedFields));
    }
  }
  return results;
}

代码示例来源:origin: com.hurence.logisland/logisland-elasticsearch_5_4_0-client-service

record.getAllFieldsSorted().forEach(field -> {
  try {

相关文章