Interface RowValues

All Superinterfaces:
LoadedValues<Long>

@PublicApi public interface RowValues extends LoadedValues<Long>
An object that implements RowValues interface is supplied as a result of attributes calculation by StructureAttributeService. The interface allows retrieval of values by row ID and attribute specification.
See Also:
  • Field Details

  • Method Details

    • consume

      void consume(Function<AttributeSpec<?>,BiConsumer<LongSizedIterable,LongFunction<LoadedValue<?>>>> consumer)
      Passes all data to the consumer. Consumer will be called only once for each attribute spec. It can return a null or a biconsumer that will then be fed all row ids that are in use and a function to retrieve a value for each row id.
      Parameters:
      consumer -
    • get

      default <T> T get(long key, @Nullable AttributeSpec<T> attribute)