|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avro.generic.GenericData.Array<T>
public static class GenericData.Array<T>
Default implementation of GenericArray.
| Constructor Summary | |
|---|---|
GenericData.Array(int capacity,
Schema schema)
|
|
| Method Summary | |
|---|---|
void |
add(T o)
Add an element to this array. |
void |
clear()
Reset the size of the array to zero. |
int |
compareTo(GenericData.Array<T> that)
|
boolean |
equals(Object o)
|
Schema |
getSchema()
The schema of this instance. |
int |
hashCode()
|
Iterator<T> |
iterator()
|
T |
peek()
The current content of the location where GenericArray.add(Object) would next
store an element, if any. |
long |
size()
The number of elements contained in this array. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericData.Array(int capacity,
Schema schema)
| Method Detail |
|---|
public Schema getSchema()
GenericContainer
getSchema in interface GenericContainerpublic long size()
GenericArray
size in interface GenericArray<T>public void clear()
GenericArray
clear in interface GenericArray<T>public Iterator<T> iterator()
iterator in interface Iterable<T>public void add(T o)
GenericArray
add in interface GenericArray<T>public T peek()
GenericArrayGenericArray.add(Object) would next
store an element, if any. This permits reuse of arrays and their elements
without allocating new objects.
peek in interface GenericArray<T>public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int compareTo(GenericData.Array<T> that)
compareTo in interface Comparable<GenericData.Array<T>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||