HCatPartitionSpec.HCatPartitionIterator targetIterator = targetPartitionSpec.getPartitionIterator(); while (targetIterator.hasNext()) { assertTrue("Fewer target partitions than source.", sourceIterator.hasNext()); HCatPartition sourcePartition = sourceIterator.next(); HCatPartition targetPartition = targetIterator.next(); assertEquals("Column schema doesn't match.", sourcePartition.getColumns(), targetPartition.getColumns()); assertEquals("InputFormat doesn't match.", sourcePartition.getInputFormat(), targetPartition.getInputFormat());
/** * Getter for an Iterator to the first HCatPartition in the HCatPartitionSpec. * @return HCatPartitionIterator to the first HCatPartition. */ public HCatPartitionIterator getPartitionIterator() { return new HCatPartitionIterator(hcatTable, partitionSpecProxy.getPartitionIterator()); }
/** * Getter for an Iterator to the first HCatPartition in the HCatPartitionSpec. * @return HCatPartitionIterator to the first HCatPartition. */ public HCatPartitionIterator getPartitionIterator() { return new HCatPartitionIterator(hcatTable, partitionSpecProxy.getPartitionIterator()); }
/** * Getter for an Iterator to the first HCatPartition in the HCatPartitionSpec. * @return HCatPartitionIterator to the first HCatPartition. */ public HCatPartitionIterator getPartitionIterator() { return new HCatPartitionIterator(hcatTable, partitionSpecProxy.getPartitionIterator()); }
/** * Getter for an Iterator to the first HCatPartition in the HCatPartitionSpec. * @return HCatPartitionIterator to the first HCatPartition. */ public HCatPartitionIterator getPartitionIterator() { return new HCatPartitionIterator(hcatTable, partitionSpecProxy.getPartitionIterator()); }