@Override public WritableSerializer<T> duplicate() { return new WritableSerializer<T>(typeClass); }
@Override public boolean equals(Object obj) { if (obj instanceof WritableSerializer) { WritableSerializer<?> other = (WritableSerializer<?>) obj; return other.canEqual(this) && typeClass == other.typeClass; } else { return false; } }
@Override public T copy(T from) { checkKryoInitialized(); return KryoUtils.copy(from, kryo, this); }
@Override public T deserialize(DataInputView source) throws IOException { return deserialize(createInstance(), source); }
private void ensureInstanceInstantiated() { if (copyInstance == null) { copyInstance = createInstance(); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { ensureInstanceInstantiated(); copyInstance.readFields(source); copyInstance.write(target); }
@Override public T deserialize(DataInputView source) throws IOException { return deserialize(createInstance(), source); }
private void ensureInstanceInstantiated() { if (copyInstance == null) { copyInstance = createInstance(); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { ensureInstanceInstantiated(); copyInstance.readFields(source); copyInstance.write(target); }
@Override @PublicEvolving public TypeSerializer<T> createSerializer(ExecutionConfig executionConfig) { return new WritableSerializer<T>(typeClass); }
@Override public T deserialize(DataInputView source) throws IOException { return deserialize(createInstance(), source); }
@Override public T copy(T from, T reuse) { checkKryoInitialized(); return KryoUtils.copy(from, reuse, kryo, this); }
private void ensureInstanceInstantiated() { if (copyInstance == null) { copyInstance = createInstance(); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { ensureInstanceInstantiated(); copyInstance.readFields(source); copyInstance.write(target); }
@Override public boolean equals(Object obj) { if (obj instanceof WritableSerializer) { WritableSerializer<?> other = (WritableSerializer<?>) obj; return other.canEqual(this) && typeClass == other.typeClass; } else { return false; } }
@Override protected TypeSerializer<StringArrayWritable> createSerializer() { return new WritableSerializer<StringArrayWritable>(StringArrayWritable.class); }
@Override public T deserialize(DataInputView source) throws IOException { return deserialize(createInstance(), source); }
@Override public T copy(T from) { checkKryoInitialized(); return KryoUtils.copy(from, kryo, this); }
private void ensureInstanceInstantiated() { if (copyInstance == null) { copyInstance = createInstance(); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { ensureInstanceInstantiated(); copyInstance.readFields(source); copyInstance.write(target); }