@Override public long readLong() throws IOException { try { return input.readLong(); } catch (KryoException e) { throw new IOException(e); } }
@Override public long readLong() throws IOException { try { return input.readLong(); } catch (KryoException e) { throw new IOException(e); } }
@Override public java.sql.Date read(Kryo kryo, Input input, Class<java.sql.Date> clazz) { return new java.sql.Date(input.readLong()); }
@Override public RichSpoutBatchId read(Kryo kryo, Input input, Class type) { long l = input.readLong(); return new RichSpoutBatchId(l); } }
@Override public RichSpoutBatchId read(Kryo kryo, Input input, Class type) { long l = input.readLong(); return new RichSpoutBatchId(l); } }
public static MessageId deserialize(Input in) throws IOException { int numAnchors = in.readInt(true); if (numAnchors == 0) { return null; } Map<Long, Long> anchorsToIds = new HashMap<>(); for (int i = 0; i < numAnchors; i++) { anchorsToIds.put(in.readLong(), in.readLong()); } return new MessageId(anchorsToIds); } }
@Override public Timestamp read(Kryo kryo, Input input, Class<Timestamp> clazz) { Timestamp ts = new Timestamp(input.readLong()); ts.setNanos(input.readInt()); return ts; }
@Override public TestClass read(Kryo kryo, Input input, Class<TestClass> aClass) { return new TestClass(input.readLong()); } }
@Override public TimestampTZ read(Kryo kryo, Input input, Class<TimestampTZ> type) { long seconds = input.readLong(); int nanos = input.readInt(); String zoneId = input.readString(); return new TimestampTZ(seconds, nanos, ZoneId.of(zoneId)); } }
@Override public TradeCustomer read(Kryo kryo, Input input, Class<TradeCustomer> arg2) { Pair custormer = kryo.readObject(input, Pair.class); Pair trade = kryo.readObject(input, Pair.class); long timeStamp = input.readLong(); String buffer = input.readString(); TradeCustomer inner = new TradeCustomer(timeStamp, trade, custormer, buffer); return inner; }
@Override public Pair read(Kryo kryo, Input input, Class<Pair> arg2) { long value = input.readLong(); String key = input.readString(); Pair inner = new Pair(); inner.setKey(key); inner.setValue(value); return inner; }
@Override @SuppressWarnings("unchecked") public CacheWrapper read(Kryo kryo, Input input, Class<CacheWrapper> type) { int expire = input.readInt(true); long lastLoadTime = input.readLong(true); Object o = kryo.readClassAndObject(input); CacheWrapper cacheWrapper = new CacheWrapper(); cacheWrapper.setCacheObject(o); cacheWrapper.setExpire(expire); cacheWrapper.setLastLoadTime(lastLoadTime); return cacheWrapper; }
@Override public long readLong() { return unshadedInput.readLong(); }
long batchId = kryoInput.readLong(true);
@Override public void read(Kryo kryo, Input input) { int digestSize = input.readInt(); byte[] digestBytes = input.readBytes(digestSize); ByteBuffer digestBuff = ByteBuffer.wrap(digestBytes); digest = AVLTreeDigest.fromBytes(digestBuff); n = input.readLong(); sum = input.readDouble(); sumOfSquares = input.readDouble(); sumOfLogs = input.readDouble(); min = input.readDouble(); max = input.readDouble(); M1 = input.readDouble(); M2 = input.readDouble(); M3 = input.readDouble(); M4 = input.readDouble(); } }
/** * {@inheritDoc} */ @Override public Timestamp read(Kryo kryo, Input input, Class<Timestamp> type) { return new Timestamp(input.readLong(true)); }