List of usage examples for java.io DataInput readInt
int readInt() throws IOException;
From source file:org.mrgeo.tile.TileIdZoomWritable.java
@Override public void readFields(final DataInput in) throws IOException { super.readFields(in); zoom = in.readInt(); }
From source file:com.chinamobile.bcbsp.examples.semicluster.SemiClusterMessage.java
@Override public void readFields(DataInput in) throws IOException { this.messageId = in.readInt(); value.readFields(in);/*from ww w . ja v a 2s . co m*/ }
From source file:com.chinamobile.bcbsp.examples.bytearray.pagerank.PRVertexLiteNew.java
@Override public void readFields(DataInput in) throws IOException { this.vertexID = in.readInt(); this.vertexValue = in.readFloat(); }
From source file:com.chinamobile.bcbsp.examples.connectedcomponent.CCVertexLiteNew.java
@Override public void readFields(DataInput in) throws IOException { this.vertexID = in.readInt(); this.vertexValue = in.readInt(); }
From source file:org.cloudata.core.client.CellValueMatcherInfo.java
@Override public void readFields(DataInput in) throws IOException { this.version = in.readInt(); int classCount = in.readInt(); for (int i = 0; i < classCount; i++) { String className = CWritableUtils.readString(in); int length = in.readInt(); if (length > 0) { byte[] classByte = new byte[length]; in.readFully(classByte);// w w w. j ava2 s.co m classNames.add(className); classBytes.add(classByte); } } }
From source file:StorageEngineClient.MultiFormatStorageSplit.java
@Override public void readFields(DataInput in) throws IOException { len = in.readInt(); if (path == null) { path = new Path[(int) len]; }/* ww w. j ava2s . co m*/ for (int i = 0; i < len; i++) { short strLen = in.readShort(); if (strLen > 0) { byte[] buf = new byte[strLen]; in.readFully(buf, 0, strLen); String string = new String(buf); path[i] = new Path(string); } } }
From source file:com.vmware.demo.sgf.tests.domain.Person.java
@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { Id = in.readInt(); firstname = in.readUTF();/*w w w.ja va2 s . c o m*/ surname = in.readUTF(); zipcode = in.readUTF(); dateofBirth = DataSerializer.readDate(in); }
From source file:org.apache.hadoop.hdfs.server.datanode.BlockCrcInfoWritable.java
@Override public void readFields(DataInput in) throws IOException { this.blockId = in.readLong(); this.blockGenStamp = in.readLong(); this.blockCrc = in.readInt(); }
From source file:org.apache.tez.runtime.api.impl.TestTezEvent.java
private ArrayList<TezEvent> deserializeEvents(DataInput in) throws IOException { int eventsCount = in.readInt(); ArrayList<TezEvent> events = new ArrayList<TezEvent>(eventsCount); for (int i = 0; i < eventsCount; ++i) { TezEvent e = new TezEvent(); e.readFields(in);/*from w ww . j a v a 2 s. com*/ events.add(e); } return events; }
From source file:com.chinamobile.bcbsp.comm.BSPMessagesPack.java
@Override public void readFields(DataInput in) throws IOException { int i = 0;/*from w w w.j a v a 2s . c o m*/ IMessage bspMsg = null; int length = in.readInt(); pack = new ArrayList<IMessage>(); try { for (int j = 0; j < length; j++) { bspMsg = CommunicationFactory.createBspMessage(); bspMsg.readFields(in); pack.add(bspMsg); } } catch (Exception e) { throw new RuntimeException("[RPC BSPMsgPack write Exception]", e); } return; }