in modules/accumulo/src/main/java/org/apache/fluo/accumulo/util/ColumnType.java [69:89]
public static ColumnType from(long timestamp) {
byte prefix = (byte) (timestamp >>> (64 - BITS));
switch (prefix) {
case TX_DONE_PREFIX:
return TX_DONE;
case WRITE_PREFIX:
return WRITE;
case DEL_LOCK_PREFIX:
return DEL_LOCK;
case RLOCK_PREFIX:
return RLOCK;
case LOCK_PREFIX:
return LOCK;
case ACK_PREFIX:
return ACK;
case DATA_PREFIX:
return DATA;
default:
throw new IllegalArgumentException("Unknown prefix : " + Integer.toHexString(prefix));
}
}