@Override public boolean readBool() throws IOException { try { return input.readBoolean(); } catch (KryoException e) { throw new IOException(e); } }
@Override public boolean readBool() throws IOException { try { return input.readBoolean(); } catch (KryoException e) { throw new IOException(e); } }
@Override public PyBoolean read(Kryo kryo, Input input, Class<PyBoolean> type) { return new PyBoolean(input.readBoolean()); } }
@Override public BitSet read(final Kryo kryo, final Input input, final Class<BitSet> bitSetClass) { final int len = input.readInt(true); final BitSet ret = new BitSet(len); for (int i = 0; i < len; i++) { ret.set(i, input.readBoolean()); } return ret; } }
targetTaskId = input.readInt(); timeStamp = input.readLong(); isBatchTuple = input.readBoolean(); taskId = input.readInt(true); streamId = input.readInt(true);
@Override public boolean readBoolean() { return unshadedInput.readBoolean(); } }
@Override public User read(Kryo kryo, Input input, Class<User> type) { final String password = input.readString(); final String username = input.readString(); final int size = input.readInt(true); final List<GrantedAuthority> authorities = new ArrayList<GrantedAuthority>(size); for (int i = 0; i < size; i++) { authorities.add((GrantedAuthority)_kryo.readClassAndObject(input)); } final boolean accountNonExpired = input.readBoolean(); final boolean accountNonLocked = input.readBoolean(); final boolean credentialsNonExpired = input.readBoolean(); final boolean enabled = input.readBoolean(); return new User(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities); }
private static <T, S extends Geometry> RTree<T, S> read(Input input) { Context<T, S> context = readContext(input); boolean hasRoot = input.readBoolean(); int size = input.readInt(); final Optional<Node<T, S>> root; if (hasRoot) { root = Optional.of(SerializerKryo.<T, S>readNode(input)); } else { root = Optional.absent(); } return SerializerHelper.create(root, size, context); }
@Override public boolean readBool() throws IOException { try { return input.readBoolean(); } catch (KryoException e) { throw new IOException(e); } }
public boolean readBool() throws IOException { try { return input.readBoolean(); } catch (KryoException e) { throw new IOException(e); } }
public boolean[] read (Kryo kryo, Input input, Class<boolean[]> type) { int length = input.readVarInt(true); if (length == NULL) return null; boolean[] array = new boolean[--length]; for (int i = 0; i < length; i++) array[i] = input.readBoolean(); return array; }
public OptionalInt read (Kryo kryo, Input input, Class<OptionalInt> type) { boolean present = input.readBoolean(); return present ? OptionalInt.of(input.readInt()) : OptionalInt.empty(); } }
public boolean[] read (Kryo kryo, Input input, Class<boolean[]> type) { int length = input.readVarInt(true); if (length == NULL) return null; boolean[] array = new boolean[--length]; for (int i = 0; i < length; i++) array[i] = input.readBoolean(); return array; }
@Override public BitSet read(final Kryo kryo, final Input input, final Class<? extends BitSet> bitSetClass) { final int len = input.readInt(true); final BitSet ret = new BitSet(len); for(int i = 0; i < len; i++) { ret.set(i, input.readBoolean()); } return ret; } }
@Override public BitSet read(final Kryo kryo, final Input input, final Class<? extends BitSet> bitSetClass) { final int len = input.readInt(true); final BitSet ret = new BitSet(len); for(int i = 0; i < len; i++) { ret.set(i, input.readBoolean()); } return ret; } }
public void read (Input input, Object object) { try { field.setBoolean(object, input.readBoolean()); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } }
public OptionalLong read (Kryo kryo, Input input, Class<OptionalLong> type) { boolean present = input.readBoolean(); return present ? OptionalLong.of(input.readLong()) : OptionalLong.empty(); } }
public OptionalDouble read (Kryo kryo, Input input, Class<OptionalDouble> type) { boolean present = input.readBoolean(); return present ? OptionalDouble.of(input.readDouble()) : OptionalDouble.empty(); } }
public Calendar read (Kryo kryo, Input input, Class<Calendar> type) { Calendar result = Calendar.getInstance(timeZoneSerializer.read(kryo, input, TimeZone.class)); result.setTimeInMillis(input.readLong(true)); result.setLenient(input.readBoolean()); result.setFirstDayOfWeek(input.readInt(true)); result.setMinimalDaysInFirstWeek(input.readInt(true)); long gregorianChange = input.readLong(false); if (gregorianChange != DEFAULT_GREGORIAN_CUTOVER) if (result instanceof GregorianCalendar) ((GregorianCalendar)result).setGregorianChange(new Date(gregorianChange)); return result; }
public Calendar read (Kryo kryo, Input input, Class<Calendar> type) { Calendar result = Calendar.getInstance(timeZoneSerializer.read(kryo, input, TimeZone.class)); result.setTimeInMillis(input.readLong(true)); result.setLenient(input.readBoolean()); result.setFirstDayOfWeek(input.readInt(true)); result.setMinimalDaysInFirstWeek(input.readInt(true)); long gregorianChange = input.readLong(false); if (gregorianChange != DEFAULT_GREGORIAN_CUTOVER) if (result instanceof GregorianCalendar) ((GregorianCalendar)result).setGregorianChange(new Date(gregorianChange)); return result; }