Class ComponentMapping.Query

java.lang.Object
com.iqser.red.service.redaction.v1.server.model.component.ComponentMapping.Query
All Implemented Interfaces:
Queryable
Enclosing class:
ComponentMapping

public static class ComponentMapping.Query extends Object implements Queryable
  • Constructor Details

    • Query

      public Query(com.iqser.red.service.persistence.service.v1.api.shared.model.component.ComponentMappingMetadata metadata, Stream<String[]> filteredData)
  • Method Details

    • getData

      public Stream<String[]> getData()
      Description copied from interface: Queryable
      Returns the already filtered data of this queryable object.
      Specified by:
      getData in interface Queryable
      Returns:
      the queried data as a stream
    • getMetaData

      public com.iqser.red.service.persistence.service.v1.api.shared.model.component.ComponentMappingMetadata getMetaData()
      Description copied from interface: Queryable
      Returns the metadata associated with this component mapping.
      Specified by:
      getMetaData in interface Queryable
      Returns:
      metadata of the component mapping
    • select

      public Stream<String[]> select(String... selects)
      Selects any number of fields from the data. If a string does not match any of the column labels, it is ignored.
      Parameters:
      selects - any number of column labels
      Returns:
      Stream of string arrays, dimension matches number of valid column labels.
    • select

      public Stream<String> select(String selector)
      Selects a single field, identified by its column label. If the column label is not present in the data, an empty result will be returned. If all fields should be retrieved, use getData()
      Parameters:
      selector - a single column label
      Returns:
      Stream of strings matching the previous queries
    • builder

      public static ComponentMapping.Query.QueryBuilder builder()