ACCUMULO-2647 changed if/then/else to switch statement

Signed-off-by: Sean Busbey <busbey@cloudera.com>