| 27 | import org.apache.pig.builtin.PigStorage; |
| 28 | |
| 29 | public class PigStorageWithSchema extends PigStorage implements LoadMetadata { |
| 30 | private String signature; |
| 31 | |
| 32 | @Override |
| 33 | public String[] getPartitionKeys(String location, Job job) |
| 34 | throws IOException { |
| 35 | return null; |
| 36 | } |
| 37 | |
| 38 | @Override |
| 39 | public ResourceSchema getSchema(String location, Job job) |
| 40 | throws IOException { |
| 41 | return null; |
| 42 | } |
| 43 | |
| 44 | @Override |
| 45 | public ResourceStatistics getStatistics(String location, Job job) |
| 46 | throws IOException { |
| 47 | return null; |
| 48 | } |
| 49 | |
| 50 | @Override |
| 51 | public void setPartitionFilter(Expression partitionFilter) |
| 52 | throws IOException { |
| 53 | } |
| 54 | |
| 55 | @Override |
| 56 | public void setUDFContextSignature(String signature) { |
| 57 | super.setUDFContextSignature(signature); |
| 58 | this.signature = signature; |
| 59 | } |
| 60 | |
| 61 | public String getUDFContextSignature() { |
| 62 | return signature; |
| 63 | } |
| 64 | } |
nothing calls this directly
no outgoing calls
no test coverage detected