Class SelectFields

    • Constructor Detail

      • SelectFields

        public SelectFields()
        Keeps no fields from the input. To specify fields to keep, use FilterFields.setFieldNames(String...). If no fields are specified when the containing graph is executed, an error will be raised.
      • SelectFields

        public SelectFields​(List<String> fields)
        Keeps the specified fields from the input. When the containing graph is executed, an error will be raised if any named field is not present.
        Parameters:
        fields - the names of fields to keep.
      • SelectFields

        public SelectFields​(String... fields)
        Keeps the specified fields from the input. When the containing graph is executed, an error will be raised if any named field is not present.
        Parameters:
        fields - the names of fields to keep.
      • SelectFields

        public SelectFields​(RecordTextSchema<?> schema)
        Keeps the specified fields from the input schema. When the containing graph is executed, an error will be raised if any named field is not present.
        Parameters:
        schema - the schema with the fields to keep.