Interface ColumnType

    • Method Detail

      • register

        static void register​(ColumnType type)
        Registers the given ColumnType, identifying it as supported
      • values

        static ColumnType[] values()
        Returns an array containing all supported ColumnTypes
      • valueOf

        static ColumnType valueOf​(String name)
        Returns the columnType named by the argument
        Parameters:
        name - a valid column type name
        Returns:
        the ColumnType with that name
      • create

        Column<?> create​(String name)
        Returns a column of this type with the given name
      • name

        String name()
        Returns the name of this ColumnType
      • byteSize

        int byteSize()
        Returns the size in bytes of a single element held in columns of this type
      • getPrinterFriendlyName

        String getPrinterFriendlyName()
        Returns a printer-friendly version of this ColumnType's name
      • compare

        default boolean compare​(int col1Row,
                                Column<?> col1,
                                int col2Row,
                                Column<?> col2)
        Returns true if the value at the specified index in column1 is equal to the value at the specified index in column 2