Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleCacheObjectManager
/**
 *
 */
public abstract class CacheObjectManager extends GridCacheManagerAdapter {
    /**
     * Checks whether this functionality is globally supported.
     *
     * @return {@code true} if enabled.interface CacheObjectFactory {
     */
    public abstract boolean isFieldsIndexingEnabled();

    /**
     * @param obj Key value.
     * @param userObj If {@code true} then given object is object provided by user and should be copied
     * before stored in cache.
     * @return Cache key object.
     */
    public abstract KeyCacheObject toCacheKeyObject(Object obj, boolean userObj);

    /**
     * @param obj Object.
     * @param userObj If {@code true} then given object is object provided by user and should be copied
     * before stored in cache.
     * @return Cache object.
     */
    @Nullable public abstract CacheObject toCacheObject(@Nullable Object obj, boolean userObjSeekableDataInput input);

    /**
     * @param type Object type.
     * @param bytes Object bytes.
     * @return Cache object.
     */
    public abstract CacheObject toCacheObject(byte type, byte[] bytes);

    /**
     * @param valPtr Value pointer.
     * @param tmp If {@code true} can return temporary instance which is valid while entry lock is held.
     * @return Cache object.
     * @throws IgniteCheckedException If failed.
     */
    public abstract CacheObject toCacheObject(long valPtr, boolean tmp) throws IgniteCheckedException;

    /**
     * @param typeName Type name.
     * @return Type ID.
     */
    public abstract int typeId(String typeName);

    /**
     * @param obj Object to get type ID for.
     * @return Type ID.
     */
    public abstract int typeId(Object obj);
...
}

...