Examples of addField()


Examples of org.elasticsearch.action.search.SearchRequestBuilder.addField()

        srb.setIndices(commandLineOptions.getIndicesArray());
        srb.setSearchType(SearchType.SCAN);
        srb.setScroll(TimeValue.timeValueMinutes(commandLineOptions.getScrollTimeout()));
        srb.setQuery(QueryBuilders.matchAllQuery());
        srb.setSize(commandLineOptions.getBatchSize());
        srb.addField("_id");
        srb.addField("timestamp");
        srb.addField("_source");

        final SearchRequest request = srb.request();
        final SearchResponse response = client.search(request).actionGet();
View Full Code Here

Examples of org.exolab.javasource.JClass.addField()

                JModifiers modifiers = field.getModifiers();
                modifiers.setFinal(true);
                modifiers.setStatic(true);
                modifiers.makePublic();
                field.setInitString(Integer.toString(count));
                jClass.addField(field);

                //-- handle Class type
                field = new JField(jClass, objName);
                field.setComment("The instance of the " + value + " type");
View Full Code Here

Examples of org.exolab.javasource.JEnum.addField()

        JField jField = new JField(new JClass("java.lang.String"), "value");
        JModifiers modifiers = new JModifiers();
        modifiers.setFinal(true);
        modifiers.makePrivate();
        jField.setModifiers(modifiers);
        jEnum.addField(jField);

        JMethod valueMethod = new JMethod("value", new JClass("java.lang.String"),
                "the value of this constant");
        valueMethod.setSourceCode("return this.value;");
        jEnum.addMethod(valueMethod, false);
View Full Code Here

Examples of org.flowforwarding.warp.protocol.ofmessages.OFMessageFlowMod.OFMessageFlowModRef.addField()

         tcpChannel.tell(TcpMessage.write(ByteString.fromArray(provider.encodeSwitchConfigRequest())), getSelf());
      } else if (msg instanceof TellToSendFlowMod) {
         System.out.println("[OF-INFO]: Send Flow Mod");
        
         OFMessageFlowModRef flowModRef = provider.buildFlowModMsg();
         flowModRef.addField("priority", "32000");
         flowModRef.addMatchInPort(swRef.getDpid().toString().substring(0, 3));

         OFStructureInstructionRef instruction = provider.buildInstructionApplyActions();
         instruction.addActionOutput("2");
         flowModRef.addInstruction("apply_actions", instruction);
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.addField()

        Value v2 = ValueFactory.createValue(9);
        d.beginTrans();
        int lastField = d.getDataSourceMetadata().getFieldCount();
        d.deleteRow(0);
        d.setFieldValue(0, 2, v1);
        d.addField("nuevo", type);
        d.setFieldValue(0, lastField, v2);
        assertTrue(((BooleanValue) d.getFieldValue(0, lastField).equals(v2))
                .getValue());
        d.commitTrans();
View Full Code Here

Examples of org.gdbms.engine.data.DataSource.addField()

    assertTrue(d.isModified());
    d.rollBackTrans();

    d.beginTrans();
    assertFalse(d.isModified());
    d.addField("name", d.getDriverMetadata().getFieldType(0));
    assertTrue(d.isModified());
    d.rollBackTrans();

    d.beginTrans();
    assertFalse(d.isModified());
View Full Code Here

Examples of org.gdbms.engine.data.metadata.DefaultDriverMetadata.addField()

     */
    public DriverMetadata getDriverMetadata() throws DriverException {
        DefaultDriverMetadata ret = new DefaultDriverMetadata();
        for (int i = 0; i < getFieldCount(); i++) {
            int type = getFieldType(i);
            ret.addField(getFieldName(i), PTTypes.typesDescription.get(type));           
        }
       
        return ret;
    }

View Full Code Here

Examples of org.gdbms.engine.data.metadata.DefaultSpatialDriverMetadata.addField()

    new File("src/test/resources/big.dbf").delete();
    new File("src/test/resources/big.shp").delete();
    new File("src/test/resources/big.shx").delete();
    DefaultSpatialDriverMetadata dsdm = new DefaultSpatialDriverMetadata();
    dsdm.addSpatialField(null, FShape.LINE);
    dsdm.addField("text", "Numeric", new String[] { DBFDriver.LENGTH,
        DBFDriver.PRECISION }, new String[] { "1", "0" });
    ds.createDataSource(new FileSourceCreation(new File(
        "src/test/resources/big.shp"), dsdm));

    ds.registerDataSource("big", new SpatialFileSourceDefinition(new File(
View Full Code Here

Examples of org.geotools.data.shapefile.index.DataDefinition.addField()

        try {
            IndexFile shx = store.shpManager.openIndexFile();
            try {

                DataDefinition def = new DataDefinition("US-ASCII");
                def.addField(Integer.class);
                def.addField(Long.class);
                for (Identifier identifier : idsSet) {
                    String fid = identifier.toString();
                    long recno = reader.findFid(fid);
                    if (recno == -1) {
View Full Code Here

Examples of org.glassfish.jersey.message.filtering.spi.EntityGraph.addField()

    @Test
    public void testProcessPermitAllProperties() throws Exception {
        final EntityGraph actual = new EntityGraphImpl(PermitAllEntity.class);

        final EntityGraph expected = new EntityGraphImpl(PermitAllEntity.class);
        expected.addField("field", ScopeProvider.DEFAULT_SCOPE);

        for (final boolean forWriter : new boolean[] {true, false}) {
            final EntityProcessor.Result result = testProcessProperty(PermitAllEntity.class, actual, forWriter);

            assertThat(result, equalTo(EntityProcessor.Result.APPLY));
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.