Class AbstractMetaStore<K>
java.lang.Object
com.hypixel.hytale.server.core.meta.AbstractMetaStore<K>
- All Implemented Interfaces:
IMetaStore<K>,IMetaStoreImpl<K>
- Direct Known Subclasses:
ArrayMetaStore,DynamicMetaStore
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.hypixel.hytale.server.core.meta.IMetaStore
IMetaStore.MetaEntryConsumer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate org.bson.BsonDocumentprivate booleanprivate final it.unimi.dsi.fastutil.ints.IntSetprotected final Kprotected final IMetaRegistry<K> private final org.bson.BsonDocument -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMetaStore(K parent, IMetaRegistry<K> registry, boolean bypassEncodedCache) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanvoidprotected <T> TdecodeOrNewMetaObject(MetaKey<T> key) org.bson.BsonDocumentvoidforEachUnknownEntry(BiConsumer<String, org.bson.BsonValue> consumer) protected abstract <T> Tfinal voidprotected <T> booleantryDecodeUnknownKey(PersistentMetaKey<T> key) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.core.meta.IMetaStore
forEachMetaObject, getIfPresentMetaObject, getMetaObject, hasMetaObject, putMetaObject, removeMetaObject, removeSerializedMetaObject
-
Field Details
-
parent
-
registry
-
unknownValues
@Nonnull private final org.bson.BsonDocument unknownValues -
notUnknownKeys
@Nonnull private final it.unimi.dsi.fastutil.ints.IntSet notUnknownKeys -
cachedEncoded
@Nullable private org.bson.BsonDocument cachedEncoded -
dirty
private boolean dirty -
bypassEncodedCache
private boolean bypassEncodedCache
-
-
Constructor Details
-
AbstractMetaStore
-
-
Method Details
-
get0
-
getMetaStore
- Specified by:
getMetaStorein interfaceIMetaStore<K>
-
getRegistry
- Specified by:
getRegistryin interfaceIMetaStoreImpl<K>
-
forEachUnknownEntry
- Specified by:
forEachUnknownEntryin interfaceIMetaStoreImpl<K>
-
markMetaStoreDirty
public final void markMetaStoreDirty()- Specified by:
markMetaStoreDirtyin interfaceIMetaStore<K>
-
consumeMetaStoreDirty
public final boolean consumeMetaStoreDirty()- Specified by:
consumeMetaStoreDirtyin interfaceIMetaStore<K>
-
decodeOrNewMetaObject
-
tryDecodeUnknownKey
-
encode
- Specified by:
encodein interfaceIMetaStoreImpl<K>
-
decode
- Specified by:
decodein interfaceIMetaStoreImpl<K>
-