Record Class SqlMapping
java.lang.Object
java.lang.Record
com.loomcache.server.query.SqlMapping
public record SqlMapping(String name, String connectorType, List<SqlMapping.Column> columns, Map<String,String> options)
extends Record
Catalog metadata for a SQL mapping.
The current SQL engine executes against LoomCache data structures rather than an external planner. Mappings provide the catalog surface needed by DDL and future SHOW/EXPLAIN work while keeping connector-specific behavior explicit.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSqlMapping(String name, String connectorType, List<SqlMapping.Column> columns, Map<String, String> options) Creates an instance of aSqlMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.Returns the value of theconnectorTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanname()Returns the value of thenamerecord component.options()Returns the value of theoptionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SqlMapping
public SqlMapping(String name, String connectorType, List<SqlMapping.Column> columns, Map<String, String> options) Creates an instance of aSqlMappingrecord class.- Parameters:
name- the value for thenamerecord componentconnectorType- the value for theconnectorTyperecord componentcolumns- the value for thecolumnsrecord componentoptions- the value for theoptionsrecord component
-
-
Method Details
-
isMapConnector
public boolean isMapConnector() -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
connectorType
Returns the value of theconnectorTyperecord component.- Returns:
- the value of the
connectorTyperecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
options
-