@Override public ColumnDefinition setOptions(Map<String, String> index_options ) { columnDef.setIndex_options(index_options); return this; }
@Override public ColumnDefinition setOptions(Map<String, String> index_options ) { columnDef.setIndex_options(index_options); return this; }
@Override public String setOption(String name, String value) { if (this.columnDef.getIndex_options() == null) { this.columnDef.setIndex_options(new HashMap<String, String>()); } return this.columnDef.getIndex_options().put(name, value); }
@Override public String setOption(String name, String value) { if (this.columnDef.getIndex_options() == null) { this.columnDef.setIndex_options(new HashMap<String, String>()); } return this.columnDef.getIndex_options().put(name, value); }
Map<String, String> filteredOptions = Maps.filterKeys(matchedIndex.options, s -> !IndexTarget.TARGET_OPTION_NAME.equals(s)); cd.setIndex_options(filteredOptions.isEmpty() ? null : Maps.newHashMap(filteredOptions));
Map<String, String> filteredOptions = Maps.filterKeys(matchedIndex.options, s -> !IndexTarget.TARGET_OPTION_NAME.equals(s)); cd.setIndex_options(filteredOptions.isEmpty() ? null : Maps.newHashMap(filteredOptions));
columnDefinition.setIndex_options(getStrategyOptionsFromTree(metaPair.getChild(1)));
public ColumnDef toThrift() { ColumnDef cd = new ColumnDef(); cd.setName(ByteBufferUtil.clone(name.bytes)); cd.setValidation_class(type.toString()); cd.setIndex_type(indexType == null ? null : org.apache.cassandra.thrift.IndexType.valueOf(indexType.name())); cd.setIndex_name(indexName == null ? null : indexName); cd.setIndex_options(indexOptions == null ? null : Maps.newHashMap(indexOptions)); return cd; }
unsetIndex_options(); } else { setIndex_options((Map<String,String>)value);
unsetIndex_options(); } else { setIndex_options((Map<String,String>)value);
unsetIndex_options(); } else { setIndex_options((Map<String,String>)value);