Examples of addField()


Examples of org.apache.openjpa.persistence.FetchPlan.addField()

       
        // Select root (state 1)
        Query query = em.createQuery("select s from State s where s.name=:name");
        FetchPlan fetch = OpenJPAPersistence.cast(query).getFetchPlan();
        fetch.setMaxFetchDepth(15);
        fetch.addField(State.class, "incomingTransitions");
        fetch.addField(State.class, "outgoingTransitions");
        fetch.addField(Transition.class, "toState");
        fetch.addField(Transition.class, "fromState");
        State qs1 = (State) query.setParameter("name", "s1").getSingleResult();
View Full Code Here

Examples of org.apache.padaf.xmpbox.schema.PDFAValueTypeDescription.addField()

    Assert.assertEquals("pdfaType:description", pdfvalueType
        .getDescription().getQualifiedName());
    Assert.assertEquals(description, pdfvalueType.getDescriptionValue());

    pdfvalueType.addField(fieldName1, fieldValueType1, fieldDescription1);
    pdfvalueType.addField(fieldName2, fieldValueType2, fieldDescription2);

    PDFAFieldDescription field1, field2;
    Assert.assertEquals(2, pdfvalueType.getFields().size());
    field1 = pdfvalueType.getFields().get(0);
View Full Code Here

Examples of org.apache.phoenix.schema.KeyValueSchema.KeyValueSchemaBuilder.addField()

            }
            if(arrayKVFuncs.size() > 0 && arrayKVRefs.size() > 0) {
                serailizeArrayIndexInformationAndSetInScan(context, arrayKVFuncs, arrayKVRefs);
                KeyValueSchemaBuilder builder = new KeyValueSchemaBuilder(0);
                for (Expression expression : arrayKVRefs) {
                    builder.addField(expression);
                }
                KeyValueSchema kvSchema = builder.build();
                arrayIndexesBitSet = ValueBitSet.newInstance(kvSchema);
                builder = new KeyValueSchemaBuilder(0);
                for (Expression expression : arrayKVFuncs) {
View Full Code Here

Examples of org.apache.phoenix.schema.RowKeySchema.RowKeySchemaBuilder.addField()

    public ScanUtilTest(List<List<KeyRange>> slots, int[] widths, byte[] expectedKey, Bound bound) throws Exception {
        RowKeySchemaBuilder builder = new RowKeySchemaBuilder(widths.length);
        for (final int width : widths) {
            if (width > 0) {
                builder.addField(new PDatum() {
                    @Override
                    public boolean isNullable() {
                        return false;
                    }
                    @Override
View Full Code Here

Examples of org.apache.pig.experimental.logical.relational.LogicalSchema.addField()

    LogicalRelationalOperator store = null;   
   
    private void prep() {
        plan = new LogicalPlan();
        LogicalSchema schema = new LogicalSchema();
        schema.addField(new LogicalSchema.LogicalFieldSchema("id", null, DataType.INTEGER));
        schema.addField(new LogicalSchema.LogicalFieldSchema("name", null, DataType.CHARARRAY));
        schema.addField(new LogicalSchema.LogicalFieldSchema("age", null, DataType.INTEGER));   
        schema.getField(0).uid = 1;
        schema.getField(1).uid = 2;
        schema.getField(2).uid = 3;
View Full Code Here

Examples of org.apache.pig.newplan.logical.relational.LogicalSchema.addField()

                load.setRequiredFields(requiredIndexes);
               
                LogicalSchema newSchema = new LogicalSchema();
                for (int i=0; i<fieldList.size(); i++) {                   
                    newSchema.addField(s.getField(fieldList.get(i).getIndex()));
                }
               
                load.setSchema(newSchema);
            }
        }
View Full Code Here

Examples of org.apache.solr.client.solrj.SolrQuery.addField()

      return null;
    }

    SolrQuery query = new SolrQuery();
    query.setQuery( descriptor + ":" + identifier );
    query.addField("FgdcText");
    query.setRows(1);
   
     SolrDocumentList docs = this.solrClient.getSolrServer().query(query).getResults();
     return (String) docs.get(0).getFieldValue("FgdcText");
  }
View Full Code Here

Examples of org.apache.solr.common.SolrDocument.addField()

      if (hits!=null){
        for (BrowseHit hit : hits){
        SolrDocument doc = convert(hit,rb.rsp.getReturnFields());
        if (doc!=null){
          if (returnScores){
            doc.addField("score", hit.getScore());
          }
          docList.add(doc);
        }
        }
      }
View Full Code Here

Examples of org.apache.solr.common.SolrInputDocument.addField()

    }

    public void err(final DigestURI digestURI, final String failReason, final int httpstatus) throws IOException {

            final SolrInputDocument solrdoc = new SolrInputDocument();
            solrdoc.addField("id", ASCII.String(digestURI.hash()));
            solrdoc.addField("sku", digestURI.toNormalform(true, false), 3.0f);
            final InetAddress address = Domains.dnsResolve(digestURI.getHost());
            if (address != null) solrdoc.addField("ip_s", address.getHostAddress());
            if (digestURI.getHost() != null) solrdoc.addField("host_s", digestURI.getHost());
View Full Code Here

Examples of org.apache.tapestry.ioc.services.ClassFab.addField()

    private Class createInterceptorClass(Class serviceInterface, String serviceId)
    {
        ClassFab cf = _classFactory.newClass(serviceInterface);

        cf.addField("_delegate", serviceInterface);
        cf.addField("_logger", ServiceLogger.class);

        cf.addConstructor(new Class[]
        { serviceInterface, ServiceLogger.class }, null, "{ _delegate = $1; _logger = $2; }");
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.