Examples of createOutput()


Examples of com.alimama.mdrill.hdfsDirectory.FileSystemDirectory.createOutput()

        Configuration conf = getConf();
        Path p=this.hdfsLinks.get(name);
       
        try {
        FileSystemDirectory dir=new FileSystemDirectory(FileSystem.get(conf), p.getParent(), false, conf);
        return dir.createOutput(p.getName());
      } catch (IOException e) {
        SolrCore.log.error("hdfs",e);
      }
      }
     
View Full Code Here

Examples of com.asakusafw.testdriver.core.SpiImporterPreparator.createOutput()

        profile.add("root", HadoopDataSource.class, "/");
        profile.add("root", HadoopDataSourceProfile.KEY_PATH, folder.getRoot().toURI().toURL().toString());
        profile.put();

        SpiImporterPreparator testee = new SpiImporterPreparator(getClass().getClassLoader());
        ModelOutput<Text> output = testee.createOutput(
                new MockTextDefinition(),
                new MockInputDescription("base", "input.txt", format),
                profile.getTextContext());
        put(output, "Hello, world!");
        assertThat(get("base/input.txt"), is(Arrays.asList("Hello, world!")));
View Full Code Here

Examples of de.iritgo.aktera.model.ModelResponse.createOutput()

      Configuration config = getConfiguration();
      java.util.List configPath = ModelTools.getDerivationPath(req, this);

      ModelResponse res = req.createResponse();
      ListingDescriptor listing = createListingFromConfig(config, configPath);
      Output output = res.createOutput("listing");

      output.setContent(listing);
      res.add(output);

      return res;
View Full Code Here

Examples of eu.admire.gateway.engine.ogsadai.ProcessingElement.createOutput()

            RequestNode source,
            Exchange exchange,
            PipelineWorkflow pipeline)
    {
        ProcessingElement getDS = new ProcessingElement("eu.admire.GetGatewayDataSource");
        getDS.createOutput(GetGatewayDataSourceResourceRESTActivity.OUTPUT);
        getDS.createInput(GetGatewayDataSourceResourceRESTActivity.INPUT_GATEWAY_URI);
        getDS.createInput(GetGatewayDataSourceResourceRESTActivity.INPUT_RESULT_NAME);
        ExternalInputNode output = (ExternalInputNode)source;
        getDS.addInput(
                GetGatewayDataSourceResourceRESTActivity.INPUT_GATEWAY_URI,
View Full Code Here

Examples of javax.wsdl.Definition.createOutput()

        op.setName("Hello");
        Input in = def.createInput();
        in.setMessage(inMsg);
        op.setInput(in);
        op.setUndefined(false);
        Output out = def.createOutput();
        out.setMessage(outMsg);
        op.setOutput(out);
        type.addOperation(op);
        def.addPortType(type);
View Full Code Here

Examples of javax.wsdl.Definition.createOutput()

                    flat.addMessage(flatInputMsg);
                }
                flatOper.setInput(flatInput);
            }
            if (defOper.getOutput() != null) {
                Output flatOutput = flat.createOutput();
                flatOutput.setName(defOper.getOutput().getName());
                if (defOper.getOutput().getMessage() != null) {
                    Message flatOutputMsg = copyMessage(defOper.getOutput().getMessage(), flat);
                    flatOutput.setMessage(flatOutputMsg);
                    flat.addMessage(flatOutputMsg);
View Full Code Here

Examples of nexj.core.integration.Sender.createOutput()

            {
               throw new RPCException("err.rpc.notSender", new Object[]{channel.getName()});
            }

            Sender sender = (Sender)channel.getSender().getInstance(m_context);
            ObjectOutput output = sender.createOutput();

            ((MessageFormatter)message.getFormat().getFormatter().getInstance(m_context)).format((TransferObject)value, message, output);
            TransferObject tobj = new TransferObject(1);
            tobj.setValue(Sender.BODY, output.getObject());
            value = tobj;
View Full Code Here

Examples of org.apache.lucene.codecs.sep.IntStreamFactory.createOutput()

    public IntIndexOutput createOutput(Directory dir, String fileName, IOContext context) throws IOException {
      final IntStreamFactory f = delegates.get((Math.abs(salt ^ getExtension(fileName).hashCode())) % delegates.size());
      if (LuceneTestCase.VERBOSE) {
        System.out.println("MockRandomCodec: write using int factory " + f + " to fileName=" + fileName);
      }
      return f.createOutput(dir, fileName, context);
    }
  }

  @Override
  public FieldsConsumer fieldsConsumer(SegmentWriteState state) throws IOException {
View Full Code Here

Examples of org.apache.lucene.store.BaseDirectoryWrapper.createOutput()

      String fileNameIn = SegmentInfos.getLastCommitSegmentsFileName(dir);
      String fileNameOut = IndexFileNames.fileNameFromGeneration(IndexFileNames.SEGMENTS,
                                                                 "",
                                                                 1+gen);
      IndexInput in = dir.openInput(fileNameIn, newIOContext(random()));
      IndexOutput out = dir.createOutput(fileNameOut, newIOContext(random()));
      long length = in.length();
      for(int i=0;i<length-1;i++) {
        out.writeByte(in.readByte());
      }
      in.close();
View Full Code Here

Examples of org.apache.lucene.store.BaseDirectoryWrapper.createOutput()

  // LUCENE-2727/LUCENE-2812/LUCENE-4738:
  public void testCorruptFirstCommit() throws Exception {
    for(int i=0;i<6;i++) {
      BaseDirectoryWrapper dir = newDirectory();
      dir.createOutput("segments_0", IOContext.DEFAULT).close();
      IndexWriterConfig iwc = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()));
      int mode = i/2;
      if (mode == 0) {
        iwc.setOpenMode(OpenMode.CREATE);
      } else if (mode == 1) {
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.