Class PiCriterion.Builder
- java.lang.Object
- 
- org.onosproject.net.flow.criteria.PiCriterion.Builder
 
- 
- Enclosing class:
- PiCriterion
 
 @Beta public static final class PiCriterion.Builder extends Object PiCriterion Builder.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description PiCriterion.Builderadd(PiFieldMatch field)Adds a match field to the builder.PiCriterionbuild()Builds a PiCriterion.PiCriterion.BuildermatchExact(PiMatchFieldId fieldId, byte[] value)Adds an exact field match for the given fieldId and value.PiCriterion.BuildermatchExact(PiMatchFieldId fieldId, int value)Adds an exact field match for the given fieldId and value.PiCriterion.BuildermatchExact(PiMatchFieldId fieldId, long value)Adds an exact field match for the given fieldId and value.PiCriterion.BuildermatchExact(PiMatchFieldId fieldId, short value)Adds an exact field match for the given fieldId and value.PiCriterion.BuildermatchExact(PiMatchFieldId fieldId, String value)Adds an exact field match for the given fieldId and value.PiCriterion.BuildermatchLpm(PiMatchFieldId fieldId, byte[] value, int prefixLength)Adds a longest-prefix field match for the given fieldId, value and prefix length.PiCriterion.BuildermatchLpm(PiMatchFieldId fieldId, int value, int prefixLength)Adds a longest-prefix field match for the given fieldId, value and prefix length.PiCriterion.BuildermatchLpm(PiMatchFieldId fieldId, long value, int prefixLength)Adds a longest-prefix field match for the given fieldId, value and prefix length.PiCriterion.BuildermatchLpm(PiMatchFieldId fieldId, short value, int prefixLength)Adds a longest-prefix field match for the given fieldId, value and prefix length.PiCriterion.BuildermatchOptional(PiMatchFieldId fieldId, byte[] value)Adds an optional field match for the given fieldId and value.PiCriterion.BuildermatchOptional(PiMatchFieldId fieldId, int value)Adds an optional field match for the given fieldId and value.PiCriterion.BuildermatchOptional(PiMatchFieldId fieldId, long value)Adds an optional field match for the given fieldId and value.PiCriterion.BuildermatchOptional(PiMatchFieldId fieldId, short value)Adds an optional field match for the given fieldId and value.PiCriterion.BuildermatchOptional(PiMatchFieldId fieldId, String value)Adds an optional field match for the given fieldId and value.PiCriterion.BuildermatchRange(PiMatchFieldId fieldId, byte[] low, byte[] high)Adds a range field match for the given fieldId, low and high.PiCriterion.BuildermatchRange(PiMatchFieldId fieldId, int low, int high)Adds a range field match for the given fieldId, low and high.PiCriterion.BuildermatchRange(PiMatchFieldId fieldId, long low, long high)Adds a range field match for the given fieldId, low and high.PiCriterion.BuildermatchRange(PiMatchFieldId fieldId, short low, short high)Adds a range field match for the given fieldId, low and high.PiCriterion.BuildermatchTernary(PiMatchFieldId fieldId, byte[] value, byte[] mask)Adds a ternary field match for the given fieldId, value and mask.PiCriterion.BuildermatchTernary(PiMatchFieldId fieldId, int value, int mask)Adds a ternary field match for the given fieldId, value and mask.PiCriterion.BuildermatchTernary(PiMatchFieldId fieldId, long value, long mask)Adds a ternary field match for the given fieldId, value and mask.PiCriterion.BuildermatchTernary(PiMatchFieldId fieldId, short value, short mask)Adds a ternary field match for the given fieldId, value and mask.
 
- 
- 
- 
Method Detail- 
addpublic PiCriterion.Builder add(PiFieldMatch field) Adds a match field to the builder.- Parameters:
- field- the field value
- Returns:
- this
 
 - 
matchExactpublic PiCriterion.Builder matchExact(PiMatchFieldId fieldId, short value) Adds an exact field match for the given fieldId and value.- Parameters:
- fieldId- protocol-independent header field Id
- value- exact match value
- Returns:
- this
 
 - 
matchExactpublic PiCriterion.Builder matchExact(PiMatchFieldId fieldId, int value) Adds an exact field match for the given fieldId and value.- Parameters:
- fieldId- protocol-independent header field Id
- value- exact match value
- Returns:
- this
 
 - 
matchExactpublic PiCriterion.Builder matchExact(PiMatchFieldId fieldId, long value) Adds an exact field match for the given fieldId and value.- Parameters:
- fieldId- protocol-independent header field Id
- value- exact match value
- Returns:
- this
 
 - 
matchExactpublic PiCriterion.Builder matchExact(PiMatchFieldId fieldId, byte[] value) Adds an exact field match for the given fieldId and value.- Parameters:
- fieldId- protocol-independent header field Id
- value- exact match value
- Returns:
- this
 
 - 
matchExactpublic PiCriterion.Builder matchExact(PiMatchFieldId fieldId, String value) Adds an exact field match for the given fieldId and value.- Parameters:
- fieldId- protocol-independent header field Id
- value- exact match value
- Returns:
- this
 
 - 
matchTernarypublic PiCriterion.Builder matchTernary(PiMatchFieldId fieldId, short value, short mask) Adds a ternary field match for the given fieldId, value and mask.- Parameters:
- fieldId- protocol-independent header field Id
- value- ternary match value
- mask- ternary match mask
- Returns:
- this
 
 - 
matchTernarypublic PiCriterion.Builder matchTernary(PiMatchFieldId fieldId, int value, int mask) Adds a ternary field match for the given fieldId, value and mask.- Parameters:
- fieldId- protocol-independent header field Id
- value- ternary match value
- mask- ternary match mask
- Returns:
- this
 
 - 
matchTernarypublic PiCriterion.Builder matchTernary(PiMatchFieldId fieldId, long value, long mask) Adds a ternary field match for the given fieldId, value and mask.- Parameters:
- fieldId- protocol-independent header field Id
- value- ternary match value
- mask- ternary match mask
- Returns:
- this
 
 - 
matchTernarypublic PiCriterion.Builder matchTernary(PiMatchFieldId fieldId, byte[] value, byte[] mask) Adds a ternary field match for the given fieldId, value and mask.- Parameters:
- fieldId- protocol-independent header field Id
- value- ternary match value
- mask- ternary match mask
- Returns:
- this
 
 - 
matchLpmpublic PiCriterion.Builder matchLpm(PiMatchFieldId fieldId, short value, int prefixLength) Adds a longest-prefix field match for the given fieldId, value and prefix length.- Parameters:
- fieldId- protocol-independent header field Id
- value- lpm match value
- prefixLength- lpm match prefix length
- Returns:
- this
 
 - 
matchLpmpublic PiCriterion.Builder matchLpm(PiMatchFieldId fieldId, int value, int prefixLength) Adds a longest-prefix field match for the given fieldId, value and prefix length.- Parameters:
- fieldId- protocol-independent header field Id
- value- lpm match value
- prefixLength- lpm match prefix length
- Returns:
- this
 
 - 
matchLpmpublic PiCriterion.Builder matchLpm(PiMatchFieldId fieldId, long value, int prefixLength) Adds a longest-prefix field match for the given fieldId, value and prefix length.- Parameters:
- fieldId- protocol-independent header field Id
- value- lpm match value
- prefixLength- lpm match prefix length
- Returns:
- this
 
 - 
matchLpmpublic PiCriterion.Builder matchLpm(PiMatchFieldId fieldId, byte[] value, int prefixLength) Adds a longest-prefix field match for the given fieldId, value and prefix length.- Parameters:
- fieldId- protocol-independent header field Id
- value- lpm match value
- prefixLength- lpm match prefix length
- Returns:
- this
 
 - 
matchRangepublic PiCriterion.Builder matchRange(PiMatchFieldId fieldId, short low, short high) Adds a range field match for the given fieldId, low and high.- Parameters:
- fieldId- protocol-independent header field Id
- low- range match low value
- high- range match high value
- Returns:
- this
 
 - 
matchRangepublic PiCriterion.Builder matchRange(PiMatchFieldId fieldId, int low, int high) Adds a range field match for the given fieldId, low and high.- Parameters:
- fieldId- protocol-independent header field Id
- low- range match low value
- high- range match high value
- Returns:
- this
 
 - 
matchRangepublic PiCriterion.Builder matchRange(PiMatchFieldId fieldId, long low, long high) Adds a range field match for the given fieldId, low and high.- Parameters:
- fieldId- protocol-independent header field Id
- low- range match low value
- high- range match high value
- Returns:
- this
 
 - 
matchRangepublic PiCriterion.Builder matchRange(PiMatchFieldId fieldId, byte[] low, byte[] high) Adds a range field match for the given fieldId, low and high.- Parameters:
- fieldId- protocol-independent header field Id
- low- range match low value
- high- range match high value
- Returns:
- this
 
 - 
matchOptionalpublic PiCriterion.Builder matchOptional(PiMatchFieldId fieldId, short value) Adds an optional field match for the given fieldId and value.- Parameters:
- fieldId- protocol-independent header field Id
- value- optional match value
- Returns:
- this
 
 - 
matchOptionalpublic PiCriterion.Builder matchOptional(PiMatchFieldId fieldId, int value) Adds an optional field match for the given fieldId and value.- Parameters:
- fieldId- protocol-independent header field Id
- value- optional match value
- Returns:
- this
 
 - 
matchOptionalpublic PiCriterion.Builder matchOptional(PiMatchFieldId fieldId, long value) Adds an optional field match for the given fieldId and value.- Parameters:
- fieldId- protocol-independent header field Id
- value- optional match value
- Returns:
- this
 
 - 
matchOptionalpublic PiCriterion.Builder matchOptional(PiMatchFieldId fieldId, byte[] value) Adds an optional field match for the given fieldId and value.- Parameters:
- fieldId- protocol-independent header field Id
- value- optional match value
- Returns:
- this
 
 - 
matchOptionalpublic PiCriterion.Builder matchOptional(PiMatchFieldId fieldId, String value) Adds an optional field match for the given fieldId and value.- Parameters:
- fieldId- protocol-independent header field Id
- value- optional match value
- Returns:
- this
 
 - 
buildpublic PiCriterion build() Builds a PiCriterion.- Returns:
- PiCriterion
 
 
- 
 
-