/** * Sets the value of the type property. Also sets the keyIndex property to true if the type * being set is "key". * * allowed object is * {@link String } * * @deprecated Index should only be a "key" or "range" type which is set using * {@link #setKeyIndex(Boolean)} */ public void setType(String value) { if ("range".equalsIgnoreCase(value) || "hash".equalsIgnoreCase(value) || "key".equalsIgnoreCase(value)) { this.type = value.toLowerCase(); } else { throw new IllegalArgumentException("Invalid index type " + value); } setKeyIndex("key".equalsIgnoreCase(value)); }
index.setFromClause(regionPath); if (indexType == IndexType.PRIMARY_KEY) { index.setKeyIndex(true); } else { index.setKeyIndex(false); index.setType(indexType.getName());