コード例 #1
0
 @Override
 protected void createPartitionSublists() {
   List<String> fileLocations =
       ((FormatSelection) scanRel.getDrillTable().getSelection()).getAsFiles();
   List<PartitionLocation> locations = new LinkedList<>();
   for (String file : fileLocations) {
     locations.add(new DFSPartitionLocation(MAX_NESTED_SUBDIRS, getBaseTableLocation(), file));
   }
   locationSuperList = Lists.partition(locations, PartitionDescriptor.PARTITION_BATCH_SIZE);
   sublistsCreated = true;
 }
コード例 #2
0
 @Override
 public GroupScan createNewGroupScan(List<String> newFiles) throws IOException {
   final FileSelection newSelection = FileSelection.create(null, newFiles, getBaseTableLocation());
   final FileGroupScan newScan = ((FileGroupScan) scanRel.getGroupScan()).clone(newSelection);
   return newScan;
 }
コード例 #3
0
 private String getBaseTableLocation() {
   final FormatSelection origSelection = (FormatSelection) scanRel.getDrillTable().getSelection();
   return origSelection.getSelection().selectionRoot;
 }