Class StaticImmutableTableSchema.Builder<T,​B>

    • Method Detail

      • newItemBuilder

        public StaticImmutableTableSchema.Builder<T,​B> newItemBuilder​(Supplier<B> newBuilderMethod,
                                                                            Function<B,​T> buildMethod)
        Methods used to construct a new instance of the immutable data object.
        Parameters:
        newBuilderMethod - A method to create a new builder for the immutable data object.
        buildMethod - A method on the builder to build a new instance of the immutable data object.
      • attributeConverterProviders

        public StaticImmutableTableSchema.Builder<T,​B> attributeConverterProviders​(AttributeConverterProvider... attributeConverterProviders)
        Specifies the AttributeConverterProviders to use with the table schema. The list of attribute converter providers must provide AttributeConverters for all types used in the schema. The attribute converter providers will be loaded in the strict order they are supplied here.

        Calling this method will override the default attribute converter provider DefaultAttributeConverterProvider, which provides standard converters for most primitive and common Java types, so that provider must included in the supplied list if it is to be used. Providing an empty list here will cause no providers to get loaded.

        Adding one custom attribute converter provider and using the default as fallback: builder.attributeConverterProviders(customAttributeConverter, AttributeConverterProvider.defaultProvider())

        Parameters:
        attributeConverterProviders - a list of attribute converter providers to use with the table schema
      • attributeConverterProviders

        public StaticImmutableTableSchema.Builder<T,​B> attributeConverterProviders​(List<AttributeConverterProvider> attributeConverterProviders)
        Specifies the AttributeConverterProviders to use with the table schema. The list of attribute converter providers must provide AttributeConverters for all types used in the schema. The attribute converter providers will be loaded in the strict order they are supplied here.

        Calling this method will override the default attribute converter provider DefaultAttributeConverterProvider, which provides standard converters for most primitive and common Java types, so that provider must included in the supplied list if it is to be used. Providing an empty list here will cause no providers to get loaded.

        Adding one custom attribute converter provider and using the default as fallback: List<AttributeConverterProvider> providers = new ArrayList<>( customAttributeConverter, AttributeConverterProvider.defaultProvider()); builder.attributeConverterProviders(providers);

        Parameters:
        attributeConverterProviders - a list of attribute converter providers to use with the table schema