public class DataProjection<T> extends ForwardingMap<KT,VT> implements Projection<T>
Projection based on a TObject result set, that transforms
values on the fly.| Modifier and Type | Method and Description |
|---|---|
protected Supplier<Map<T,Set<Long>>> |
$prettyMapSupplier()
|
protected Map<KT,VT> |
delegate() |
boolean |
isEmpty() |
static <T> DataProjection<T> |
of(Map<TObject,Set<Long>> data)
Convert the
TObject values in the results to their java
counterparts and prettify the result set
lazily. |
int |
size() |
String |
toString() |
protected T |
transformKey(TObject key)
Transform the
key to the appropriate type. |
protected Set<Long> |
transformValue(Set<Long> value)
Transform the
value to the appropriate type. |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, keySet, put, putAll, remove, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, valuesclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic static <T> DataProjection<T> of(Map<TObject,Set<Long>> data)
TObject values in the results to their java
counterparts and prettify the result set
lazily.data - results in the form of a Map whose
toString() method does pretty printingprotected Supplier<Map<T,Set<Long>>> $prettyMapSupplier()
Mapcom.cinchapi.concourse.util.PrettyLinkedHashMap},
com.cinchapi.concourse.util.PrettyLinkedTableMap}protected T transformKey(TObject key)
key to the appropriate type.protected Set<Long> transformValue(Set<Long> value)
value to the appropriate type.public boolean isEmpty()
public int size()
public final String toString()
toString in class ForwardingObjectprotected Map<KT,VT> delegate()
delegate in class ForwardingMap<KT,VT>