/** * Returns a FijiFactory for the appropriate type of Fiji (HBase or Cassandra), based on a URI. * * @param uri for the Fiji instance to build with the factory. * @return the default FijiFactory. */ public static FijiTableInputFormatFactory get(FijiURI uri) { FijiTableInputFormatFactory instance; String scheme = uri.getScheme(); if (scheme.equals(FijiURI.FIJI_SCHEME)) { scheme = HBaseFijiURI.HBASE_SCHEME; } synchronized (Fiji.Factory.class) { instance = Lookups .getNamed(FijiTableInputFormatFactory.class) .lookup(scheme); assert (null != instance); } return instance; } }