public interface Accessor<S,T,A extends net.openhft.chronicle.algo.bytes.AccessCommon<T>>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Accessor.Full<S,T> |
static interface |
Accessor.Read<S,T> |
| Modifier and Type | Method and Description |
|---|---|
A |
access()
Returns
Access for the given source. |
static Accessor.Full<boolean[],boolean[]> |
booleanArrayAccessor() |
static Accessor.Full<byte[],byte[]> |
byteArrayAccessor() |
static Accessor.Full<char[],char[]> |
charArrayAccessor() |
static <B extends net.openhft.chronicle.bytes.BytesStore<B,U>,U> |
checkedBytesStoreAccessor() |
static Accessor.Read<CharSequence,CharSequence> |
checkedCharSequenceAccess(ByteOrder order) |
static Accessor.Read<CharSequence,CharSequence> |
checkedNativeCharSequenceAccessor() |
T |
handle(S source)
Returns handle for
Access to the given source. |
static Accessor.Full<int[],int[]> |
intArrayAccessor() |
static Accessor.Full<long[],long[]> |
longArrayAccessor() |
long |
offset(S source,
long index)
Convert index in the source domain to
Access offset. |
static Accessor.Full<short[],short[]> |
shortArrayAccessor() |
default long |
size(long size)
Convert size (length) in the source domain to size in bytes.
|
static Accessor.Read<String,?> |
stringAccessor() |
static Accessor.Full<ByteBuffer,?> |
uncheckedByteBufferAccessor(ByteBuffer buffer) |
static <B extends net.openhft.chronicle.bytes.BytesStore<B,U>,U> Accessor.Full<B,?> checkedBytesStoreAccessor()
static Accessor.Full<ByteBuffer,?> uncheckedByteBufferAccessor(ByteBuffer buffer)
static Accessor.Full<boolean[],boolean[]> booleanArrayAccessor()
static Accessor.Full<byte[],byte[]> byteArrayAccessor()
static Accessor.Full<char[],char[]> charArrayAccessor()
static Accessor.Full<short[],short[]> shortArrayAccessor()
static Accessor.Full<int[],int[]> intArrayAccessor()
static Accessor.Full<long[],long[]> longArrayAccessor()
static Accessor.Read<String,?> stringAccessor()
static Accessor.Read<CharSequence,CharSequence> checkedNativeCharSequenceAccessor()
static Accessor.Read<CharSequence,CharSequence> checkedCharSequenceAccess(ByteOrder order)
A access()
Access for the given source.Access for the given sourceT handle(S source)
Access to the given source.source - the sourceAccess to the given sourcelong offset(S source, long index)
Access offset.source - the sourceindex - index in the source type domainAccess, corresponding to the given indexdefault long size(long size)
The default implementation returns the given size back, i. e. assuming
byte-indexed source.
size - size (length) in the source type domainCopyright © 2020. All rights reserved.