/** * Retrieves the complete set of currently configured table properties to be applied to a table * when this configuration object is used. * * @return the current properties configured */ public Map<String,String> getProperties() { Map<String,String> propertyMap = new HashMap<>(); if (limitVersion) propertyMap.putAll(IteratorUtil.generateInitialTableProperties(limitVersion)); propertyMap.putAll(summarizerProps); propertyMap.putAll(samplerProps); propertyMap.putAll(properties); propertyMap.putAll(iteratorProps); propertyMap.putAll(localityProps); return Collections.unmodifiableMap(propertyMap); }
for (String key : IteratorUtil.generateInitialTableProperties(true).keySet()) { shellState.getAccumuloClient().tableOperations().removeProperty(tableName, key);
MockTable(boolean limitVersion, TimeType timeType, String tableId) { this.timeType = timeType; this.tableId = tableId; settings = IteratorUtil.generateInitialTableProperties(limitVersion); for (Entry<String,String> entry : AccumuloConfiguration.getDefaultConfiguration()) { String key = entry.getKey(); if (key.startsWith(Property.TABLE_PREFIX.getKey())) settings.put(key, entry.getValue()); } }
/** * Retrieves the complete set of currently configured table properties to be applied to a table * when this configuration object is used. * * @return the current properties configured */ public Map<String,String> getProperties() { Map<String,String> propertyMap = new HashMap<>(); if (limitVersion) { propertyMap.putAll(IteratorUtil.generateInitialTableProperties(limitVersion)); } if (samplerConfiguration != null) { propertyMap.putAll(new SamplerConfigurationImpl(samplerConfiguration).toTablePropertiesMap()); } propertyMap.putAll(properties); return Collections.unmodifiableMap(propertyMap); }
for (String key : IteratorUtil.generateInitialTableProperties(true).keySet()) { shellState.getConnector().tableOperations().removeProperty(tableName, key);