Interface ModelEvent
- All Superinterfaces:
Converter<org.apache.polaris.core.entity.PolarisEvent>
@PolarisImmutable
public interface ModelEvent
extends Converter<org.apache.polaris.core.entity.PolarisEvent>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final ModelEventDummy instance to be used as a Converter when calling #fromResultSet().static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelEventfromEvent(org.apache.polaris.core.entity.PolarisEvent event) default org.apache.polaris.core.entity.PolarisEventConverts a ResultSet to model.org.apache.polaris.core.entity.PolarisEvent.ResourceTypelongstatic org.apache.polaris.core.entity.PolarisEventtoEvent(ModelEvent model) toMap(DatabaseType databaseType) Convert a model into a Map with keys as snake case names, and values as values of member of model obj.Methods inherited from interface org.apache.polaris.persistence.relational.jdbc.models.Converter
toJsonbPGobject
-
Field Details
-
TABLE_NAME
- See Also:
-
CATALOG_ID
- See Also:
-
EVENT_ID
- See Also:
-
REQUEST_ID
- See Also:
-
EVENT_TYPE
- See Also:
-
TIMESTAMP_MS
- See Also:
-
PRINCIPAL_NAME
- See Also:
-
RESOURCE_TYPE
- See Also:
-
RESOURCE_IDENTIFIER
- See Also:
-
ADDITIONAL_PROPERTIES
- See Also:
-
ALL_COLUMNS
-
CONVERTER
Dummy instance to be used as a Converter when calling #fromResultSet().FIXME: fromResultSet() is a factory method and should be static or moved to a factory class.
-
-
Method Details
-
getCatalogId
String getCatalogId() -
getEventId
String getEventId() -
getRequestId
-
getEventType
String getEventType() -
getTimestampMs
long getTimestampMs() -
getPrincipalName
-
getResourceType
org.apache.polaris.core.entity.PolarisEvent.ResourceType getResourceType() -
getResourceIdentifier
String getResourceIdentifier() -
getAdditionalProperties
String getAdditionalProperties() -
fromResultSet
Description copied from interface:ConverterConverts a ResultSet to model.- Specified by:
fromResultSetin interfaceConverter<org.apache.polaris.core.entity.PolarisEvent>- Parameters:
rs- : ResultSet from JDBC.- Returns:
- the corresponding business entity
- Throws:
SQLException- : Exception while fetching from ResultSet.
-
toMap
Description copied from interface:ConverterConvert a model into a Map with keys as snake case names, and values as values of member of model obj. -
fromEvent
-
toEvent
-