Package org.apache.maven.search
Class Record
java.lang.Object
org.apache.maven.search.Record
A search response record.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfieldSet()
Returns unmodifiable set of present fields in this record, nevernull
.ReturnsSearchBackend.getBackendId()
of originating search backend.Returns unmodifiable map of all values keyed byField
backing this record.ReturnsLong
, representing "last updated" timestamp as epoch millis if provided by backend.ReturnsSearchBackend.getRepositoryId()
) of originating search backend.getUid()
Returns UID (unique if combined withgetBackendId()
) of search result record, if provided by backend.getValue
(Field.BooleanField field) Returns the value belonging to given field in this record, ornull
if field not present.getValue
(Field.NumberField field) Returns the value belonging to given field in this record, ornull
if field not present.getValue
(Field.StringField field) Returns the value belonging to given field in this record, ornull
if field not present.boolean
Returnstrue
if given field is present in this record.
-
Constructor Details
-
Record
-
-
Method Details
-
getBackendId
ReturnsSearchBackend.getBackendId()
of originating search backend. Nevernull
. -
getRepositoryId
ReturnsSearchBackend.getRepositoryId()
) of originating search backend. Nevernull
. -
getUid
Returns UID (unique if combined withgetBackendId()
) of search result record, if provided by backend. May benull
if not provided. -
getLastUpdated
ReturnsLong
, representing "last updated" timestamp as epoch millis if provided by backend. May benull
if not provided. -
getFields
Returns unmodifiable map of all values keyed byField
backing this record. -
fieldSet
Returns unmodifiable set of present fields in this record, nevernull
. -
hasField
Returnstrue
if given field is present in this record. -
getValue
Returns the value belonging to given field in this record, ornull
if field not present. -
getValue
Returns the value belonging to given field in this record, ornull
if field not present. -
getValue
Returns the value belonging to given field in this record, ornull
if field not present.
-