Class StandardWriteFilter

    • Field Detail

      • ALWAYS_SET_FIELDS

        public static final Set<String> ALWAYS_SET_FIELDS
      • ALWAYS_ADD_FIELDS

        public static final Set<String> ALWAYS_ADD_FIELDS
    • Constructor Detail

      • StandardWriteFilter

        protected StandardWriteFilter​(int maxKeySize,
                                      int maxFieldSize,
                                      int maxEstimatedSize,
                                      int maxValuesPerField,
                                      Set<String> includeFields,
                                      boolean includeEmpty)
        Parameters:
        maxKeySize - maximum key size in UTF-16 bytes-- keys will be truncated to this length; if less than 0, keys will not be truncated
        maxEstimatedSize -
        includeFields - if null or empty, all fields are included; otherwise, which fields to add to the metadata object.
        includeEmpty - if true, this will set or add an empty value to the metadata object.
    • Method Detail

      • add

        public void add​(String field,
                        String value,
                        Map<String,​String[]> data)
        Description copied from interface: MetadataWriteFilter
        Based on the field and value, this filter modifies the field and/or the value to something that should be added to the Metadata object. If the value is null, no value is set or added. Status updates (e.g. write limit reached) can be added directly to the underlying metadata.
        Specified by:
        add in interface MetadataWriteFilter