Tabnine Logo
Properties.keySet
Code IndexAdd Tabnine to your IDE (free)

How to use
keySet
method
in
uk.gov.gchq.gaffer.data.element.Properties

Best Java code snippets using uk.gov.gchq.gaffer.data.element.Properties.keySet (Showing top 5 results out of 315)

origin: gchq/Gaffer

@Override
public Set<String> keySet() {
  return properties.keySet();
}
origin: gchq/Gaffer

/**
 * Constructs a  by wrapping the provided {@link Properties}
 * and using the {@link uk.gov.gchq.gaffer.data.element.ElementValueLoader} to lazily load the property values when requested.
 *
 * @param properties  the properties to wrap.
 * @param valueLoader the element value loader to use to lazily load the property values
 */
public LazyProperties(final Properties properties, final ElementValueLoader valueLoader) {
  this.valueLoader = valueLoader;
  this.properties = properties;
  loadedProperties = new HashSet<>(properties.keySet());
}
origin: uk.gov.gchq.gaffer/data

@Override
public Set<String> keySet() {
  return properties.keySet();
}
origin: uk.gov.gchq.gaffer/data

/**
 * Constructs a  by wrapping the provided {@link Properties}
 * and using the {@link uk.gov.gchq.gaffer.data.element.ElementValueLoader} to lazily load the property values when requested.
 *
 * @param properties  the properties to wrap.
 * @param valueLoader the element value loader to use to lazily load the property values
 */
public LazyProperties(final Properties properties, final ElementValueLoader valueLoader) {
  this.valueLoader = valueLoader;
  this.properties = properties;
  loadedProperties = new HashSet<>(properties.keySet());
}
origin: uk.gov.gchq.gaffer/map-store

  /**
   * Clone an {@link Element}, based on a target {@link Schema}.
   *
   * @param element the element to clone
   * @param schema the schema
   * @return the cloned element
   */
  public Element cloneElement(final Element element, final Schema schema) {
    try {
      final Element clone = element.emptyClone();
      final SchemaElementDefinition sed = schema.getElement(clone.getGroup());
      for (final String propertyName : element.getProperties().keySet()) {
        final Object property = element.getProperty(propertyName);
        if (null == sed.getPropertyTypeDef(propertyName) || null == sed.getPropertyTypeDef(propertyName).getSerialiser()) {
          // This can happen if transient properties are derived - they will not have serialisers.
          LOGGER.warn("Can't find Serialisation for {}, returning uncloned property", propertyName);
          clone.putProperty(propertyName, property);
        } else if (null != property) {
          final Serialiser serialiser = sed.getPropertyTypeDef(propertyName).getSerialiser();
          clone.putProperty(propertyName, serialiser.deserialise(serialiser.serialise(property)));
        } else {
          clone.putProperty(propertyName, null);
        }
      }
      return clone;
    } catch (final SerialisationException e) {
      throw new RuntimeException("SerialisationException converting elements", e);
    }
  }
}
uk.gov.gchq.gaffer.data.elementPropertieskeySet

Popular methods of Properties

  • get
  • <init>
  • put
  • remove
  • clone
  • entrySet
  • isEmpty
  • keepOnly
    Removes all properties with names that are not in the provided set.
  • putAll
  • size
  • clear
  • containsKey
  • clear,
  • containsKey,
  • containsValue,
  • equals,
  • hashCode,
  • toString,
  • values

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Option (scala)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now