Class PiMatchKey


  • @Beta
    public final class PiMatchKey
    extends Object
    Representation of all field matches of an entry of a match+action table of a protocol-independent pipeline.
    • Method Detail

      • fieldMatches

        public Collection<PiFieldMatch> fieldMatches()
        Returns the collection of field matches of this match key.
        Returns:
        collection of field matches
      • fieldMatch

        public Optional<PiFieldMatch> fieldMatch​(PiMatchFieldId fieldId)
        If present, returns the field match associated with the given header field identifier.
        Parameters:
        fieldId - field identifier
        Returns:
        optional field match
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • builder

        public static PiMatchKey.Builder builder()
        Returns a new builder of match keys.
        Returns:
        match key builder