@Override public Object clone() throws CloneNotSupportedException { SortSpec key = (SortSpec) super.clone(); key.sortKey = sortKey; key.ascending = ascending; key.nullFirst = nullFirst; return key; }
public static boolean isVectorizable(SortSpec[] sortKeys) { if (sortKeys.length == 0) { return false; } for (SortSpec spec : sortKeys) { try { vectorType(spec.getSortKey().getDataType().getType()); } catch (Exception e) { return false; } } return true; }