Package herddb.utils
Class ProjectedDataAccessor
- java.lang.Object
-
- herddb.utils.AbstractDataAccessor
-
- herddb.utils.ProjectedDataAccessor
-
- All Implemented Interfaces:
DataAccessor
public class ProjectedDataAccessor extends AbstractDataAccessor
Wraps and projects a given DataAccessor- Author:
- enrico.olivelli
-
-
Field Summary
-
Fields inherited from interface herddb.utils.DataAccessor
NULL
-
-
Constructor Summary
Constructors Constructor Description ProjectedDataAccessor(String[] fieldNames, DataAccessor wrapped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforEach(BiConsumer<String,Object> consumer)Objectget(int index)Objectget(String property)String[]getFieldNames()Object[]getValues()DataAccessorgetWrapped()-
Methods inherited from class herddb.utils.AbstractDataAccessor
equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface herddb.utils.DataAccessor
fieldCompareTo, fieldEqualsTo, fieldNotEqualsTo, getNumFields, toMap
-
-
-
-
Constructor Detail
-
ProjectedDataAccessor
public ProjectedDataAccessor(String[] fieldNames, DataAccessor wrapped)
-
-
Method Detail
-
getFieldNames
public String[] getFieldNames()
-
forEach
public void forEach(BiConsumer<String,Object> consumer)
-
get
public Object get(int index)
-
getValues
public Object[] getValues()
-
getWrapped
public DataAccessor getWrapped()
-
-