Interface ThinProtocolFeature

    • Method Detail

      • featureId

        int featureId()
        Returns:
        Feature ID.
      • name

        String name()
        Returns:
        Feature name.
      • featuresAsBytes

        static <E extends Enum<E> & ThinProtocolFeature> byte[] featuresAsBytes​(Collection<E> features)
        Parameters:
        features - Feature set.
        Returns:
        Byte array representing all supported features.
      • enumSet

        static <E extends Enum<E> & ThinProtocolFeatureEnumSet<E> enumSet​(byte[] in,
                                                                            Class<E> enumCls)
        Create EnumSet of supported features encoded by the bytes array.
        Parameters:
        in - Byte array representing all supported features.
        enumCls - Type of the enum encoded by the bits at the byte array.