public class GenericIndexed<T> extends Object implements Indexed<T>
Modifier and Type | Field and Description |
---|---|
static ObjectStrategy<String> |
STRING_STRATEGY |
Modifier and Type | Method and Description |
---|---|
static <T> GenericIndexed<T> |
fromArray(T[] objects,
ObjectStrategy<T> strategy) |
static <T> GenericIndexed<T> |
fromIterable(Iterable<T> objectsIterable,
ObjectStrategy<T> strategy) |
T |
get(int index) |
Class<? extends T> |
getClazz() |
long |
getSerializedSize() |
int |
indexOf(T value) |
Iterator<T> |
iterator() |
static <T> GenericIndexed<T> |
read(ByteBuffer buffer,
ObjectStrategy<T> strategy) |
io.druid.segment.data.GenericIndexed.BufferIndexed |
singleThreaded()
Create a non-thread-safe Indexed, which may perform better than the underlying Indexed.
|
int |
size() |
void |
writeToChannel(WritableByteChannel channel) |
public static final ObjectStrategy<String> STRING_STRATEGY
public static <T> GenericIndexed<T> fromArray(T[] objects, ObjectStrategy<T> strategy)
public static <T> GenericIndexed<T> fromIterable(Iterable<T> objectsIterable, ObjectStrategy<T> strategy)
public long getSerializedSize()
public void writeToChannel(WritableByteChannel channel) throws IOException
IOException
public io.druid.segment.data.GenericIndexed.BufferIndexed singleThreaded()
public static <T> GenericIndexed<T> read(ByteBuffer buffer, ObjectStrategy<T> strategy)
Copyright © 2011–2015. All rights reserved.