Raises NotImplementedError
.
Raises NotImplementedError
.
The only java.util.List
method that has been implemented (needed for filling in the Avro library).
The only java.util.List
method that has been implemented (needed for filling in the Avro library).
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Calls toVector.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 (unboxed primitives)
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Access to optional metadata, which is created on first access.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Raises NotImplementedError
.
Access the Scala Vector
behind this PFAArray.
Access the Scala Vector
behind this PFAArray.
After the first call to this function, it references a cached Vector
.
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 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
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 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
new value for the subelement
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
new value for the subelement
schema of the subelement
new PFAArray, leaving the old one untouched
Returns an updated copy of this PFAArray with one element replaced.
Returns an updated copy of this PFAArray with one element replaced.
numerical index of element to have replaced
new value for element
schema of element
new PFAArray, leaving the old one untouched
Represents all arrays in PFA (generic or specific).
Data are stored in an immutable Scala
Vector
, which is either created directly by thePFAArray.fromVector
companion object method or filled by Avro (see below).Primitives should be typed in Scala as raw primitives (e.g.
PFAArray[Int]
, notPFAArray[java.lang.Integer]
).To interact with the Avro library, a PFAArray satisfies the
java.util.List
contract, but only minimally (most methods throwNotImplementedException
).It has two stages:
add
, the PFAArray grows using aVector.Builder
toVector
, the builder is dropped and the PFAArray becomes immutableThe
toVector
method should be considered lightweight (the backingVector
is only created once).PFAArrays can also have metadata to optimize some library functions (e.g. nearest neighbor benefits from having data arranged in a kd-tree, rather than just a flat list). Library functions use this at will.