Class LookupInfo

java.lang.Object
org.apache.sis.metadata.sql.LookupInfo

final class LookupInfo extends Object
Information about the last used metadata type. Those information are cached on the assumption that the same maps will be used more than once before to move to another metadata object.

Each thread shall have its own LastUsedInfo instance. Consequently, there is no need for synchronization in this class.

Since:
0.8
Version:
0.8
  • Field Details

    • type

      private Class<?> type
      The type of metadata objects for which the names and indices maps are built. Must be the interface type when such interface exists. This is mapped to the table name in the database.
    • names

      private Map<String,String> names
      The last "method name to column name" map returned by asNameMap(MetadataStandard). Cached on assumption that the same map will be used more than once before to move to another metadata object.
    • indices

      private Map<String,Integer> indices
      The last used "method name to property indices" map returned by asIndexMap(MetadataStandard). Cached on assumption that the same map will be used more than once before to move to another metadata object.
    • converter

      private ObjectConverter<?,?> converter
      The last converter used. This field exists only for performance purposes, on the assumption that the last used converter has good chances to be used again.
  • Constructor Details

    • LookupInfo

      LookupInfo()
      Creates a new cache.
  • Method Details