@Override public long hash(Block block, int position) { throw new UnsupportedOperationException(getTypeSignature() + " type is not comparable"); }
private static int sortAbstractLongArray(Block array, long[] buffer, AbstractType type) { int arraySize = array.getPositionCount(); int nonNullSize = 0; for (int i = 0; i < arraySize; i++) { if (!array.isNull(i)) { buffer[nonNullSize++] = type.getLong(array, i); } } for (int i = 1; i < nonNullSize; i++) { if (buffer[i - 1] > buffer[i]) { Arrays.sort(buffer, 0, nonNullSize); break; } } return nonNullSize; } }
@Override public boolean equalTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition) { throw new UnsupportedOperationException(getTypeSignature() + " type is not comparable"); }
@Override public int compareTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition) { throw new UnsupportedOperationException(getTypeSignature() + " type is not orderable"); }
@Override public String toString() { return getTypeSignature().toString(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } return this.getTypeSignature().equals(((Type) o).getTypeSignature()); }
@Override public long hash(Block block, int position) { throw new UnsupportedOperationException(getTypeSignature() + " type is not comparable"); }
@Override public int compareTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition) { throw new UnsupportedOperationException(getTypeSignature() + " type is not orderable"); }
@Override public boolean equalTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition) { throw new UnsupportedOperationException(getTypeSignature() + " type is not comparable"); }
@Override public String toString() { return getTypeSignature().toString(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } return this.getTypeSignature().equals(((Type) o).getTypeSignature()); }