Examples of stringValue()


Examples of io.crate.analyze.Id.stringValue()

            Object[] object = getRandomObject();
            bulkArgs[i= object;

            String id = (String)object[0];
            Id esId = new Id(ImmutableList.of(new ColumnIdent("id")), ImmutableList.of(new BytesRef(id)), new ColumnIdent("id"), true);
            ids.put(id, esId.stringValue());
        }
        SQLBulkRequest request = new SQLBulkRequest(SINGLE_INSERT_SQL_STMT, bulkArgs);
        client().execute(SQLBulkAction.INSTANCE, request).actionGet();
        refresh(client());
        return ids;
View Full Code Here

Examples of megamek.common.options.IOption.stringValue()

                adv.append(option.getName());
                if (option.getType() == IOption.STRING
                        || option.getType() == IOption.CHOICE
                        || option.getType() == IOption.INTEGER) {
                    adv.append(" ").append(option.stringValue());
                }
            }
        }

        return adv.toString();
View Full Code Here

Examples of mf.org.apache.xerces.impl.dv.ValidatedInfo.stringValue()

                        ValidatedInfo baseFixedValue=(baseAttrUse.fDefault!=null ?
                                                      baseAttrUse.fDefault: baseAttrDecl.fDefault);
                        ValidatedInfo thisFixedValue=(attrUse.fDefault!=null ?
                                                      attrUse.fDefault: attrDecl.fDefault);
                        if (!baseFixedValue.actualValue.equals(thisFixedValue.actualValue)) {
              errorArgs = new Object[]{typeName, attrDecl.fName, thisFixedValue.stringValue(),
                           baseFixedValue.stringValue(), "derivation-ok-restriction.2.1.3.b"};
              return errorArgs;
                        }

                    }
View Full Code Here

Examples of net.sf.qxs.types.UntypedValue.stringValue()

 
  private void parseRootElem(Element root, ServerConfig cfg) throws InvalidConfigurationException {
   
    cfg.setInterface(evaluateXPathString("interface", root));
    UntypedValue port = new UntypedValue(evaluateXPathString("port", root));
    if (port.stringValue("").equals(""))
      port = UntypedValue.NULL_VALUE;
    checkInt(port, "port number", 1, 0xffff);
    if (!port.equals(UntypedValue.NULL_VALUE))
      cfg.setPort(port.intValue(ServerConfig.HTTP_PORT_DEFAULT));
   
View Full Code Here

Examples of oracle.sql.ROWID.stringValue()

      case OracleTypes.ROWID :
        ROWID rowid = ((OracleResultSet)set).getROWID(col);

        if (rowid != null) {
          obj = Py.java2py(rowid.stringValue());
        }
        break;

      default :
        obj = super.getPyObject(set, col, type);
View Full Code Here

Examples of org.apache.lucene.document.EmbeddedSortField.stringValue()

           
            if (fieldable instanceof EmbeddedSortField) {
              EmbeddedSortField sortField = (EmbeddedSortField) fieldable;

              int value = -1;
              if (sortField.stringValue() != null) {
                value = Integer.parseInt(sortField.stringValue());
              }
              int sortSlot = sortField.getSortSlot();

              sortValues.set(sortSlot - 1, new Integer(value));
View Full Code Here

Examples of org.apache.lucene.document.Field.stringValue()

        //String --> anything
          Class fieldType = getNestedPropertyType(result, field.name());
          //System.out.println(field.name()+", class = " + fieldType.getName());
          Object fieldValue = null;
          if(fieldType.equals(Date.class))
            fieldValue = new Date(Long.parseLong(field.stringValue()));
          else
            fieldValue = ConvertUtils.convert(field.stringValue(), fieldType);
          //System.out.println(fieldValue+", class = " + fieldValue.getClass().getName());
          setNestedProperty(result, field.name(), fieldValue);
      }
View Full Code Here

Examples of org.apache.lucene.document.Fieldable.stringValue()

      Fieldable f2 = ff2.get(i);
      if (f1.isBinary()) {
        assert(f2.isBinary());
      } else {
        String s1 = f1.stringValue();
        String s2 = f2.stringValue();
        assertEquals(ff1 + " : " + ff2, s1,s2);
      }
    }
  }
View Full Code Here

Examples of org.apache.lucene.document.NumericField.stringValue()

      else if (fieldable instanceof Field) {
        Field safeField = (Field) fieldable;
        if ( safeField.isBinary() ) {
          serializer.addFieldWithBinaryData( new LuceneFieldContext( safeField ) );
        }
        else if ( safeField.stringValue() != null )  {
          serializer.addFieldWithStringData( new LuceneFieldContext( safeField ) );
        }
        else if ( safeField.readerValue() != null && safeField.readerValue() instanceof Serializable )  {
          serializer.addFieldWithSerializableReaderData( new LuceneFieldContext( safeField ) );
        }
View Full Code Here

Examples of org.apache.lucene.document.TextField.stringValue()

      doc.add(field);
      doc.add(payload);
      doc.add(weight1);
      doc.add(weight2);
      doc.add(weight3);
      docs.put(field.stringValue(), doc);
    }
    return docs;
  }
 
  @Test
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.