public final class Record extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Record.EntryKey<T>
Entry key is field key with some metadata.
|
static class |
Record.Type
Types of returned records returned from index.
|
Modifier and Type | Field and Description |
---|---|
static Record.EntryKey<String[]> |
ALL_GROUPS
Key of all groups list entry, that contains
List<String> . |
static Record.EntryKey<String> |
ARTIFACT_ID
Key of artifact artifactId entry, that contains
String . |
static Record.EntryKey<String> |
CLASSIFIER
Key of artifact classifier entry, that contains
String . |
static Record.EntryKey<String[]> |
CLASSNAMES
Key of artifact contained class names, that contains
List<String> . |
static Record.EntryKey<String> |
DESCRIPTION
Key of artifact description (as set in POM), that contains
String . |
static Record.EntryKey<String> |
FILE_EXTENSION
Key of artifact file extension, that contains
String . |
static Record.EntryKey<Long> |
FILE_MODIFIED
Key of artifact file last modified timestamp, that contains
Long . |
static Record.EntryKey<Long> |
FILE_SIZE
Key of artifact file size in bytes, that contains
Long . |
static Record.EntryKey<String> |
GROUP_ID
Key of artifact groupId entry, that contains
String . |
static Record.EntryKey<Boolean> |
HAS_JAVADOC
Key of artifact Javadoc presence flag, that contains
Boolean . |
static Record.EntryKey<Boolean> |
HAS_SIGNATURE
Key of artifact signature presence flag, that contains
Boolean . |
static Record.EntryKey<Boolean> |
HAS_SOURCES
Key of artifact Sources presence flag, that contains
Boolean . |
static Record.EntryKey<String> |
NAME
Key of artifact name (as set in POM), that contains
String . |
static Record.EntryKey<String> |
OSGI_BREE
Key of deprecated OSGi "Bundle-RequiredExecutionEnvironment" manifest entry, that contains
String . |
static Record.EntryKey<String> |
OSGI_BUNDLE_DESCRIPTION
Key of OSGi "Bundle-Description" manifest entry, that contains
String . |
static Record.EntryKey<String> |
OSGI_BUNDLE_LICENSE
Key of OSGi "Bundle-License" manifest entry, that contains
String . |
static Record.EntryKey<String> |
OSGI_BUNDLE_NAME
Key of OSGi "Bundle-Name" manifest entry, that contains
String . |
static Record.EntryKey<String> |
OSGI_BUNDLE_SYMBOLIC_NAME
Key of OSGi "Bundle-SymbolicName" manifest entry, that contains
String . |
static Record.EntryKey<String> |
OSGI_BUNDLE_VERSION
Key of OSGi "Bundle-Version" manifest entry, that contains
String . |
static Record.EntryKey<String> |
OSGI_EXPORT_DOCURL
Key of OSGi "Bundle-DocURL" manifest entry, that contains
String . |
static Record.EntryKey<String> |
OSGI_EXPORT_PACKAGE
Key of OSGi "Export-Package" manifest entry, that contains
String . |
static Record.EntryKey<String> |
OSGI_EXPORT_SERVICE
Key of OSGi "Export-Service" manifest entry, that contains
String . |
static Record.EntryKey<String> |
OSGI_FRAGMENT_HOST
Key of OSGi "Fragment-Host" manifest entry, that contains
String . |
static Record.EntryKey<String> |
OSGI_IMPORT_PACKAGE
Key of OSGi "Import-Package" manifest entry, that contains
String . |
static Record.EntryKey<String> |
OSGI_PROVIDE_CAPABILITY
Key of OSGi "Provide-Capability" manifest entry, that contains
String . |
static Record.EntryKey<String> |
OSGI_REQUIRE_BUNDLE
Key of OSGi "Require-Bundle" manifest entry, that contains
String . |
static Record.EntryKey<String> |
OSGI_REQUIRE_CAPABILITY
Key of OSGi "Require-Capability" manifest entry, that contains
String . |
static Record.EntryKey<String> |
PACKAGING
Key of artifact packaging entry, that contains
String . |
static Record.EntryKey<String[]> |
PLUGIN_GOALS
Key of plugin artifact goals, that contains
List<String> . |
static Record.EntryKey<String> |
PLUGIN_PREFIX
Key of plugin artifact prefix, that contains
String . |
static Record.EntryKey<Long> |
REC_MODIFIED
Key of index record modification (added to index or removed from index) timestamp entry, that contains
Long . |
static Record.EntryKey<String> |
REPOSITORY_ID
Key of repository ID entry, that contains
String . |
static Record.EntryKey<String[]> |
ROOT_GROUPS
Key of root groups list entry, that contains
List<String> . |
static Record.EntryKey<String> |
SHA_256
Key for SHA-256 checksum needed for OSGI content capability that contains
String . |
static Record.EntryKey<String> |
SHA1
Key of artifact SHA1 digest, that contains
String . |
static Record.EntryKey<String> |
VERSION
Key of artifact version entry, that contains
String . |
Constructor and Description |
---|
Record(Record.Type type,
Map<Record.EntryKey,Object> expanded) |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(Record.EntryKey<T> entryKey)
Type safe handy method to get value from expanded map.
|
Map<Record.EntryKey,Object> |
getExpanded()
Returns the expanded (processed and expanded synthetic fields) record as
Map ready for consumption. |
Record.Type |
getType()
Returns the
Record.Type of this record. |
<T> T |
put(Record.EntryKey<T> entryKey,
T value)
Type safe handy method to put value to expanded map.
|
String |
toString() |
public static final Record.EntryKey<String> REPOSITORY_ID
String
.public static final Record.EntryKey<String[]> ALL_GROUPS
List<String>
.public static final Record.EntryKey<String[]> ROOT_GROUPS
List<String>
.public static final Record.EntryKey<Long> REC_MODIFIED
Long
.public static final Record.EntryKey<String> GROUP_ID
String
.public static final Record.EntryKey<String> ARTIFACT_ID
String
.public static final Record.EntryKey<String> VERSION
String
.public static final Record.EntryKey<String> CLASSIFIER
String
.public static final Record.EntryKey<String> PACKAGING
String
.public static final Record.EntryKey<String> FILE_EXTENSION
String
.public static final Record.EntryKey<Long> FILE_MODIFIED
Long
.public static final Record.EntryKey<Long> FILE_SIZE
Long
.public static final Record.EntryKey<Boolean> HAS_SOURCES
Boolean
.public static final Record.EntryKey<Boolean> HAS_JAVADOC
Boolean
.public static final Record.EntryKey<Boolean> HAS_SIGNATURE
Boolean
.public static final Record.EntryKey<String> NAME
String
.public static final Record.EntryKey<String> DESCRIPTION
String
.public static final Record.EntryKey<String> SHA1
String
.public static final Record.EntryKey<String[]> CLASSNAMES
List<String>
. Extracted by JarFileContentsIndexCreator
.public static final Record.EntryKey<String> PLUGIN_PREFIX
String
. Extracted by MavenPluginArtifactInfoIndexCreator
.public static final Record.EntryKey<String[]> PLUGIN_GOALS
List<String>
. Extracted by MavenPluginArtifactInfoIndexCreator
.public static final Record.EntryKey<String> OSGI_BUNDLE_SYMBOLIC_NAME
String
. Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> OSGI_BUNDLE_VERSION
String
. Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> OSGI_EXPORT_PACKAGE
String
. Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> OSGI_EXPORT_SERVICE
String
. Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> OSGI_BUNDLE_DESCRIPTION
String
. Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> OSGI_BUNDLE_NAME
String
. Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> OSGI_BUNDLE_LICENSE
String
. Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> OSGI_EXPORT_DOCURL
String
. Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> OSGI_IMPORT_PACKAGE
String
. Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> OSGI_REQUIRE_BUNDLE
String
. Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> OSGI_PROVIDE_CAPABILITY
String
. Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> OSGI_REQUIRE_CAPABILITY
String
. Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> OSGI_FRAGMENT_HOST
String
. Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> OSGI_BREE
String
.
Extracted by OsgiArtifactIndexCreator
.public static final Record.EntryKey<String> SHA_256
String
. Extracted by OsgiArtifactIndexCreator
.public Record(Record.Type type, Map<Record.EntryKey,Object> expanded)
public Record.Type getType()
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.public Map<Record.EntryKey,Object> getExpanded()
Map
ready for consumption.public <T> T get(Record.EntryKey<T> entryKey)
public <T> T put(Record.EntryKey<T> entryKey, T value)
null
values, that removes the mapping.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.