@Override public void readFields(DataInput input) throws IOException { this.triple.clear(); int tripleLength = input.readInt(); byte[] buffer = new byte[tripleLength]; input.readFully(buffer); try { ThriftConverter.fromBytes(buffer, this.triple); } catch (TException e) { throw new IOException(e); } this.setInternal(new Triple(ThriftConvert.convert(this.triple.getS()), ThriftConvert.convert(this.triple.getP()), ThriftConvert.convert(this.triple.getO()))); }
@Override public void readFields(DataInput input) throws IOException { this.triple.clear(); int tripleLength = input.readInt(); byte[] buffer = new byte[tripleLength]; input.readFully(buffer); try { ThriftConverter.fromBytes(buffer, this.triple); } catch (TException e) { throw new IOException(e); } this.setInternal(new Triple(ThriftConvert.convert(this.triple.getS()), ThriftConvert.convert(this.triple.getP()), ThriftConvert.convert(this.triple.getO()))); }