@Test public void testBuilder() { String prefix = "rya_"; String auth = "U"; String visibility = "U"; String user = "user"; String password = "password"; String instance = "instance"; String zookeeper = "zookeeper"; boolean useMock = false; boolean useComposite = true; boolean usePrefixHash = true; boolean useInference = true; boolean displayPlan = false; AccumuloIndexingConfiguration conf = AccumuloIndexingConfiguration.builder() .setAuths(auth) .setVisibilities(visibility) .setRyaPrefix(prefix) .setUseInference(useInference) .setUseCompositeCardinality(useComposite) .setDisplayQueryPlan(displayPlan) .setAccumuloInstance(instance) .setAccumuloPassword(password) .setAccumuloUser(user) .setAccumuloZooKeepers(zookeeper) .setUseMockAccumulo(useMock) .setUseAccumuloPrefixHashing(usePrefixHash) .setAccumuloFreeTextPredicates("http: .setAccumuloTemporalPredicates("http: .setUseAccumuloTemporalIndex(true) .setUseAccumuloEntityIndex(true) .setUseAccumuloFreetextIndex(true) .setPcjUpdaterFluoAppName("fluo") .setUseOptimalPcj(true) .setPcjTables("table1", "table2").build(); assertEquals(conf.getTablePrefix(), prefix); assertEquals(conf.getCv(), visibility); assertEquals(conf.getAuthorizations(), new Authorizations(auth)); assertEquals(conf.isInfer(), useInference); assertEquals(conf.isUseCompositeCardinality(), useComposite); assertEquals(conf.isDisplayQueryPlan(), displayPlan); assertEquals(conf.getAccumuloInstance(), instance); assertEquals(conf.getAccumuloPassword(), password); assertEquals(conf.getAccumuloUser(), user); assertEquals(conf.getAccumuloZookeepers(), zookeeper); assertEquals(conf.getUseMockAccumulo(), useMock); assertEquals(conf.isPrefixRowsWithHash(), usePrefixHash); assertTrue( Arrays.equals(conf.getAccumuloFreeTextPredicates(), new String[] { "http: assertTrue( Arrays.equals(conf.getAccumuloTemporalPredicates(), new String[] { "http: assertEquals(conf.getPcjTables(), Arrays.asList("table1", "table2")); assertEquals(conf.getUsePCJ(), false); assertEquals(conf.getUseOptimalPCJ(), true); assertEquals(conf.getUseEntity(), true); assertEquals(conf.getUseFreetext(), true); assertEquals(conf.getUseTemporal(), true); assertEquals(conf.getUsePCJUpdater(), true); assertEquals(conf.getFluoAppUpdaterName(), "fluo"); }
public static AccumuloIndexingConfigBuilder builder() { return new AccumuloIndexingConfigBuilder(); }
AccumuloIndexingConfiguration extends AccumuloRdfConfiguration { public static AccumuloIndexingConfigBuilder builder() { return new AccumuloIndexingConfigBuilder(); } }
AccumuloIndexingConfiguration extends AccumuloRdfConfiguration { public static AccumuloIndexingConfigBuilder builder() { return new AccumuloIndexingConfigBuilder(); } private  AccumuloIndexingConfiguration(); }
AccumuloIndexingConfiguration extends AccumuloRdfConfiguration { public static AccumuloIndexingConfigBuilder builder() { return new AccumuloIndexingConfigBuilder(); } private  AccumuloIndexingConfiguration(); static AccumuloIndexingConfigBuilder builder(); static AccumuloIndexingConfiguration fromProperties(final Properties props); void setUseEntity(final boolean useEntity); boolean getUseEntity(); void setUseTemporal(final boolean useTemporal); boolean getUseTemporal(); boolean getUseFreetext(); void setUseFreetext(final boolean useFreetext); boolean getUsePCJUpdater(); void setUsePCJUpdater(final boolean usePCJUpdater); void setFluoAppUpdaterName(final String fluoAppName); String getFluoAppUpdaterName(); void setUsePCJ(final boolean usePCJ); boolean getUsePCJ(); void setUseOptimalPCJ(final boolean useOptimalPCJ); boolean getUseOptimalPCJ(); void setAccumuloFreeTextPredicates(final String[] predicates); String[] getAccumuloFreeTextPredicates(); void setAccumuloTemporalPredicates(final String[] predicates); String[] getAccumuloTemporalPredicates(); }
AccumuloIndexingConfiguration extends AccumuloRdfConfiguration { public static AccumuloIndexingConfigBuilder builder() { return new AccumuloIndexingConfigBuilder(); } private  AccumuloIndexingConfiguration(); static AccumuloIndexingConfigBuilder builder(); static AccumuloIndexingConfiguration fromProperties(final Properties props); void setUseEntity(final boolean useEntity); boolean getUseEntity(); void setUseTemporal(final boolean useTemporal); boolean getUseTemporal(); boolean getUseFreetext(); void setUseFreetext(final boolean useFreetext); boolean getUsePCJUpdater(); void setUsePCJUpdater(final boolean usePCJUpdater); void setFluoAppUpdaterName(final String fluoAppName); String getFluoAppUpdaterName(); void setUsePCJ(final boolean usePCJ); boolean getUsePCJ(); void setUseOptimalPCJ(final boolean useOptimalPCJ); boolean getUseOptimalPCJ(); void setAccumuloFreeTextPredicates(final String[] predicates); String[] getAccumuloFreeTextPredicates(); void setAccumuloTemporalPredicates(final String[] predicates); String[] getAccumuloTemporalPredicates();  }