H
- Handle typepublic class ArrayOfHandles<H> extends Object implements ArrayHandle<H>
Modifier and Type | Class and Description |
---|---|
static class |
ArrayOfHandles.ArrayOfBroadcasts<T>
BroadcastArrayHandle implemented as an array of separate broadcast handles.
|
static class |
ArrayOfHandles.ArrayOfReducers<S,R>
ReducerArrayHandle implemented as an array of separate reducer handles.
|
Constructor and Description |
---|
ArrayOfHandles(int count,
Int2ObjFunction<H> reduceHandleFactory) |
ArrayOfHandles(int count,
Supplier<H> reduceHandleFactory) |
Modifier and Type | Method and Description |
---|---|
H |
get(int index)
Get value at index.
|
int |
getStaticSize()
Size of this array if defined up front, or throws
UnsupportedOperationException if size is dynamic
|
public ArrayOfHandles(int count, Int2ObjFunction<H> reduceHandleFactory)
public H get(int index)
ArrayHandle
get
in interface ArrayHandle<H>
public int getStaticSize()
ArrayHandle
getStaticSize
in interface ArrayHandle<H>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.