Skip to content

Instantly share code, notes, and snippets.

@spullara
Created October 2, 2010 00:51
Show Gist options
  • Select an option

  • Save spullara/607121 to your computer and use it in GitHub Desktop.

Select an option

Save spullara/607121 to your computer and use it in GitHub Desktop.
KeyValue[] raw = result.raw();
for (KeyValue kv : raw) {
byte[] value = kv.getValue();
switch(kv.getBuffer()[kv.getQualifierOffset()]) {
case DATA_COLUMN_BYTE:
dataBytes = value;
break;
case VERSION_COLUMN_BYTE:
versionBytes = value;
break;
case FORMAT_COLUMN_BYTE:
formatBytes = value;
break;
case SEQUENCE_COLUMN_BYTE:
schemaBytes = value;
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment