public class StaticArrayEntry extends StaticArrayBuffer implements Entry, MetaAnnotatable
| Modifier and Type | Class and Description |
|---|---|
static interface |
StaticArrayEntry.DataHandler<D> |
static interface |
StaticArrayEntry.GetColVal<E,D> |
StaticBuffer.Factory<T>| Modifier and Type | Field and Description |
|---|---|
static EntryMetaData[] |
EMPTY_SCHEMA |
static StaticArrayEntry.GetColVal<Entry,StaticBuffer> |
ENTRY_GETTER |
BYTE_LEN, CHAR_LEN, DOUBLE_LEN, FLOAT_LEN, INT_LEN, LONG_LEN, SHORT_LENARRAY_FACTORY, BB_FACTORY, STATIC_FACTORY| Constructor and Description |
|---|
StaticArrayEntry(byte[] array,
int valuePosition) |
StaticArrayEntry(byte[] array,
int limit,
int valuePosition) |
StaticArrayEntry(byte[] array,
int offset,
int limit,
int valuePosition) |
StaticArrayEntry(StaticBuffer buffer,
int valuePosition) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(StaticBuffer other) |
boolean |
equals(Object o) |
RelationCache |
getCache()
Returns the cached parsed representation of this Entry if it exists, else NULL
|
StaticBuffer |
getColumn() |
<T> T |
getColumnAs(StaticBuffer.Factory<T> factory) |
Map<EntryMetaData,Object> |
getMetaData()
Returns all meta data associated with this entry
|
StaticBuffer |
getValue() |
<T> T |
getValueAs(StaticBuffer.Factory<T> factory) |
int |
getValuePosition() |
int |
hashCode()
Thread-safe hashcode method for StaticBuffer written according to
Effective Java 2e by Josh Bloch.
|
boolean |
hasMetaData()
Returns true if this entry has associated meta data
|
boolean |
hasValue() |
static Entry |
of(StaticBuffer buffer) |
static <E> Entry |
of(StaticBuffer column,
StaticBuffer value) |
static <E> Entry |
ofByteBuffer(E element,
StaticArrayEntry.GetColVal<E,ByteBuffer> getter) |
static <E> Entry |
ofBytes(E element,
StaticArrayEntry.GetColVal<E,byte[]> getter) |
static <E> Entry |
ofStaticBuffer(E element,
StaticArrayEntry.GetColVal<E,StaticBuffer> getter) |
void |
setCache(RelationCache cache)
Sets the cached parsed representation of this Entry.
|
Object |
setMetaData(EntryMetaData key,
Object value) |
String |
toString() |
as, as, asByteBuffer, asReadBuffer, compareTo, compareTo, compareTo, getBoolean, getByte, getBytes, getChar, getChars, getDouble, getDoubles, getFloat, getFloats, getInt, getInt, getInts, getLong, getLong, getLongs, getShort, getShorts, hashCode, length, of, of, putInt, putLong, subrange, subrange, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetColumn, getColumnAs, getValue, getValueAs, getValuePosition, hasValueas, asByteBuffer, asReadBuffer, getBoolean, getByte, getBytes, getChar, getChars, getDouble, getDoubles, getFloat, getFloats, getInt, getInts, getLong, getLongs, getShort, getShorts, length, subrange, subrangecompareTopublic static final EntryMetaData[] EMPTY_SCHEMA
public static StaticArrayEntry.GetColVal<Entry,StaticBuffer> ENTRY_GETTER
public StaticArrayEntry(byte[] array,
int offset,
int limit,
int valuePosition)
public StaticArrayEntry(byte[] array,
int limit,
int valuePosition)
public StaticArrayEntry(byte[] array,
int valuePosition)
public StaticArrayEntry(StaticBuffer buffer, int valuePosition)
public Object setMetaData(EntryMetaData key, Object value)
setMetaData in interface MetaAnnotatablepublic boolean hasMetaData()
MetaAnnotatedhasMetaData in interface MetaAnnotatedpublic Map<EntryMetaData,Object> getMetaData()
MetaAnnotatedgetMetaData in interface MetaAnnotatedpublic RelationCache getCache()
Entrypublic void setCache(RelationCache cache)
Entrypublic static Entry of(StaticBuffer buffer)
public static final <E> Entry ofBytes(E element, StaticArrayEntry.GetColVal<E,byte[]> getter)
public static final <E> Entry ofByteBuffer(E element, StaticArrayEntry.GetColVal<E,ByteBuffer> getter)
public static final <E> Entry ofStaticBuffer(E element, StaticArrayEntry.GetColVal<E,StaticBuffer> getter)
public static final <E> Entry of(StaticBuffer column, StaticBuffer value)
public int getValuePosition()
getValuePosition in interface Entrypublic StaticBuffer getColumn()
public <T> T getColumnAs(StaticBuffer.Factory<T> factory)
getColumnAs in interface Entrypublic StaticBuffer getValue()
public <T> T getValueAs(StaticBuffer.Factory<T> factory)
getValueAs in interface Entrypublic boolean equals(Object o)
equals in class StaticArrayBufferpublic int hashCode()
StaticArrayBufferhashCode in class StaticArrayBufferpublic int compareTo(StaticBuffer other)
compareTo in interface Comparable<StaticBuffer>compareTo in class StaticArrayBufferpublic String toString()
toString in class StaticArrayBufferCopyright © 2012–2015. All rights reserved.