当前位置: 首页>>代码示例>>Java>>正文


Java Fields.merge方法代码示例

本文整理汇总了Java中cascading.tuple.Fields.merge方法的典型用法代码示例。如果您正苦于以下问题:Java Fields.merge方法的具体用法?Java Fields.merge怎么用?Java Fields.merge使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cascading.tuple.Fields的用法示例。


在下文中一共展示了Fields.merge方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: RedisScheme

import cascading.tuple.Fields; //导入方法依赖的package包/类
public RedisScheme(Fields keyFields, Fields valueFields, String command, String keyDelimiter, String valueDelimiter) {
    super(Fields.merge(keyFields, valueFields));
    this.keyFields = keyFields;
    this.valueFields = valueFields;
    this.command = command;
    this.keyDelimiter = keyDelimiter;
    this.valueDelimiter = valueDelimiter;
    logger.debug("Created {}", this);
}
 
开发者ID:screen6,项目名称:cascading.redis,代码行数:10,代码来源:RedisScheme.java

示例2: orderBy

import cascading.tuple.Fields; //导入方法依赖的package包/类
/**
 * Specifies that the returned results be ordered by the specified {@link Fields}. Assume natural ordering of the
 * input types.
 */
public Data orderBy(Fields... fields) {
  if (fields != null && fields.length > 0) {
    sortFields = Fields.merge(fields);
  }
  return this;
}
 
开发者ID:HotelsDotCom,项目名称:plunger,代码行数:11,代码来源:Data.java

示例3: withFields

import cascading.tuple.Fields; //导入方法依赖的package包/类
/**
 * Specifies that the returned results be restricted to the specified {@link Fields}.
 */
public Data withFields(Fields... fields) {
  if (fields != null && fields.length > 0) {
    for (Fields fieldsElement : fields) {
      // this check seems unnecessary, but Fields.merge() doesn't seem to handle this case
      if (fieldsElement == Fields.ALL) {
        withFields = Fields.ALL;
        return this;
      }
    }
    withFields = Fields.merge(fields);
  }
  return this;
}
 
开发者ID:HotelsDotCom,项目名称:plunger,代码行数:17,代码来源:Data.java

示例4: withFields

import cascading.tuple.Fields; //导入方法依赖的package包/类
/**
 * Defines a subset of fields so that you can modify a smaller, pertinent collection of field values with
 * {@link #addTuple(Object...)}.
 */
public DataBuilder withFields(Fields... fields) {
  Fields fieldMask = Fields.merge(fields);
  try {
    this.fields.select(fieldMask);
    this.fieldMask = fieldMask;
  } catch (FieldsResolverException e) {
    throw new IllegalArgumentException("selected fields must be contained in record fields: selected fields="
        + fieldMask + ", source fields=" + this.fields);
  }

  return this;
}
 
开发者ID:HotelsDotCom,项目名称:plunger,代码行数:17,代码来源:DataBuilder.java

示例5: withFields

import cascading.tuple.Fields; //导入方法依赖的package包/类
public Builder<C> withFields(Fields... fields) {
  Fields fieldMask = Fields.merge(fields);
  try {
    this.fields.select(fieldMask);
    this.fieldMask = fieldMask;
  } catch (FieldsResolverException e) {
    throw new IllegalArgumentException("selected fields must be contained in record fields: selected fields="
        + fieldMask + ", source fields=" + this.fields);
  }
  return this;
}
 
开发者ID:HotelsDotCom,项目名称:plunger,代码行数:12,代码来源:FunctionCallStub.java

示例6: getSinkFields

import cascading.tuple.Fields; //导入方法依赖的package包/类
public Fields getSinkFields() {
  if (pathFields == null || scheme.getSinkFields().isAll())
    return scheme.getSinkFields();

  return Fields.merge(scheme.getSinkFields(), pathFields);
}
 
开发者ID:guokr,项目名称:hebo,代码行数:7,代码来源:BaseTemplateTap.java


注:本文中的cascading.tuple.Fields.merge方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。