Package org.apache.avro.generic
Class PrimitivesArrays.FloatArray
java.lang.Object
java.util.AbstractCollection<Float>
java.util.AbstractList<Float>
org.apache.avro.generic.GenericData.AbstractArray<Float>
org.apache.avro.generic.PrimitivesArrays.FloatArray
- All Implemented Interfaces:
Comparable<GenericArray<Float>>
,Iterable<Float>
,Collection<Float>
,List<Float>
,GenericArray<Float>
,GenericContainer
- Enclosing class:
PrimitivesArrays
-
Field Summary
Fields inherited from class org.apache.avro.generic.GenericData.AbstractArray
size
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorDescriptionFloatArray
(int capacity, Schema schema) FloatArray
(Schema schema, Collection<Float> c) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int location, float o) void
void
clear()
get
(int i) float
getFloat
(int i) Direct primitive int access.peek()
The current content of the location whereList.add(Object)
would next store an element, if any.remove
(int i) float
set
(int i, float o) protected void
swap
(int index1, int index2) Methods inherited from class org.apache.avro.generic.GenericData.AbstractArray
compareTo, equals, getSchema, hashCode, iterator, reset, reverse, size
Methods inherited from class java.util.AbstractList
add, addAll, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface org.apache.avro.generic.GenericArray
prune
Methods inherited from interface java.util.List
add, addAll, addAll, contains, containsAll, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
FloatArray
-
FloatArray
-
-
Method Details
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<Float>
- Specified by:
clear
in interfaceList<Float>
- Overrides:
clear
in classAbstractList<Float>
-
get
-
getFloat
public float getFloat(int i) Direct primitive int access.- Parameters:
i
- : index.- Returns:
- value at index.
-
add
-
add
public void add(int location, float o) -
set
-
set
public float set(int i, float o) -
remove
-
peek
Description copied from interface:GenericArray
The current content of the location whereList.add(Object)
would next store an element, if any. This permits reuse of arrays and their elements without allocating new objects. -
swap
protected void swap(int index1, int index2) - Specified by:
swap
in classGenericData.AbstractArray<Float>
-