Skip to content

Instantly share code, notes, and snippets.

@puneetlakhina
Created May 9, 2012 22:06
Show Gist options
  • Save puneetlakhina/2649256 to your computer and use it in GitHub Desktop.
Save puneetlakhina/2649256 to your computer and use it in GitHub Desktop.
Adapter.java
public void open() {
new Thread() {
public void run() {
loadData((Schema)null, _file);
}
}.start();
}
@Override
protected boolean processRecord(GenericRecord data) {
adapterQueue.put(data);
return true;
}
protected AvroRecord read() {
return adapterQueue.take();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment