Package org.apache.hadoop.io.FastWritableRegister

Examples of org.apache.hadoop.io.FastWritableRegister.FastWritable


      declaredClass = Writable.class;
    }
   
    // handle FastWritable first (including ShortVoid)
    if (instance instanceof FastWritable) {
      FastWritable fwInstance = (FastWritable) instance;
      byte[] serializedName = fwInstance.getSerializedName();
      out.write(serializedName, 0, serializedName.length);
      fwInstance.write(out);
      return;
    }
   
    // write declared name
    writeStringCached(out, declaredClass.getName());
View Full Code Here


      setObjectWritable(objectWritable, ShortVoid.class, ShortVoid.instance);
      return ShortVoid.instance;
    }
   
    // handle fast writable objects first
    FastWritable fwInstance = FastWritableRegister.tryGetInstance(className,
        conf);
    if (fwInstance != null) {
      fwInstance.readFields(in);
      setObjectWritable(objectWritable, fwInstance.getClass(), fwInstance);
      return fwInstance;
    }
   
    Class<?> declaredClass = getClassWithCaching(className, conf);
   
View Full Code Here

TOP

Related Classes of org.apache.hadoop.io.FastWritableRegister.FastWritable

Copyright © 2018 www.massapicom. 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.