Package org.codice.alliance.libs.klv
Class BaseKlvHandler
java.lang.Object
org.codice.alliance.libs.klv.BaseKlvHandler
- All Implemented Interfaces:
KlvHandler
- Direct Known Subclasses:
GeoBoxHandler,LatitudeLongitudeHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final <T extends Serializable>
Optional<ddf.catalog.data.Attribute>asAttribute(Collection<T> col) Get the name of the metacard attribute that is associated with this handler.protected <T> intgetMinimumListSize(Collection<List<T>> lists) protected voidsubsample(Map<String, List<Double>> data, int subsampleCount, int size, BiConsumer<String, Double> biConsumer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codice.alliance.libs.klv.KlvHandler
accept, asAttribute, reset
-
Constructor Details
-
BaseKlvHandler
-
-
Method Details
-
getAttributeName
Description copied from interface:KlvHandlerGet the name of the metacard attribute that is associated with this handler.- Specified by:
getAttributeNamein interfaceKlvHandler- Returns:
- name of metacard attribute
-
asAttribute
protected final <T extends Serializable> Optional<ddf.catalog.data.Attribute> asAttribute(Collection<T> col) -
getMinimumListSize
-
subsample
-