private void readObject(final ObjectInputStream inputStream) throws IOException, ClassNotFoundException { this.readFields(inputStream); }
@Override public int compare(byte[] bytes, int i, int i1, byte[] bytes1, int i2, int i3) { try { this.objectWritable1.readFields(new DataInputStream(new ByteArrayInputStream(bytes, i, i1))); this.objectWritable2.readFields(new DataInputStream(new ByteArrayInputStream(bytes1, i2, i3))); //System.out.println(objectWritable1 + "<=>" + objectWritable2 + ":::" + this.comparator.compare(objectWritable1.get(), objectWritable2.get())); return this.comparator.compare(this.objectWritable1.get(), this.objectWritable2.get()); } catch (final Exception e) { LOGGER.error(e.getMessage()); throw new IllegalStateException(e.getMessage()); } }
private void readObject(final ObjectInputStream inputStream) throws IOException, ClassNotFoundException { this.readFields(inputStream); }
@Override public int compare(byte[] bytes, int i, int i1, byte[] bytes1, int i2, int i3) { try { this.objectWritable1.readFields(new DataInputStream(new ByteArrayInputStream(bytes, i, i1))); this.objectWritable2.readFields(new DataInputStream(new ByteArrayInputStream(bytes1, i2, i3))); //System.out.println(objectWritable1 + "<=>" + objectWritable2 + ":::" + this.comparator.compare(objectWritable1.get(), objectWritable2.get())); return this.comparator.compare(this.objectWritable1.get(), this.objectWritable2.get()); } catch (final Exception e) { LOGGER.error(e.getMessage()); throw new IllegalStateException(e.getMessage()); } }