Class Record

java.lang.Object
org.apache.maven.index.reader.Record

public final class Record extends Object
Maven Index record.
Since:
5.1.2
  • Field Details

    • REPOSITORY_ID

      public static final Record.EntryKey REPOSITORY_ID
      Key of repository ID entry, that contains String.
    • ALL_GROUPS

      public static final Record.EntryKey ALL_GROUPS
      Key of all groups list entry, that contains List<String>.
    • ROOT_GROUPS

      public static final Record.EntryKey ROOT_GROUPS
      Key of root groups list entry, that contains List<String>.
    • REC_MODIFIED

      public static final Record.EntryKey REC_MODIFIED
      Key of index record modification (added to index or removed from index) timestamp entry, that contains Long.
    • GROUP_ID

      public static final Record.EntryKey GROUP_ID
      Key of artifact groupId entry, that contains String.
    • ARTIFACT_ID

      public static final Record.EntryKey ARTIFACT_ID
      Key of artifact artifactId entry, that contains String.
    • VERSION

      public static final Record.EntryKey VERSION
      Key of artifact version entry, that contains String.
    • CLASSIFIER

      public static final Record.EntryKey CLASSIFIER
      Key of artifact classifier entry, that contains String.
    • PACKAGING

      public static final Record.EntryKey PACKAGING
      Key of artifact packaging entry, that contains String.
    • FILE_EXTENSION

      public static final Record.EntryKey FILE_EXTENSION
      Key of artifact file extension, that contains String.
    • FILE_MODIFIED

      public static final Record.EntryKey FILE_MODIFIED
      Key of artifact file last modified timestamp, that contains Long.
    • FILE_SIZE

      public static final Record.EntryKey FILE_SIZE
      Key of artifact file size in bytes, that contains Long.
    • HAS_SOURCES

      public static final Record.EntryKey HAS_SOURCES
      Key of artifact Sources presence flag, that contains Boolean.
    • HAS_JAVADOC

      public static final Record.EntryKey HAS_JAVADOC
      Key of artifact Javadoc presence flag, that contains Boolean.
    • HAS_SIGNATURE

      public static final Record.EntryKey HAS_SIGNATURE
      Key of artifact signature presence flag, that contains Boolean.
    • NAME

      public static final Record.EntryKey NAME
      Key of artifact name (as set in POM), that contains String.
    • DESCRIPTION

      public static final Record.EntryKey DESCRIPTION
      Key of artifact description (as set in POM), that contains String.
    • SHA1

      public static final Record.EntryKey SHA1
      Key of artifact SHA1 digest, that contains String.
    • CLASSNAMES

      public static final Record.EntryKey CLASSNAMES
      Key of artifact contained class names, that contains List<String>. Extracted by JarFileContentsIndexCreator.
    • PLUGIN_PREFIX

      public static final Record.EntryKey PLUGIN_PREFIX
      Key of plugin artifact prefix, that contains String. Extracted by MavenPluginArtifactInfoIndexCreator.
    • PLUGIN_GOALS

      public static final Record.EntryKey PLUGIN_GOALS
      Key of plugin artifact goals, that contains List<String>. Extracted by MavenPluginArtifactInfoIndexCreator.
    • OSGI_BUNDLE_SYMBOLIC_NAME

      public static final Record.EntryKey OSGI_BUNDLE_SYMBOLIC_NAME
      Key of OSGi "Bundle-SymbolicName" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • OSGI_BUNDLE_VERSION

      public static final Record.EntryKey OSGI_BUNDLE_VERSION
      Key of OSGi "Bundle-Version" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • OSGI_EXPORT_PACKAGE

      public static final Record.EntryKey OSGI_EXPORT_PACKAGE
      Key of OSGi "Export-Package" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • OSGI_EXPORT_SERVICE

      public static final Record.EntryKey OSGI_EXPORT_SERVICE
      Key of OSGi "Export-Service" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • OSGI_BUNDLE_DESCRIPTION

      public static final Record.EntryKey OSGI_BUNDLE_DESCRIPTION
      Key of OSGi "Bundle-Description" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • OSGI_BUNDLE_NAME

      public static final Record.EntryKey OSGI_BUNDLE_NAME
      Key of OSGi "Bundle-Name" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • OSGI_BUNDLE_LICENSE

      public static final Record.EntryKey OSGI_BUNDLE_LICENSE
      Key of OSGi "Bundle-License" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • OSGI_EXPORT_DOCURL

      public static final Record.EntryKey OSGI_EXPORT_DOCURL
      Key of OSGi "Bundle-DocURL" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • OSGI_IMPORT_PACKAGE

      public static final Record.EntryKey OSGI_IMPORT_PACKAGE
      Key of OSGi "Import-Package" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • OSGI_REQUIRE_BUNDLE

      public static final Record.EntryKey OSGI_REQUIRE_BUNDLE
      Key of OSGi "Require-Bundle" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • OSGI_PROVIDE_CAPABILITY

      public static final Record.EntryKey OSGI_PROVIDE_CAPABILITY
      Key of OSGi "Provide-Capability" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • OSGI_REQUIRE_CAPABILITY

      public static final Record.EntryKey OSGI_REQUIRE_CAPABILITY
      Key of OSGi "Require-Capability" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • OSGI_FRAGMENT_HOST

      public static final Record.EntryKey OSGI_FRAGMENT_HOST
      Key of OSGi "Fragment-Host" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • OSGI_BREE

      public static final Record.EntryKey OSGI_BREE
      Key of deprecated OSGi "Bundle-RequiredExecutionEnvironment" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
    • SHA_256

      public static final Record.EntryKey SHA_256
      Key for SHA-256 checksum needed for OSGI content capability that contains String. Extracted by OsgiArtifactIndexCreator.
  • Constructor Details

  • Method Details

    • getType

      public Record.Type getType()
      Returns the Record.Type of this record. Usually users would be interested in Record.Type.ARTIFACT_ADD and Record.Type.ARTIFACT_REMOVE types only to maintain their own index. Still, indexer offers extra records too, see Record.Type for all existing types.
    • getExpanded

      public Map<Record.EntryKey,Object> getExpanded()
      Returns the expanded (processed and expanded synthetic fields) record as Map ready for consumption.
    • get

      public Object get(Record.EntryKey entryKey)
      Type safe handy method to get value from expanded map.
    • getString

      public String getString(Record.EntryKey entryKey)
      Type safe handy method to get string value from expanded map.
      Since:
      TBD
    • getStringArray

      public String[] getStringArray(Record.EntryKey entryKey)
      Type safe handy method to get String[] value from expanded map.
      Since:
      TBD
    • getLong

      public Long getLong(Record.EntryKey entryKey)
      Type safe handy method to get Long value from expanded map.
      Since:
      TBD
    • getBoolean

      public Boolean getBoolean(Record.EntryKey entryKey)
      Type safe handy method to get Boolean value from expanded map.
      Since:
      TBD
    • put

      public Object put(Record.EntryKey entryKey, Object value)
      Type safe handy method to put value to expanded map. Accepts null values, that removes the mapping.
    • toString

      public String toString()
      Overrides:
      toString in class Object