/** * @return Name of this table and then a map of all of the column family descriptors. */ @Override public String toString() { StringBuilder s = new StringBuilder(); s.append('\'').append(Bytes.toString(name.getName())).append('\''); s.append(getValues(true)); families.values().forEach(f -> s.append(", ").append(f)); return s.toString(); }
/** * @return Name of this table and then a map of all of the column family * descriptors (with only the non-default column family attributes) */ @Override public String toStringCustomizedValues() { StringBuilder s = new StringBuilder(); s.append('\'').append(Bytes.toString(name.getName())).append('\''); s.append(getValues(false)); families.values().forEach(hcd -> s.append(", ").append(hcd.toStringCustomizedValues())); return s.toString(); }
/** * Return the list of attached co-processor represented by their name * className * * @return The list of co-processors classNames */ @Override public List<CoprocessorDescriptor> getCoprocessorDescriptors() { List<CoprocessorDescriptor> result = new ArrayList<>(); for (Map.Entry<Bytes, Bytes> e: getValues().entrySet()) { String key = Bytes.toString(e.getKey().get()).trim(); if (CP_HTD_ATTR_KEY_PATTERN.matcher(key).matches()) { toCoprocessorDescriptor(Bytes.toString(e.getValue().get()).trim()) .ifPresent(result::add); } } return result; }
/** * Return the list of attached co-processor represented by their name * className * * @return The list of co-processors classNames */ @Override public List<CoprocessorDescriptor> getCoprocessorDescriptors() { List<CoprocessorDescriptor> result = new ArrayList<>(); for (Map.Entry<Bytes, Bytes> e: getValues().entrySet()) { String key = Bytes.toString(e.getKey().get()).trim(); if (CP_HTD_ATTR_KEY_PATTERN.matcher(key).matches()) { toCoprocessorDescriptor(Bytes.toString(e.getValue().get()).trim()) .ifPresent(result::add); } } return result; }
/** * Getter for fetching an unmodifiable map. */ public Map<String, String> getConfiguration() { return delegatee.getValues().entrySet().stream() .collect(Collectors.toMap( e -> Bytes.toString(e.getKey().get(), e.getKey().getOffset(), e.getKey().getLength()), e -> Bytes.toString(e.getValue().get(), e.getValue().getOffset(), e.getValue().getLength()) )); }
/** * @return map of all table attributes formatted into string. */ public String toStringTableAttributes() { return getValues(true).toString(); }
/** * @return Getter for fetching an unmodifiable map. */ @Override public Map<Bytes, Bytes> getValues() { return delegatee.getValues(); }
/** * @return Name of this table and then a map of all of the column family * descriptors (with only the non-default column family attributes) */ public String toStringCustomizedValues() { StringBuilder s = new StringBuilder(); s.append('\'').append(Bytes.toString(name.getName())).append('\''); s.append(getValues(false)); families.values().forEach(hcd -> s.append(", ").append(hcd.toStringCustomizedValues())); return s.toString(); }
/** * @return Name of this table and then a map of all of the column family descriptors. */ @Override public String toString() { StringBuilder s = new StringBuilder(); s.append('\'').append(Bytes.toString(name.getName())).append('\''); s.append(getValues(true)); families.values().forEach(f -> s.append(", ").append(f)); return s.toString(); }
/** * Return the list of attached co-processor represented by their name * className * * @return The list of co-processors classNames */ @Override public List<CoprocessorDescriptor> getCoprocessorDescriptors() { List<CoprocessorDescriptor> result = new ArrayList<>(); for (Map.Entry<Bytes, Bytes> e: getValues().entrySet()) { String key = Bytes.toString(e.getKey().get()).trim(); if (CP_HTD_ATTR_KEY_PATTERN.matcher(key).matches()) { toCoprocessorDescriptor(Bytes.toString(e.getValue().get()).trim()) .ifPresent(result::add); } } return result; }
/** * Getter for fetching an unmodifiable map. */ public Map<String, String> getConfiguration() { return delegatee.getValues().entrySet().stream() .collect(Collectors.toMap( e -> Bytes.toString(e.getKey().get(), e.getKey().getOffset(), e.getKey().getLength()), e -> Bytes.toString(e.getValue().get(), e.getValue().getOffset(), e.getValue().getLength()) )); }
/** * @return Getter for fetching an unmodifiable map. */ @Override public Map<Bytes, Bytes> getValues() { return delegatee.getValues(); }
/** * @return Name of this table and then a map of all of the column family * descriptors (with only the non-default column family attributes) */ public String toStringCustomizedValues() { StringBuilder s = new StringBuilder(); s.append('\'').append(Bytes.toString(name.getName())).append('\''); s.append(getValues(false)); families.values().forEach(hcd -> s.append(", ").append(hcd.toStringCustomizedValues())); return s.toString(); }
/** * @return map of all table attributes formatted into string. */ public String toStringTableAttributes() { return getValues(true).toString(); }
/** * @return Name of this table and then a map of all of the column family descriptors. */ @Override public String toString() { StringBuilder s = new StringBuilder(); s.append('\'').append(Bytes.toString(name.getName())).append('\''); s.append(getValues(true)); families.values().forEach(f -> s.append(", ").append(f)); return s.toString(); }
/** * @return map of all table attributes formatted into string. */ public String toStringTableAttributes() { return getValues(true).toString(); }
/** * @return Getter for fetching an unmodifiable map. */ @Override public Map<Bytes, Bytes> getValues() { return delegatee.getValues(); }
/** * Getter for fetching an unmodifiable map. */ public Map<String, String> getConfiguration() { return delegatee.getValues().entrySet().stream() .collect(Collectors.toMap( e -> Bytes.toString(e.getKey().get(), e.getKey().getOffset(), e.getKey().getLength()), e -> Bytes.toString(e.getValue().get(), e.getValue().getOffset(), e.getValue().getLength()) )); }