public APIResult addPartitionsToFact(String table, String storage, String partsSpec) { return mc.addPartitionsToFactTable(table, storage, partsSpec); }
public APIResult addPartitionsToFact(String table, String storage, XPartitionList xpList) { return mc.addPartitionsToFactTable(table, storage, xpList); }
public APIResult addPartitionsToFact(String table, String storage, String partsSpec) { return mc.addPartitionsToFactTable(table, storage, partsSpec); }
public APIResult addPartitionsToFact(String table, String storage, XPartitionList xpList) { return mc.addPartitionsToFactTable(table, storage, xpList); }
public APIResult addPartitionsToFactTable(String fact, String storage, String partitionsSpec) { try { return addPartitionsToFactTable(fact, storage, (XPartitionList) readFromXML(partitionsSpec)); } catch (JAXBException | IOException e) { return failureAPIResult(e); } }
public APIResult addPartitionsToFactTable(String fact, String storage, String partitionsSpec) { try { return addPartitionsToFactTable(fact, storage, (XPartitionList) readFromXML(partitionsSpec)); } catch (JAXBException | IOException e) { return failureAPIResult(e); } }
private void createFactPartitions(String fileName, String fact, String storage) throws JAXBException, IOException { XPartitionList partitionList = (XPartitionList) SampleMetastore.readFromXML(fileName); for (XPartition partition : partitionList.getPartition()) { String partLocation = partition.getLocation(); if (!partLocation.startsWith("/")) { partition.setLocation("file://" + System.getProperty("lens.home") + "/" + partLocation); } } result = metaClient.addPartitionsToFactTable(fact, storage, partitionList); if (result.getStatus().equals(APIResult.Status.FAILED)) { System.err.println("Adding partitions from:" + fileName + " failed"); retCode = 1; } else { System.out.println("Added partitions from:" + fileName); } }