* @throws IOException in case of an error.
*/
private int getByHash() throws IOException {
final KijiSchemaTable table = mKiji.getSchemaTable();
final BytesKey bytesKey = new BytesKey(ByteArrayFormatter.parseHex(mGetByHashFlag, ':'));
final SchemaEntry sEntry = table.getSchemaEntry(bytesKey);
final Schema schema = sEntry.getSchema();
if (isInteractive()) {
getPrintStream().print("Schema ID for the given schema is: ");
}
getPrintStream().println(sEntry.getId());
if (mOutputFlag != null && !mOutputFlag.isEmpty()) {
// Attempt to write the definition to the output file.
try {
if (writeDefinitionToFile(schema)) {
if (isInteractive()) {