Add multiple partitions for when Record value x equals any
value in the list.
Add multiple partitions for when Record value x equals any
value in the list. This is a convenience function that invokes
addPartitionEquals for each value in s.
java.lang.IllegalArgumentException when an existing
interval includes any value in s or when v is outside the
range min–max.
addSinglePartitionEqualsAny for a method that puts multiple values in a single partition
Adds a single additional rule to this Partitioner that covers all values that are not currently covered by an existing partition.
Adds a single additional rule to this Partitioner that covers all values that are not currently covered by an existing partition. This method may only be used when the Partitioner does not contain any ranges; that is, when only addPartitionEquals, addMultiplePartitionsEqualsAny, and addSinglePartitionEqualsAny have been used.
java.lang.RuntimeException when the resulting path
component length would be larger than max_path_component, when
the Partitioner contains ranges, or when the Partitioner is
empty.
coverRanges for an alternative way to handle remaining values
Add a partition for when Record value x == v.
Add a partition for when Record value x == v.
java.lang.IllegalArgumentException when an existing
interval includes v or when v is outside the range
min–max.
Add a partition for when Record value x >= v.
Add a partition for when Record value x >= v. Since
partitions may not overlap, this method and
addPartitionGreaterThan may only be called one time for a
Partitioner.
java.lang.IllegalArgumentException when an existing
interval includes any value greater than or equal to v or when
v is outside the range min–max.
Add a partition for when Record value x > v.
Add a partition for when Record value x > v. Since
partitions may not overlap, this method and
addPartitionGreaterEquals may only be called one time for a
Partitioner.
java.lang.IllegalArgumentException when an existing
interval includes any value greater than v, when v is
outside the range min–max, or when v equals max.
Add a partition for when Record value x <= v.
Add a partition for when Record value x <= v. Since
partitions may not overlap, this method and
addPartitionLessThan may only be called one time for a
Partitioner.
java.lang.IllegalArgumentException when an existing
interval includes any value less than or equal to v or
when v is outside the range min–max.
Add a partition for when Record value x < v.
Add a partition for when Record value x < v. Since
partitions may not overlap, this method and
addPartitionLessEquals may only be called one time for a
Partitioner.
java.lang.IllegalArgumentException when an existing
interval includes any value less than v, when v is
outside the range min–max, or when v equals min.
Add a partition for when Record value x is within the range
lower to upper where lower and/or upper may be excluded
from the range by specifying the lowerIncluded and/or
upperIncluded parameters as false.
Add a partition for when Record value x is within the range
lower to upper where lower and/or upper may be excluded
from the range by specifying the lowerIncluded and/or
upperIncluded parameters as false.
java.lang.IllegalArgumentException when an existing
interval includes any value that would also be included in
this interval, when lower or upper are outside the range
min–max, when lower is greater than upper, or when
either Boolean parameter is false and lower equals
upper.
Add a partition for when Record value x satifies lower <=
x <= upper.
Add a partition for when Record value x satifies lower <=
x <= upper.
java.lang.IllegalArgumentException when an existing
interval includes any value between lower and upper
inclusive or when lower or upper are outside the range
min–max.
Add a single partition for when Record value x equals any
value in the list.
Add a single partition for when Record value x equals any
value in the list.
java.lang.IllegalArgumentException when an existing
interval includes any value in s or when v is outside
the range min–max.
addMultiplePartitionsEqualsAny for a method that creates multiple partitions: one for each value in a sequence
Checks that the ranges in the Partition are sane (i.e., that
they do not overlap) and returns true if they do not overlap
and false when they do.
Checks that the ranges in the Partition are sane (i.e., that
they do not overlap) and returns true if they do not overlap
and false when they do.
If true, print each range as it is examined,
any holes found in the Partitions, and ranges that overlap.
Adds multiple range rules to this Partitioner for all values
that are not currently covered by an existing partition so that
every possible value between min and max is covered.
Adds multiple range rules to this Partitioner for all values
that are not currently covered by an existing partition so that
every possible value between min and max is covered. In
addtion, causes the Partitioner to create an "is_null=KEY"
directory for Records that do not contain the field key.
If called on an empty Partitioner, creates a Partition from
min to max inclusive.
addNotIn for an alternative way to handle remaining values
In the directory name generated by this partitoiner, the delimiter between the operator, field name, and argument(s)
In the directory name generated by this partitoiner, the delimiter between the operator, field name, and argument(s)
The maximum length of a path component that the file system supports.
The maximum length of a path component that the file system supports.
Returns the path component from the file named 'filename' based on this partition as an Option.
Returns the path component from the file named 'filename' based
on this partition as an Option. Returns None there is not a
specific component for the field's value. The return value when
the field key is not present in the Record depends on the
value of useNullComponent: returns None when it is false and
Some("is_null${delim}${encodedKey}") when it is true.
Returns the path component for the
Record rec based on this
partition as an Option.
Returns the path component for the
Record rec based on this
partition as an Option. Returns None there is not a specific
component for the field's value. The return value when the
field key is not present in the
Record depends on the value
of useNullComponent: returns None when it is false and
Some(s"is_null${delim}${encodedKey}") when it is true.
Whether a missing value in the record is recorded by an "is_null=FIELD" directory component.
Whether a missing value in the record is recorded by an "is_null=FIELD" directory component.
(Since version 1.2.2) Replace with addMultiplePartitionsEqualsAny
Partition a Record on its
keyfield which contains an unsigned 8-bit value.