Calls toMap.apply(i)
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Helper function to ensure that numerical types are exactly right (int for int, long for long, etc.
Helper function to ensure that numerical types are exactly right (int for int, long for long, etc.).
datum to convert
schema to convert it to
converted datum (boxed primitives)
One of only three java.util.Map
methods that have been implemented (needed for filling in the Avro library).
One of only three java.util.Map
methods that have been implemented (needed for filling in the Avro library).
One of only three java.util.Map
methods that have been implemented (needed for filling in the Avro library).
One of only three java.util.Map
methods that have been implemented (needed for filling in the Avro library).
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
One of only three java.util.Map
methods that have been implemented (needed for filling in the Avro library).
One of only three java.util.Map
methods that have been implemented (needed for filling in the Avro library).
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Access the Scala Map
behind this PFAMap.
Access the Scala Map
behind this PFAMap.
After the first call to this function, it references a cached Map
.
Returns an updated copy of this PFAArray (and its substructures) with a deep element replaced.
Returns an updated copy of this PFAArray (and its substructures) with a deep element replaced.
coordinates of the deep element to have replaced
function that replaces the old value with a new one
schema of the subelement
new PFAArray, leaving the old one untouched
Returns an updated copy of this PFAArray (and its substructures) with a deep element replaced.
Returns an updated copy of this PFAArray (and its substructures) with a deep element replaced.
coordinates of the deep element to have replaced
function that replaces the old value with a new one
schema of the subelement
error message if an array path index is wrong
error code if an array path index is wrong
error message if a map path index is wrong
error code if a map path index is wrong
name of the calling PFA function
locator mark for the calling PFA function
new PFAArray, leaving the old one untouched
Returns an updated copy of this PFAMap (and its substructures) with a deep element replaced.
Returns an updated copy of this PFAMap (and its substructures) with a deep element replaced.
coordinates of the deep element to have replaced
schema of the subelement
new PFAMap, leaving the old one untouched
Returns an updated copy of this PFAMap (and its substructures) with a deep element replaced.
Returns an updated copy of this PFAMap (and its substructures) with a deep element replaced.
coordinates of the deep element to have replaced
new value for the subelement
schema of the subelement
error message if an array path index is wrong
error code if an array path index is wrong
error message if a map path index is wrong
error code if a map path index is wrong
name of the calling PFA function
locator mark for the calling PFA function
new PFAMap, leaving the old one untouched
Returns an updated copy of this PFAMap (and its substructures) with a deep element replaced.
Returns an updated copy of this PFAMap (and its substructures) with a deep element replaced.
coordinates of the deep element to have replaced
new value for the subelement
schema of the subelement
new PFAMap, leaving the old one untouched
Returns an updated copy of this PFAMap (and its substructures) with a deep element replaced.
Returns an updated copy of this PFAMap (and its substructures) with a deep element replaced.
coordinates of the deep element to have replaced
new value for the subelement
schema of the subelement
new PFAMap, leaving the old one untouched
Returns an updated copy of this PFAMap with one element replaced.
Returns an updated copy of this PFAMap with one element replaced.
key of element to have replaced
new value for element
schema of element
new PFAMap, leaving the old one untouched
Raises NotImplementedError
.
Raises NotImplementedError
.
Represents all maps in PFA (generic or specific).
Data are stored in an immutable Scala
Map
, which is either created directly by thePFAMap.fromMap
companion object method or filled by Avro (see below).Primitives should be typed in Scala as boxed primitives (e.g.
PFAArray[java.lang.Integer]
, notPFAArray[Int]
).To interact with the Avro library, a PFAMap satisfies the
java.util.Map
contract, but only minimally (most methods throwNotImplementedException
).It has two stages:
put
, the PFAMap grows using aMap.Builder
toMap
, the builder is dropped and the PFAMap becomes immutableThe
toMap
method should be considered lightweight (the backingMap
is only created once).