Examples of readInt()


Examples of org.apache.hadoop.io.DataInputByteBuffer.readInt()

   */
  public static int deserializeMetaData(ByteBuffer meta) throws IOException {
    //TODO this should be returning a class not just an int
    DataInputByteBuffer in = new DataInputByteBuffer();
    in.reset(meta);
    return in.readInt();
  }

  public void initApp(String user, ApplicationId appId, ByteBuffer secret) {
    // TODO these bytes should be versioned
    // TODO: Once SHuffle is out of NM, this can use MR APIs
View Full Code Here

Examples of org.apache.hadoop.oncrpc.XDR.readInt()

      int xid = reply.getXid();
      // Only process the create response
      if (xid != 0x8000004c) {
        return;
      }
      int status = rsp.readInt();
      if (status != Nfs3Status.NFS3_OK) {
        LOG.error("Create failed, status =" + status);
        return;
      }
      LOG.info("Create succeeded");
View Full Code Here

Examples of org.apache.harmony.rmi.transport.RMIObjectInputStream.readInt()

     * @throws IOException if any I/O error occured during remote method call
     */
    public void processCall(RemoteCall call) throws IOException {
        // read method and parameters
        RMIObjectInputStream oin = (RMIObjectInputStream) call.getInputStream();
        int op = oin.readInt(); // read operation
        long h = oin.readLong(); // read method hash

        if (op != -1) {
            // Using 1.1. RMI protocol version
            if (skel == null) {
View Full Code Here

Examples of org.apache.kahadb.util.DataByteArrayInputStream.readInt()

            if( controlIs.readByte() != BATCH_CONTROL_RECORD_HEADER[i] ) {
                return -1;
            }
        }

        int size = controlIs.readInt();
        if( size > MAX_BATCH_SIZE ) {
            return -1;
        }

        if( isChecksum() ) {
View Full Code Here

Examples of org.apache.lucene.store.ByteArrayDataInput.readInt()

        short analyzedLength = input.readShort();
        analyzed.grow(analyzedLength+2);
        input.readBytes(analyzed.bytes, 0, analyzedLength);
        analyzed.length = analyzedLength;

        long cost = input.readInt();

        surface.bytes = scratch.bytes;
        if (hasPayloads) {
          surface.length = input.readShort();
          surface.offset = input.getPosition();
View Full Code Here

Examples of org.apache.lucene.store.ChecksumIndexInput.readInt()

    generation = generationFromSegmentsFileName(segmentFileName);

    lastGeneration = generation;

    try {
      int format = input.readInt();
      // check that it is a format we can understand
      if (format > FORMAT_MINIMUM) {
        throw new IndexFormatTooOldException(input, format,
          FORMAT_MINIMUM, FORMAT_MAXIMUM);
      }
View Full Code Here

Examples of org.apache.lucene.store.DataInput.readInt()

    protected boolean loadFieldNameFilterConverter(Directory directory, String geoFileName,
            IFieldNameFilterConverter fieldNameFilterConverter) throws IOException {
        try {
            DataInput input = directory.openInput(geoFileName);
            input.readVInt()//read version
            input.readInt();   //throw out tree position
            input.readVInt()//throw out tree size
            input.readVInt()//throw out record length
       
            fieldNameFilterConverter.loadFromInput(input);
       
View Full Code Here

Examples of org.apache.lucene.store.IndexInput.readInt()

      result.cantOpenSegments = true;
      return result;
    }
    int format = 0;
    try {
      format = input.readInt();
    } catch (Throwable t) {
      msg("ERROR: could not read segment file version in directory");
      if (infoStream != null)
        t.printStackTrace(infoStream);
      result.missingSegmentVersion = true;
View Full Code Here

Examples of org.apache.lucene.store.InputStream.readInt()

    <code>d</code>, as written by the {@link #write} method.
    */
  public BitVector(Directory d, String name) throws IOException {
    InputStream input = d.openFile(name);
    try {
      size = input.readInt();        // read size
      count = input.readInt();        // read count
      bits = new byte[(size >> 3) + 1];      // allocate bits
      input.readBytes(bits, 0, bits.length);    // read bits
    } finally {
      input.close();
View Full Code Here

Examples of org.apache.lucene.util.IntBlockPool.SliceReader.readInt()

        final int iters = storeOffsets ? 3 : 1;
        while(!postingsReader.endOfSlice()) {
          result.append("(");
         
          for (int k = 0; k < iters; k++) {
            result.append(postingsReader.readInt());
            if (k < iters-1) {
              result.append(", ");
            }
          }
          result.append(")");
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.