@Override protected Object initialValue() { return new TypedBytesWritableInput(); } };
/** * Get a thread-local typed bytes writable input for the supplied * {@link DataInput}. * * @param in * data input object * @return typed bytes writable input corresponding to the supplied * {@link DataInput}. */ public static TypedBytesWritableInput get(DataInput in) { return get(TypedBytesInput.get(in)); }
return readBytes(); case BYTE: return readByte(); case BOOL: return readBoolean(); case INT: return readVInt(); case SHORT: return readShort(); case LONG: return readVLong(); case FLOAT: return readFloat(); case DOUBLE: return readDouble(); case STRING: return readText(); case VECTOR: return readArray(); case MAP: return readMap(); case WRITABLE: return readWritable(); case ENDOFRECORD: return null;
Class<? extends Writable> writableType = in.readType(); if (writableType != null && writableType.isAssignableFrom(NullWritable.class)) { BooleanWritable r = reuse == null ? new BooleanWritable() : (BooleanWritable) reuse; r = in.readBoolean(r); return r; ByteWritable r = reuse == null ? new ByteWritable() : (ByteWritable) reuse; r = in.readByte(r); return r; ShortWritable r = reuse == null ? new ShortWritable() : (ShortWritable) reuse; r = in.readShort(r); return r; r = in.readInt(r); return r; LongWritable r = reuse == null ? new LongWritable() : (LongWritable) reuse; r = in.readLong(r); return r; FloatWritable r = reuse == null ? new FloatWritable() : (FloatWritable) reuse;
public BytesWritable readBytes() throws IOException { return readBytes(null); }
public ArrayWritable readArray() throws IOException { return readArray(null); }
public ByteWritable readByte() throws IOException { return readByte(null); }
public IntWritable readInt() throws IOException { return readInt(null); }
public FloatWritable readFloat() throws IOException { return readFloat(null); }
public DoubleWritable readDouble() throws IOException { return readDouble(null); }
public BooleanWritable readBoolean() throws IOException { return readBoolean(null); }
Type type = tbIn.readTypeCode(); switch (type) { case BYTE: tbIn.readByte((ByteWritable) w); break; case BOOL: tbIn.readBoolean((BooleanWritable) w); break; case INT: tbIn.readInt((IntWritable) w); break; case SHORT: tbIn.readShort((ShortWritable) w); break; case LONG: tbIn.readLong((LongWritable) w); break; case FLOAT: tbIn.readFloat((FloatWritable) w); break; case DOUBLE: tbIn.readDouble((DoubleWritable) w); break; case STRING: tbIn.readText((Text) w); break; default:
return readBytes(); case BYTE: return readByte(); case BOOL: return readBoolean(); case INT: return readVInt(); case SHORT: return readShort(); case LONG: return readVLong(); case FLOAT: return readFloat(); case DOUBLE: return readDouble(); case STRING: return readText(); case VECTOR: return readArray(); case MAP: return readMap(); case WRITABLE: return readWritable(); case ENDOFRECORD: return null;
public BytesWritable readBytes() throws IOException { return readBytes(null); }
public ArrayWritable readArray() throws IOException { return readArray(null); }
public ByteWritable readByte() throws IOException { return readByte(null); }
public IntWritable readInt() throws IOException { return readInt(null); }
public FloatWritable readFloat() throws IOException { return readFloat(null); }
public DoubleWritable readDouble() throws IOException { return readDouble(null); }