/// <exception cref="System.IO.IOException"/> public virtual void ReadFields(BinaryReader reader) { int length = @in.ReadInt(); if (length == -1) { this.value = null; } else { if (length == 0) { this._elementType = (Type)ObjectWritable.LoadClass(_conf, WritableUtils.ReadString( @in)); this.value = EnumSet.NoneOf(this._elementType); } else { E first = (E)ObjectWritable.ReadObject(@in, _conf); this.value = (EnumSet <E>)EnumSet.Of(first); for (int i = 1; i < length; i++) { this.value.AddItem((E)ObjectWritable.ReadObject(@in, _conf)); } } } }
/// <exception cref="System.IO.IOException"/> public virtual void ReadFields(DataInput @in) { id = new JobID(); id.ReadFields(@in); user = new Text(); user.ReadFields(@in); jobSubmitDir = new Path(WritableUtils.ReadString(@in)); }
/// <exception cref="System.IO.IOException"/> public virtual void ReadFields(DataInput @in) { taskId.ReadFields(@in); idWithinJob = WritableUtils.ReadVInt(@in); isMap = @in.ReadBoolean(); status = WritableUtils.ReadEnum <TaskCompletionEvent.Status>(@in); taskTrackerHttp = WritableUtils.ReadString(@in); taskRunTime = WritableUtils.ReadVInt(@in); eventId = WritableUtils.ReadVInt(@in); }
/// <exception cref="System.IO.IOException"/> public override void ReadFields(DataInput @in) { this.cache = null; expiryDate = WritableUtils.ReadVLong(@in); keyId = WritableUtils.ReadVInt(@in); userId = WritableUtils.ReadString(@in); blockPoolId = WritableUtils.ReadString(@in); blockId = WritableUtils.ReadVLong(@in); int length = WritableUtils.ReadVIntInRange(@in, 0, typeof(BlockTokenSecretManager.AccessMode ).GetEnumConstants().Length); for (int i = 0; i < length; i++) { modes.AddItem(WritableUtils.ReadEnum <BlockTokenSecretManager.AccessMode>(@in)); } }
/// <exception cref="System.IO.IOException"/> public virtual void ReadFields(DataInput @in) { int numSchemes = WritableUtils.ReadVInt(@in); // #scheme FileSystemCounter[] enums = FileSystemCounter.Values(); for (int i = 0; i < numSchemes; ++i) { string scheme = WritableUtils.ReadString(@in); // scheme int numCounters = WritableUtils.ReadVInt(@in); // #counter for (int j = 0; j < numCounters; ++j) { FindCounter(scheme, enums[WritableUtils.ReadVInt(@in)]).SetValue(WritableUtils.ReadVLong (@in)); } } }
/// <exception cref="System.IO.IOException"/> public virtual void ReadFields(DataInput @in) { file = new Path(WritableUtils.ReadString(@in)); len = WritableUtils.ReadVLong(@in); }