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_LEN
ARRAY_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() |
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() |
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, compareTo, copyTo, 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getColumn, getColumnAs, getValue, getValueAs, getValuePosition, hasValue
as, asByteBuffer, asReadBuffer, getBoolean, getByte, getBytes, getChar, getChars, getDouble, getDoubles, getFloat, getFloats, getInt, getInts, getLong, getLongs, getShort, getShorts, length, subrange, subrange
compareTo
public static final EntryMetaData[] EMPTY_SCHEMA
public static final 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 MetaAnnotatable
public boolean hasMetaData()
hasMetaData
in interface MetaAnnotated
public Map<EntryMetaData,Object> getMetaData()
getMetaData
in interface MetaAnnotated
public RelationCache getCache()
Entry
public void setCache(RelationCache cache)
Entry
public static Entry of(StaticBuffer buffer)
public static <E> Entry ofBytes(E element, StaticArrayEntry.GetColVal<E,byte[]> getter)
public static <E> Entry ofByteBuffer(E element, StaticArrayEntry.GetColVal<E,ByteBuffer> getter)
public static <E> Entry ofStaticBuffer(E element, StaticArrayEntry.GetColVal<E,StaticBuffer> getter)
public static <E> Entry of(StaticBuffer column, StaticBuffer value)
public int getValuePosition()
getValuePosition
in interface Entry
public StaticBuffer getColumn()
public <T> T getColumnAs(StaticBuffer.Factory<T> factory)
getColumnAs
in interface Entry
public StaticBuffer getValue()
public <T> T getValueAs(StaticBuffer.Factory<T> factory)
getValueAs
in interface Entry
public boolean equals(Object o)
equals
in class StaticArrayBuffer
public int hashCode()
StaticArrayBuffer
hashCode
in class StaticArrayBuffer
public int compareTo(StaticBuffer other)
compareTo
in interface Comparable<StaticBuffer>
compareTo
in class StaticArrayBuffer
public String toString()
toString
in class StaticArrayBuffer
Copyright © 2012–2024. All rights reserved.