Examples of Fields


Examples of cascading.tuple.Fields

        RestUtils.refresh(indexPrefix + "cascading-hadoop");

        Properties cfg = cfg();
        cfg.setProperty("es.mapping.names", "nested:data.map.key");

        Tap in = new EsTap(indexPrefix + "cascading-hadoop/nestedmap", new Fields("nested"));
        Pipe pipe = new Pipe("copy");
        pipe = new Each(pipe, new FilterNotNull());
        pipe = new Each(pipe, AssertionLevel.STRICT, new AssertSizeLessThan(2));

        // print out
View Full Code Here

Examples of ch.njol.yggdrasil.Fields

    return info.equals(other.info);
  }
 
  @Override
  public Fields serialize() throws NotSerializableException {
    final Fields f = super.serialize();
    f.putObject("info.codeName", info.codeName);
    return f;
  }
View Full Code Here

Examples of com.bradmcevoy.http.webdav.PropPatchHandler.Fields

        return (r instanceof PropPatchableResource);
    }

    public PropFindResponse setProperties( String href, ParseResult parseResult, Resource r ) {
        PropPatchableResource ppr = (PropPatchableResource) r;
        Fields fields = helper.buildFields(parseResult);
        ppr.setProperties( fields );
        List<PropFindResponse> list = helper.buildResult(href, parseResult);
        return list.get(0);
    }
View Full Code Here

Examples of com.cloudera.cdk.morphline.base.Fields

        "",
        new MorphlineContext.Builder().build(),
        null);
    assertNotNull(morphline);
   
    new Fields();
    new Metrics();   
  }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jetty.util.Fields

    }

    @Override
    public Fields getParams()
    {
        return new Fields(params, true);
    }
View Full Code Here

Examples of com.sissi.field.Fields

    }
    return build ? builder.get() : null;
  }

  private void embed(Field<?> field, BasicDBObjectBuilder builder) {
    Fields fields = field.getChildren();
    String name = null;
    if (fields.isEmbed()) {
      this.entities(fields, builder);
    } else if ((name = this.mapping.mapping(field)) != null) {
      // 非嵌入式则创建新Key保存Field子节点,Key = Field.name
      builder.add(name, this.entities(fields, BasicDBObjectBuilder.start()));
    }
View Full Code Here

Examples of com.thoughtworks.xstream.tools.benchmark.xmlfriendly.model.A100$Fields

    public Field$Reflection() {
        super(new ArrayList());
        List list = (List)target();
        for(int i = 0; i < 100; ++i) {
            Object o = new A100$Fields();
            fill(o);
            list.add(o);
        }
    }
View Full Code Here

Examples of dbbeans.Fields

     * @param type
     * @param node
     */
    public void addField(String name, String value, int type, int node) {
        try {
            fieldsController.create(new Fields(0, name, value, type, node));
        } catch (RollbackFailureException ex) {
            Logger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);
        } catch (Exception ex) {
            Logger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);
        }
View Full Code Here

Examples of gov.nasa.jpf.vm.Fields

   *
   * @throws ConversionException
   *           if the given field is not of primitive type
   */
  public static void setJPFPrimitiveField (ElementInfo ei, int index, Field fld, Object JVMObj) throws IllegalAccessException, ConversionException{
    Fields fields = ei.getFields();
    if (fld.getType().getName().equals("boolean")){
      fields.setBooleanValue(index, fld.getBoolean(JVMObj));
    } else if (fld.getType().getName().equals("byte")){
      fields.setByteValue(index, fld.getByte(JVMObj));
    } else if (fld.getType().getName().equals("int")){
      fields.setIntValue(index, fld.getInt(JVMObj));
    } else if (fld.getType().getName().equals("short")){
      fields.setShortValue(index, fld.getShort(JVMObj));
    } else if (fld.getType().getName().equals("long")){
      fields.setLongValue(index, fld.getLong(JVMObj));
    } else if (fld.getType().getName().equals("char")){
      fields.setCharValue(index, fld.getChar(JVMObj));
    } else if (fld.getType().getName().equals("float")){
      fields.setFloatValue(index, fld.getFloat(JVMObj));
    } else if (fld.getType().getName().equals("double")){
      fields.setDoubleValue(index, fld.getDouble(JVMObj));
    } else{
      throw new ConversionException("Unknown premitive type " + fld.getType().getName());
    }
  }
View Full Code Here

Examples of org.apache.lucene.index.Fields

    IndexReader reader = DirectoryReader.open(benchmark.getRunData().getDirectory());
    assertEquals(NUM_DOCS, reader.numDocs());

    int totalTokenCount2 = 0;

    Fields fields = MultiFields.getFields(reader);

    for (String fieldName : fields) {
      if (fieldName.equals(DocMaker.ID_FIELD) || fieldName.equals(DocMaker.DATE_MSEC_FIELD) || fieldName.equals(DocMaker.TIME_SEC_FIELD)) {
        continue;
      }
      Terms terms = fields.terms(fieldName);
      if (terms == null) {
        continue;
      }
      TermsEnum termsEnum = terms.iterator(null);
      DocsEnum docs = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.