All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.deephaven.chunk.util.factories.ChunkFactory Maven / Gradle / Ivy

The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.chunk.util.factories;

import io.deephaven.chunk.*;
import io.deephaven.chunk.attributes.Any;

import org.jetbrains.annotations.NotNull;
import java.util.function.IntFunction;

public interface ChunkFactory {
    @NotNull
    Object makeArray(int capacity);

    @NotNull
     Chunk[] makeChunkArray(int capacity);

    @NotNull
     Chunk getEmptyChunk();

    @NotNull
     ChunkChunk getEmptyChunkChunk();

    @NotNull
     Chunk chunkWrap(Object array);

    @NotNull
     Chunk chunkWrap(Object array, int offset, int capacity);

    @NotNull
     ChunkChunk chunkChunkWrap(Chunk[] array);

    @NotNull
     ChunkChunk chunkChunkWrap(Chunk[] array, int offset, int capacity);

    @NotNull
     ResettableReadOnlyChunk makeResettableReadOnlyChunk();

    @NotNull
     ResettableChunkChunk makeResettableChunkChunk();

    @NotNull
     WritableChunk makeWritableChunk(int capacity);

    @NotNull
     WritableChunkChunk makeWritableChunkChunk(int capacity);

    @NotNull
     WritableChunk writableChunkWrap(Object array, int offset, int capacity);

    @NotNull
     WritableChunkChunk writableChunkChunkWrap(WritableChunk[] array, int offset,
            int capacity);

    @NotNull
     ResettableWritableChunk makeResettableWritableChunk();

    @NotNull
     ResettableWritableChunkChunk makeResettableWritableChunkChunk();

    @NotNull
    IntFunction chunkArrayBuilder();

    @NotNull
    IntFunction writableChunkArrayBuilder();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy