sgilmore10 opened a new pull request, #36210:
URL: https://github.com/apache/arrow/pull/36210

   <!--
   Thanks for opening a pull request!
   If this is your first pull request you can find detailed information on how 
   to contribute here:
     * [New Contributor's 
Guide](https://arrow.apache.org/docs/dev/developers/guide/step_by_step/pr_lifecycle.html#reviews-and-merge-of-the-pull-request)
     * [Contributing 
Overview](https://arrow.apache.org/docs/dev/developers/overview.html)
   
   
   If this is not a [minor 
PR](https://github.com/apache/arrow/blob/main/CONTRIBUTING.md#Minor-Fixes). 
Could you open an issue for this pull request on GitHub? 
https://github.com/apache/arrow/issues/new/choose
   
   Opening GitHub issues ahead of time contributes to the 
[Openness](http://theapacheway.com/open/#:~:text=Openness%20allows%20new%20users%20the,must%20happen%20in%20the%20open.)
 of the Apache Arrow project.
   
   Then could you also rename the pull request title in the following format?
   
       GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}
   
   or
   
       MINOR: [${COMPONENT}] ${SUMMARY}
   
   In the case of PARQUET issues on JIRA the title also supports:
   
       PARQUET-${JIRA_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}
   
   -->
   
   ### Rationale for this change
   
   As we continue to build up the MATLAB Interface, we need to add the `Type` 
class hierarchy to the interface to support objects with schemas.
   
   
   ### What changes are included in this PR?
   
   1. Added an enum class called `arrow.type.ID` with the following values:
   ```matlab
   >> enumeration(arrow.type.ID.Boolean)
   
   Enumeration members for class 'arrow.type.ID':
   
       Boolean
       UInt8
       Int8
       UInt16
       Int16
       UInt32
       Int32
       UInt64
       Int64
       Float32
       Float64
   ```
   
   2. Added an abstract class representing a type called `arrow.type.Type`. It 
defines one property named `ID` that all concrete subclasses must define. `ID` 
must be an `arrow.type.ID`.
   
   3. Defined an abstract class called `arrow.type.PrimitiveType` that inherits 
from `arrow.type.Type`. All primitive type classes inherit from this class.
   
   4. Defined the following concrete type classes: 
       - `arrow.type.BooleanType`
       - `arrow.type.Float32Type`
       - `arrow.type.Float64Type`
       - `arrow.type.Int8Type`
       - `arrow.type.UInt8Type`
       - `arrow.type.Int16Type`
       - `arrow.type.UInt16Type`
       - `arrow.type.Int32Type`
       - `arrow.type.UInt32Type`
       - `arrow.type.Int64Type`
       - `arrow.type.UInt64Type`
   
   ### Are these changes tested?
   
   Yes, added the following test classes: 
       - `tID.m`
       - `tBooleanType.m`
       - `tFloat32Type.m`
       - `tFloat64Type.m`
       - `tInt8Type.m`
       - `tUInt8Type.m`
       - `tInt16Type.m`
       - `tUInt16Type.m`
       - `tInt32Type.m`
       - `tUInt32Type.m`
       - `tInt64Type.m`
       - `tUInt64Type.m`
   
   ### Future Directions
   
   1. Add a new property to `arrow.array.Array` called `Type`.
   2. Add a `arrow.type.Field` class.
   3. Add a `arrow.tabular.Schema` class.
   4. As we add more array types, we will extend `arrow.type.ID` and add the 
appropriate type class. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to