private boolean canTopKEliminated(OrderingScheme orderingScheme, long k, PlanNode child) {
    // if DeviceTableScanNode has limit <= K and with same order, we can directly return
    // DeviceTableScanNode
    if (child instanceof DeviceTableScanNode) {
      DeviceTableScanNode tableScanNode = (DeviceTableScanNode) child;
      return k >= tableScanNode.getPushDownLimit()
          && (!tableScanNode.isPushLimitToEachDevice()
              || (tableScanNode.isPushLimitToEachDevice()
                  && tableScanNode.getDeviceEntries().size() == 1))
          && canSortEliminated(orderingScheme, nodeOrderingMap.get(child.getPlanNodeId()));
    }
    return false;
  }
This class is used to generate distributed plan for table model.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/distribute/TableDistributedPlanGenerator.java