/** * Tells the Rya instance to use a Mock instance of Accumulo as its backing. * */ public void setUseMockAccumulo(boolean useMock) { setBoolean(USE_MOCK_INSTANCE, useMock); }
/** * Tells the Rya instance to use a Mock instance of Accumulo as its backing. * */ public void setUseMockAccumulo(final boolean useMock) { setBoolean(USE_MOCK_INSTANCE, useMock); }
public void setFlush(final boolean flush){ setBoolean(CONF_FLUSH_EACH_UPDATE, flush); }
public void setFlush(boolean flush){ setBoolean(CONF_FLUSH_EACH_UPDATE, flush); }
aconf.setBoolean(ConfigUtils.USE_MOCK_INSTANCE, mock); aconf.setTablePrefix(tablePrefix); aconf.setFlush(false);
private static AccumuloRdfConfiguration getConf() { AccumuloRdfConfiguration conf; Set<RyaIRI> propertySet = new HashSet<RyaIRI>(Arrays.asList(new RyaIRI("http://createdBy"), new RyaIRI("http://createdOn"), new RyaIRI("http://hasTimeStamp"))); conf = new AccumuloRdfConfiguration(); conf.setDisplayQueryPlan(false); conf.setBoolean(ConfigUtils.USE_MOCK_INSTANCE, true); conf.set(RdfCloudTripleStoreConfiguration.CONF_TBL_PREFIX, "rya_"); conf.set(ConfigUtils.CLOUDBASE_USER, "root"); conf.set(ConfigUtils.CLOUDBASE_PASSWORD, ""); conf.set(ConfigUtils.CLOUDBASE_INSTANCE, "instance"); conf.set(ConfigUtils.CLOUDBASE_AUTHS, ""); conf.setUseStatementMetadata(true); conf.setStatementMetadataProperties(propertySet); return conf; }
@Override protected void setup(final Context context) throws IOException, InterruptedException { super.setup(context); // Set up a mock child DAO for caching serialized statements childAccumuloRdfConfiguration.setBoolean(MRUtils.AC_MOCK_PROP, true); childUser = "root"; childAccumuloRdfConfiguration.set(MRUtils.AC_USERNAME_PROP, childUser); childAccumuloRdfConfiguration.set(MRUtils.AC_PWD_PROP, ""); MergeTool.setDuplicateKeys(childAccumuloRdfConfiguration); childConnector = AccumuloRyaUtils.setupConnector(childAccumuloRdfConfiguration); childDao = AccumuloRyaUtils.setupDao(childConnector, childAccumuloRdfConfiguration); copyAuthorizations(); addMetadataKeys(context); // call in super.setup() does nothing, has to be done after DAO is initialized // Determine the size of the cache maxStatements = childAccumuloRdfConfiguration.getInt(MAX_STATEMENTS_PROP, MAX_STATEMENTS_DEFAULT); }
conf.setDisplayQueryPlan(true); conf.setBoolean(USE_MOCK_INSTANCE, true); conf.set(RdfCloudTripleStoreConfiguration.CONF_TBL_PREFIX, RYA_TABLE_PREFIX); conf.set(CLOUDBASE_USER, "root");
conf.setTablePrefix(getRyaInstanceName()); conf.setDisplayQueryPlan(true); conf.setBoolean(ConfigUtils.USE_MOCK_INSTANCE, false); conf.set(ConfigUtils.CLOUDBASE_USER, clusterInstance.getUsername()); conf.set(ConfigUtils.CLOUDBASE_PASSWORD, clusterInstance.getPassword());
conf.setTablePrefix(getRyaInstanceName()); conf.setDisplayQueryPlan(true); conf.setBoolean(ConfigUtils.USE_MOCK_INSTANCE, false); conf.set(ConfigUtils.CLOUDBASE_USER, clusterInstance.getUsername()); conf.set(ConfigUtils.CLOUDBASE_PASSWORD, clusterInstance.getPassword());