Skip to content

Instantly share code, notes, and snippets.

@sritchie
Created July 8, 2011 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sritchie/1072541 to your computer and use it in GitHub Desktop.
Save sritchie/1072541 to your computer and use it in GitHub Desktop.
public class SplitDataChunkPailStructure extends DataChunkPailStructure {
@Override
public List<String> getTarget(DataChunk t) {
List<String> ret = new ArrayList<String>();
ret.add(t.getDataset());
ret.add(t.getTemporalRes());
return ret;
}
@Override
public boolean isValidTarget(String[] dirs) {
if(dirs.length==0) return false;
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment