RegionFunctionArgs implements Serializable { public boolean hasPartitionAttributes() { return this.partitionArgs != null && this.partitionArgs.hasPartitionAttributes(); } RegionFunctionArgs(); void setRegionPath(String regionPath); void setTemplateRegion(String templateRegion); void setRegionShortcut(RegionShortcut regionShortcut); void setIfNotExists(boolean ifNotExists); void setKeyConstraint(String keyConstraint); void setValueConstraint(String valueConstraint); void setStatisticsEnabled(Boolean statisticsEnabled); void setEntryExpirationIdleTime(Integer timeout, ExpirationAction action); void setEntryExpirationTTL(Integer timeout, ExpirationAction action); void setRegionExpirationIdleTime(Integer timeout, ExpirationAction action); void setRegionExpirationTTL(Integer timeout, ExpirationAction action); void setEvictionAttributes(String action, Integer maxMemory, Integer maxEntryCount,
      String objectSizer); void setDiskStore(String diskStore); void setDiskSynchronous(Boolean diskSynchronous); void setEnableAsyncConflation(Boolean enableAsyncConflation); void setEnableSubscriptionConflation(Boolean enableSubscriptionConflation); void setCacheListeners(ClassName[] cacheListeners); void setCacheLoader(ClassName cacheLoader); void setCacheWriter(ClassName cacheWriter); void setAsyncEventQueueIds(String[] asyncEventQueueIds); void setGatewaySenderIds(String[] gatewaySenderIds); void setConcurrencyChecksEnabled(Boolean concurrencyChecksEnabled); void setCloningEnabled(Boolean cloningEnabled); void setMcastEnabled(Boolean mcastEnabled); void setConcurrencyLevel(Integer concurrencyLevel); void setPartitionArgs(String prColocatedWith, Integer prLocalMaxMemory,
      Long prRecoveryDelay, Integer prRedundantCopies, Long prStartupRecoveryDelay,
      Long prTotalMaxMemory, Integer prTotalNumBuckets, String partitionResolver); void setEvictionMax(Integer evictionMax); void setCompressor(String compressor); void setOffHeap(Boolean offHeap); void setRegionAttributes(RegionAttributes<?, ?> regionAttributes); String getRegionPath(); RegionShortcut getRegionShortcut(); String getTemplateRegion(); Boolean isIfNotExists(); String getKeyConstraint(); String getValueConstraint(); Boolean getStatisticsEnabled(); ExpirationAttrs getEntryExpirationIdleTime(); ExpirationAttrs getEntryExpirationTTL(); ExpirationAttrs getRegionExpirationIdleTime(); ExpirationAttrs getRegionExpirationTTL(); String getDiskStore(); Boolean getDiskSynchronous(); Boolean getOffHeap(); Boolean getEnableAsyncConflation(); Boolean getEnableSubscriptionConflation(); Set<ClassName> getCacheListeners(); ClassName getCacheLoader(); ClassName getCacheWriter(); Set<String> getAsyncEventQueueIds(); Set<String> getGatewaySenderIds(); Boolean getConcurrencyChecksEnabled(); Boolean getCloningEnabled(); Boolean getMcastEnabled(); Integer getConcurrencyLevel(); boolean withPartitioning(); boolean hasPartitionAttributes(); PartitionArgs getPartitionArgs(); Integer getEvictionMax(); String getCompressor(); EvictionAttrs getEvictionAttributes(); @SuppressWarnings("unchecked") RegionAttributes<K, V> getRegionAttributes(); ClassName getEntryIdleTimeCustomExpiry(); void setEntryIdleTimeCustomExpiry(ClassName entryIdleTimeCustomExpiry); ClassName getEntryTTLCustomExpiry(); void setEntryTTLCustomExpiry(ClassName entryTTLCustomExpiry);  }
@Test public void defaultPartitionArgs() throws Exception { assertThat(partitionArgs.hasPartitionAttributes()).isFalse(); partitionArgs.setPartitionResolver(null); assertThat(partitionArgs.hasPartitionAttributes()).isFalse(); partitionArgs.setPrTotalNumBuckets(10); assertThat(partitionArgs.getPrTotalNumBuckets()).isEqualTo(10); assertThat(partitionArgs.hasPartitionAttributes()).isTrue(); }