Examples of writeFile()


Examples of org.apache.hadoop.io.SequenceFile.Sorter.writeFile()

          }
          segmentStart = finalOut.getPos();
          SequenceFile.Writer writer = SequenceFile.createWriter(job, finalOut,
              job.getMapOutputKeyClass(), job.getMapOutputValueClass(),
              compressionType, codec);
          sorter.writeFile(sorter.merge(segmentList, new Path(getTaskId())),
                           writer);
          //add a sync block - required esp. for block compression to ensure
          //partition data don't span partition boundaries
          writer.sync();
          //when we write the offset/length to the final index file, we write
View Full Code Here

Examples of org.apache.hadoop.io.SequenceFile.Sorter.writeFile()

          segmentStart = finalOut.getPos();
          RawKeyValueIterator kvIter = sorter.merge(segmentList, new Path(getTaskId()));
          SequenceFile.Writer writer = SequenceFile.createWriter(job, finalOut,
                                                                 job.getMapOutputKeyClass(), job.getMapOutputValueClass(),
                                                                 compressionType, codec);
          sorter.writeFile(kvIter, writer);
          //close the file - required esp. for block compression to ensure
          //partition data don't span partition boundaries
          writer.close();
          //when we write the offset/length to the final index file, we write
          //longs for both. This helps us to reliably seek directly to the
View Full Code Here

Examples of org.apache.hadoop.io.SequenceFile.Sorter.writeFile()

          }
          segmentStart = finalOut.getPos();
          SequenceFile.Writer writer = SequenceFile.createWriter(job, finalOut,
              job.getMapOutputKeyClass(), job.getMapOutputValueClass(),
              compressionType, codec);
          sorter.writeFile(sorter.merge(segmentList), writer);
          //add a sync block - required esp. for block compression to ensure
          //partition data don't span partition boundaries
          writer.sync();
          //when we write the offset/length to the final index file, we write
          //longs for both. This helps us to reliably seek directly to the
View Full Code Here

Examples of org.apache.hadoop.io.SequenceFile.Sorter.writeFile()

          }
          segmentStart = finalOut.getPos();
          SequenceFile.Writer writer = SequenceFile.createWriter(job, finalOut,
              job.getMapOutputKeyClass(), job.getMapOutputValueClass(),
              compressionType, codec);
          sorter.writeFile(sorter.merge(segmentList), writer);
          //add a sync block - required esp. for block compression to ensure
          //partition data don't span partition boundaries
          writer.sync();
          //when we write the offset/length to the final index file, we write
          //longs for both. This helps us to reliably seek directly to the
View Full Code Here

Examples of org.apache.jackrabbit.vault.fs.io.JarExporter.writeFile()

        zip.close();

        // write updated properties
        ByteArrayOutputStream tmpOut = new ByteArrayOutputStream();
        inf.getProperties().storeToXML(tmpOut, "FileVault Package Properties", "utf-8");
        exporter.writeFile(new ByteArrayInputStream(tmpOut.toByteArray()), Constants.META_DIR + "/" + Constants.PROPERTIES_XML);
        if (tracker != null) {
            tracker.track("A", Constants.META_DIR + "/" + Constants.PROPERTIES_XML);
        }

        if (opts.getPostProcessor() != null) {
View Full Code Here

Examples of org.jibx.binding.classes.ClassFile.writeFile()

                for (int i = 0; i < addcount; i++) {
                   
                    // write class file to bytes
                    ClassFile file = adds[i];
                    ByteArrayOutputStream bos = new ByteArrayOutputStream();
                    file.writeFile(bos);
                    byte[] bytes = bos.toByteArray();
                    if(m_verbose1){
                        System.out.println("\n " + file.getName() +
                            " output file size is " + bytes.length + " bytes");
                    }
View Full Code Here

Examples of org.jibx.binding.classes.ClassFile.writeFile()

      try {
       
        // convert class information to byte array
                ClassFile clas = (ClassFile)m_classMap.get(name);
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        clas.writeFile(bos);
                byte[] bytes = bos.toByteArray();
                return defineClass(name, bytes, 0, bytes.length);
       
      } catch (IOException e) {
        throw new ClassNotFoundException
View Full Code Here

Examples of org.jmule.core.edonkey.metfile.KnownMet.writeFile()

  }

  public void writeMetadata() {
    try {
      KnownMet known_met = new KnownMet(ConfigurationManager.KNOWN_MET);
      known_met.writeFile(sharedFiles.values());
      known_met.close();
    } catch (Throwable t) {
      t.printStackTrace();
    }
  }
View Full Code Here

Examples of org.jnode.net.nfs.nfs2.NFS2Client.writeFile()

            byte[] data = new byte[NFS2Client.MAX_DATA];
            int count;
            while (src.remaining() > 0) {
                count = Math.min(NFS2Client.MAX_DATA, src.remaining());
                src.get(data, 0, count);
                client.writeFile(entry.getFileHandle(), (int) fileOffset, data, 0, count);
                fileOffset += count;
            }
        } catch (NFS2Exception e) {
            throw new IOException("Error writing file . Reason: " + e.getMessage(), e);
        }
View Full Code Here

Examples of org.nimbustools.auto_config.TextFile.writeFile()

            throw new Exception("Could not alter the configuration file, no '" +
                    keyword + "' setting present in the file '" +
                    conf.getAbsolutePath() + "' (?)");
        }

        textFile.writeFile(conf);

        System.out.println("[*] The '" + keyword + "' configuration was:");
        if (newvalue == null) {
            System.out.println("    ... commented out");
        } else if (newvalue.trim().length() == 0) {
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.