JobConf extends Configuration { public void addInput(TableInfo tbl) throws IOException { addInput(tbl, tbl.getCols()); } JobConf();  JobConf(Configuration conf); @Deprecated  JobConf(Configuration conf, JobState js); @Deprecated  JobConf(String config); @Deprecated  JobConf(boolean loadDefaults); void addCacheResources(String resourceNames); void addCacheResourcesToClassPath(String resourceNames); void addInput(TableInfo tbl); void addInput(TableInfo tbl, String[] cols); void addOutput(TableInfo tbl); void addOutput(TableInfo tbl, boolean overwrite); void setJobPriority(int priority); int getJobPriority(); long getSplitSize(); void setSplitSize(long size); int getWorkerCPU(); void setWorkerCPU(int cpu); void setWorkerMemory(int mem); int getWorkerMemory(); void setLogLevel(String level); @SuppressWarnings("rawtypes") void setGraphLoaderClass(Class<? extends GraphLoader> cls); @SuppressWarnings("rawtypes") Class<? extends GraphLoader> getGraphLoaderClass(); @SuppressWarnings("rawtypes") void setVertexClass(Class<? extends Vertex> cls); @SuppressWarnings("rawtypes") Class<? extends Vertex> getVertexClass(); @SuppressWarnings("rawtypes") void setWorkerComputerClass(Class<? extends WorkerComputer> cls); @SuppressWarnings("rawtypes") Class<? extends WorkerComputer> getWorkerComputerClass(); @SuppressWarnings("rawtypes") void setCombinerClass(Class<? extends Combiner> cls); @SuppressWarnings("rawtypes") Class<? extends Combiner> getCombinerClass(); @SuppressWarnings("rawtypes") void setPartitionerClass(Class<? extends Partitioner> cls); @SuppressWarnings("rawtypes") Class<? extends Partitioner> getPartitionerClass(); @SuppressWarnings({"rawtypes", "unchecked"}) void setAggregatorClass(Class<? extends Aggregator> cls); @SuppressWarnings("rawtypes") void setAggregatorClass(Class<? extends Aggregator>... cls); void setAggregatorOwnerPartitionerClass(Class<? extends AggregatorOwnerPartitioner> cls); Class<? extends AggregatorOwnerPartitioner> getAggregatorOwnerPartitionerClass(); void setUseTreeAggregator(boolean useTreeAggregator); boolean getUseTreeAggregator(); void setAggregatorTreeDepth(int depth); int getAggregatorTreeDepth(); void setRuntimePartitioning(boolean runtimePartitioning); boolean getRuntimePartitioning(); void setMaxIteration(int maxIteration); int getMaxIteration(); @SuppressWarnings("rawtypes") void setLoadingVertexResolver(Class<? extends LoadingVertexResolver> cls); @SuppressWarnings("rawtypes") @Deprecated void setLoadingVertexResolverClass(Class<? extends VertexResolver> cls); @SuppressWarnings("rawtypes") Class<? extends VertexResolver> getLoadingVertexResolver(); @SuppressWarnings("rawtypes") @Deprecated Class<? extends VertexResolver> getLoadingVertexResolverClass(); @SuppressWarnings("rawtypes") @Deprecated void setComputingVertexResolverClass(
      Class<? extends VertexResolver> cls); @SuppressWarnings("rawtypes") @Deprecated Class<? extends VertexResolver> getComputingVertexResolverClass(); @SuppressWarnings("rawtypes") void setComputingVertexResolver(
      Class<? extends ComputingVertexResolver> cls); @SuppressWarnings("rawtypes") Class<? extends ComputingVertexResolver> getComputingVertexResolver(); void setCheckpointSuperstepFrequency(int frequency); void setSyncBetweenResolveCompute(boolean is_sync); boolean getSyncBetweenResolveCompute(); void setNumWorkers(int n); int getNumWorkers(); void setMemoryThreshold(float threshold); float getMemoryThreshold(); void setUseDiskBackedMessage(boolean useDiskBackedMessage); boolean getUseDiskBackedMessage(); void setUseDiskBackedMutation(boolean useDiskBackedMutation); boolean getUseDiskBackedMutation(); void setBroadcastMessageEnable(boolean broadcastMessageEnable); boolean getBroadcastMessageEnable(); void setUseMultipleInputOutput(boolean useMultipleInputOutput); boolean getUseMultipleInputOutput();  }
@Test public void testStrip() throws IOException { JobConf conf = new JobConf(); TableInfo t = TableInfo.builder().tableName("bbb").partSpec("ds='20140511'").build(); conf.addInput(t); String input = conf.get(GRAPH_CONF.INPUT_DESC); String jsonStr = "[{\"projName\":\"\",\"tblName\":\"bbb\",\"partSpec\":[\"ds=20140511\"],\"cols\":\"\"}]"; assertEquals(jsonStr, input); }