public abstract class BaseByteBuffer<E> extends BaseTarget implements QueryTarget
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,HashMap<String,Object>> |
additionalParameters |
protected static List<Class> |
bitBufferedClasses |
protected BitField[] |
bitFieldOperations |
protected boolean |
bufferStatic |
protected Map<String,Integer> |
columnOrderIntoEntityHashMap |
protected List<TableColumn> |
columns |
protected Integer[] |
columnsPositionsQueue |
protected BitBufferIndexBase[] |
indexRepository |
protected boolean |
isIndexRepositoryEmpty |
protected List<Integer> |
locations |
protected int |
pageMaxCapacity |
int |
pageMaxCapacityBytes |
protected List<ByteBuffer> |
pages |
protected LinkedList<Integer> |
removed |
protected AtomicInteger |
totalBufferActiveElements |
protected int |
totalBufferSize |
int |
totalEntitySpace |
entityAny, log| Constructor and Description |
|---|
BaseByteBuffer() |
addInterceptor, addInterceptorForAllEntities, afterDelete, afterInsert, afterUpdate, areInterceptorInUse, beforeDelete, beforeInsert, beforeUpdate, enableStatisticCollecting, getAccessProtector, getInterceptorsForEntity, getInterceptorsMap, getStatisticCollector, getStatistics, handleTransactionalTarget, isStatisticCollectingEnabled, setAccessProtectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, deleteCollection, deletePkEntity, deletePkEntity, findAll, findAll, findFieldsByPk, findFieldsByPk, findManyByPk, findManyByPk, findOneByPk, findOneByPk, findOneByPk, getPrimaryKeyGenerator, insert, insertAll, insertAll, nativeSelect, nativeSelect, nativeSelect, select, select, select, select, select, selectRelated, update, update, update, update, updateWholereadEntity, readEntityList, readField, readFieldList, toSqlQueryaroundTransactionpublic int pageMaxCapacityBytes
public int totalEntitySpace
protected int pageMaxCapacity
protected AtomicInteger totalBufferActiveElements
protected int totalBufferSize
protected List<ByteBuffer> pages
protected Integer[] columnsPositionsQueue
protected BitField[] bitFieldOperations
protected List<TableColumn> columns
protected BitBufferIndexBase[] indexRepository
protected boolean isIndexRepositoryEmpty
protected boolean bufferStatic
protected LinkedList<Integer> removed
protected boolean mayBeBitBuffered(Column col)
protected void adjustForCapacity(int capacity)
public long getBufferMemoryUsage()
protected void mergeIfNecessary()
protected Integer getNextFreeLocation()
public int size()
public boolean isEmpty()
public Plate getPlate(int i, Collection<TableColumn> chosenColumns)
public Object getValue(int entityPosition, int columnPositionIntoEntity, int colOrder)
public Object getValueForColumnPosition(int entityPointer, int columnIntoEntityPosition, int columnBufferRowPosition)
public <F> List<F> finalFilterField(QueryField<?,F> query)
public org.slf4j.Logger getLog()
getLog in interface ILoggerBeangetLog in class BaseTargetpublic Plate readPlate(QueryPlate query)
readPlate in interface QueryReceiverpublic Plates readPlateList(QueryPlate query)
readPlateList in interface QueryReceiverpublic <E1 extends Entity> int delete(QueryDelete<E1> query, boolean transaction)
delete in interface QueryReceiverpublic <E1 extends Entity> int update(QueryUpdate<E1> query, boolean transaction)
update in interface QueryReceiverpublic <E1 extends Entity> E1 insert(QueryInsert<E1> query, boolean transaction)
insert in interface QueryReceiverpublic <E1 extends Entity> int delete(QueryDelete<E1> query, Propagation propagation)
delete in interface QueryReceiverpublic <E1 extends Entity> int update(QueryUpdate<E1> query, Propagation propagation)
update in interface QueryReceiverpublic <E1 extends Entity> E1 insert(QueryInsert<E1> query, Propagation propagation)
insert in interface QueryReceiverpublic boolean isConnectedToDatabase()
isConnectedToDatabase in interface Targetpublic OpenedTransactionTarget beginTransaction()
beginTransaction in interface Targetpublic boolean isTransactionActive()
isTransactionActive in interface TargetisTransactionActive in class BaseTargetpublic boolean isLogQueriesEnabled()
isLogQueriesEnabled in interface Targetprotected List<Integer> finalFilter(ResultBitBufferPositionWithSkipStepsWrapper rw, Query<?,?> query)
protected ResultBitBufferPositionWithSkipStepsWrapper filterUsingIndexes(List<Integer> entitiesToHandle, Where wrapper)
protected BitBufferIndexBase<?> determineIndex(TableColumn infocolumn)
public List<ByteBuffer> getPages()
public boolean isBufferStatic()
public void setBufferStatic(boolean bufferStatic)
Copyright © 2021. All rights reserved.