Example #1
0
  @Override
  public Object clone() throws CloneNotSupportedException {
    SortSpec key = (SortSpec) super.clone();
    key.sortKey = sortKey;
    key.ascending = ascending;
    key.nullFirst = nullFirst;

    return key;
  }
Example #2
0
 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;
 }