io.deephaven.chunk.util.factories.ChunkFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-engine-chunk Show documentation
Show all versions of deephaven-engine-chunk Show documentation
Engine Chunks: Array-like data structures for dense, efficient data movement
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();
}