|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GenericData.Array(int capacity, Schema schema)
Method Detail |
---|
public Schema getSchema()
GenericContainer
getSchema
in interface GenericContainer
public 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()
GenericArray
GenericArray.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 Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(GenericData.Array<T> that)
compareTo
in interface Comparable<GenericData.Array<T>>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |