Top Description Methods
org.apache.avro.generic

public Interface GenericArray<T>

extends List<T>, GenericContainer
Known Direct Implementers
org.apache.avro.generic.GenericData.Array
Imports
java.util.List

Array that permits reuse of contained elements.

Method Summary

Modifier and TypeMethod and Description
public T
peek()

The current content of the location where add(Object) would next store an element, if any.

public default void
prune()

clean up reusable objects from array (if reset didn't already)

public default void
reset()

reset size counter of array to zero

public void
reverse()

Reverses the order of the elements in this array.

Inherited from java.util.List:
addaddaddAlladdAlladdFirstaddLastclearcontainscontainsAllcopyOfequalsgetgetFirstgetLasthashCodeindexOfisEmptyiteratorlastIndexOflistIteratorlistIteratorofofofofofofofofofofofofremoveremoveremoveAllremoveFirstremoveLastreplaceAllretainAllreversedsetsizesortspliteratorsubListtoArraytoArray
Inherited from org.apache.avro.generic.GenericContainer:
getSchema

Method Detail

peekback to summary
public T peek()

The current content of the location where add(Object) would next store an element, if any. This permits reuse of arrays and their elements without allocating new objects.

pruneback to summary
public default void prune()

clean up reusable objects from array (if reset didn't already)

resetback to summary
public default void reset()

reset size counter of array to zero

reverseback to summary
public void reverse()

Reverses the order of the elements in this array.