Record Class SchemaNode.PrimitiveNode
java.lang.Object
java.lang.Record
dev.hardwood.schema.SchemaNode.PrimitiveNode
- All Implemented Interfaces:
SchemaNode
- Enclosing interface:
SchemaNode
public static record SchemaNode.PrimitiveNode(String name, PhysicalType type, RepetitionType repetitionType, LogicalType logicalType, int columnIndex, int maxDefinitionLevel, int maxRepetitionLevel)
extends Record
implements SchemaNode
Primitive leaf node representing an actual data column.
-
Nested Class Summary
Nested classes/interfaces inherited from interface SchemaNode
SchemaNode.GroupNode, SchemaNode.PrimitiveNode -
Constructor Summary
ConstructorsConstructorDescriptionPrimitiveNode(String name, PhysicalType type, RepetitionType repetitionType, LogicalType logicalType, int columnIndex, int maxDefinitionLevel, int maxRepetitionLevel) Creates an instance of aPrimitiveNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecolumnIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelogicalTyperecord component.intReturns the value of themaxDefinitionLevelrecord component.intReturns the value of themaxRepetitionLevelrecord component.name()Returns the value of thenamerecord component.Returns the value of therepetitionTyperecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
PrimitiveNode
public PrimitiveNode(String name, PhysicalType type, RepetitionType repetitionType, LogicalType logicalType, int columnIndex, int maxDefinitionLevel, int maxRepetitionLevel) Creates an instance of aPrimitiveNoderecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentrepetitionType- the value for therepetitionTyperecord componentlogicalType- the value for thelogicalTyperecord componentcolumnIndex- the value for thecolumnIndexrecord componentmaxDefinitionLevel- the value for themaxDefinitionLevelrecord componentmaxRepetitionLevel- the value for themaxRepetitionLevelrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceSchemaNode- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
repetitionType
Returns the value of therepetitionTyperecord component.- Specified by:
repetitionTypein interfaceSchemaNode- Returns:
- the value of the
repetitionTyperecord component
-
logicalType
Returns the value of thelogicalTyperecord component.- Returns:
- the value of the
logicalTyperecord component
-
columnIndex
public int columnIndex()Returns the value of thecolumnIndexrecord component.- Returns:
- the value of the
columnIndexrecord component
-
maxDefinitionLevel
public int maxDefinitionLevel()Returns the value of themaxDefinitionLevelrecord component.- Specified by:
maxDefinitionLevelin interfaceSchemaNode- Returns:
- the value of the
maxDefinitionLevelrecord component
-
maxRepetitionLevel
public int maxRepetitionLevel()Returns the value of themaxRepetitionLevelrecord component.- Specified by:
maxRepetitionLevelin interfaceSchemaNode- Returns:
- the value of the
maxRepetitionLevelrecord component
-