(s.dtypes().size());
names.addAll(s.names());
- for (io.github.dfa1.vortex.proto.ProtoDType child : s.dtypes()) {
+ for (io.github.dfa1.vortex.core.proto.ProtoDType child : s.dtypes()) {
types.add(dtypeFromProto(child));
}
return new DType.Struct(List.copyOf(names), List.copyOf(types), s.nullable());
diff --git a/reader/src/main/java/io/github/dfa1/vortex/reader/decode/ZigZagEncodingDecoder.java b/reader/src/main/java/io/github/dfa1/vortex/reader/decode/ZigZagEncodingDecoder.java
index ed23daaa..2e6f2d61 100644
--- a/reader/src/main/java/io/github/dfa1/vortex/reader/decode/ZigZagEncodingDecoder.java
+++ b/reader/src/main/java/io/github/dfa1/vortex/reader/decode/ZigZagEncodingDecoder.java
@@ -1,10 +1,10 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.io.PTypeIO;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.LazyConstantByteArray;
import io.github.dfa1.vortex.reader.array.LazyConstantIntArray;
diff --git a/reader/src/main/java/io/github/dfa1/vortex/reader/decode/ZstdEncodingDecoder.java b/reader/src/main/java/io/github/dfa1/vortex/reader/decode/ZstdEncodingDecoder.java
index 61ea0000..79ca0faa 100644
--- a/reader/src/main/java/io/github/dfa1/vortex/reader/decode/ZstdEncodingDecoder.java
+++ b/reader/src/main/java/io/github/dfa1/vortex/reader/decode/ZstdEncodingDecoder.java
@@ -1,11 +1,11 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.proto.ProtoZstdMetadata;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.proto.ProtoZstdMetadata;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.BoolArray;
import io.github.dfa1.vortex.reader.array.MaskedArray;
diff --git a/reader/src/main/java/io/github/dfa1/vortex/reader/extension/DateExtensionDecoder.java b/reader/src/main/java/io/github/dfa1/vortex/reader/extension/DateExtensionDecoder.java
index 61c7b439..eb4c40cc 100644
--- a/reader/src/main/java/io/github/dfa1/vortex/reader/extension/DateExtensionDecoder.java
+++ b/reader/src/main/java/io/github/dfa1/vortex/reader/extension/DateExtensionDecoder.java
@@ -1,12 +1,12 @@
package io.github.dfa1.vortex.reader.extension;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.IoBounds;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.encoding.TimeUnit;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.io.IoBounds;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.model.TimeUnit;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.MaskedArray;
-import io.github.dfa1.vortex.extension.ExtensionId;
+import io.github.dfa1.vortex.core.model.ExtensionId;
import io.github.dfa1.vortex.reader.ExtensionDecoder;
@@ -47,7 +47,7 @@ public DType.Extension dtype(boolean nullable) {
/// @param storage signed-integer storage (Byte/Short/Int/Long, possibly Masked)
/// @param i row index, `0 <= i < storage.length()`
/// @return decoded date
- /// @throws io.github.dfa1.vortex.core.VortexException if storage isn't an integer primitive
+ /// @throws io.github.dfa1.vortex.core.error.VortexException if storage isn't an integer primitive
public LocalDate decode(Array storage, long i) {
ExtensionStorage.checkBounds(i, storage.length());
return LocalDate.ofEpochDay(ExtensionStorage.epochInteger(storage, i));
diff --git a/reader/src/main/java/io/github/dfa1/vortex/reader/extension/ExtensionStorage.java b/reader/src/main/java/io/github/dfa1/vortex/reader/extension/ExtensionStorage.java
index 86e1c7f3..3bf63bac 100644
--- a/reader/src/main/java/io/github/dfa1/vortex/reader/extension/ExtensionStorage.java
+++ b/reader/src/main/java/io/github/dfa1/vortex/reader/extension/ExtensionStorage.java
@@ -1,14 +1,14 @@
package io.github.dfa1.vortex.reader.extension;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.ByteArray;
import io.github.dfa1.vortex.reader.array.IntArray;
import io.github.dfa1.vortex.reader.array.LongArray;
import io.github.dfa1.vortex.reader.array.MaskedArray;
import io.github.dfa1.vortex.reader.array.ShortArray;
-import io.github.dfa1.vortex.encoding.TimeUnit;
+import io.github.dfa1.vortex.core.model.TimeUnit;
import java.time.Instant;
import java.util.Objects;
diff --git a/reader/src/main/java/io/github/dfa1/vortex/reader/extension/TimeExtensionDecoder.java b/reader/src/main/java/io/github/dfa1/vortex/reader/extension/TimeExtensionDecoder.java
index b42209ce..6857a4c1 100644
--- a/reader/src/main/java/io/github/dfa1/vortex/reader/extension/TimeExtensionDecoder.java
+++ b/reader/src/main/java/io/github/dfa1/vortex/reader/extension/TimeExtensionDecoder.java
@@ -1,13 +1,13 @@
package io.github.dfa1.vortex.reader.extension;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.IoBounds;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.io.IoBounds;
+import io.github.dfa1.vortex.core.error.VortexException;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.MaskedArray;
-import io.github.dfa1.vortex.encoding.TimeUnit;
-import io.github.dfa1.vortex.extension.ExtensionId;
-import io.github.dfa1.vortex.extension.TimeDtype;
+import io.github.dfa1.vortex.core.model.TimeUnit;
+import io.github.dfa1.vortex.core.model.ExtensionId;
+import io.github.dfa1.vortex.core.model.TimeDtype;
import io.github.dfa1.vortex.reader.ExtensionDecoder;
diff --git a/reader/src/main/java/io/github/dfa1/vortex/reader/extension/TimestampExtensionDecoder.java b/reader/src/main/java/io/github/dfa1/vortex/reader/extension/TimestampExtensionDecoder.java
index d9153ffb..fe5a0be6 100644
--- a/reader/src/main/java/io/github/dfa1/vortex/reader/extension/TimestampExtensionDecoder.java
+++ b/reader/src/main/java/io/github/dfa1/vortex/reader/extension/TimestampExtensionDecoder.java
@@ -1,13 +1,13 @@
package io.github.dfa1.vortex.reader.extension;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.IoBounds;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.io.IoBounds;
+import io.github.dfa1.vortex.core.error.VortexException;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.MaskedArray;
-import io.github.dfa1.vortex.encoding.TimeUnit;
-import io.github.dfa1.vortex.extension.ExtensionId;
-import io.github.dfa1.vortex.extension.TimestampDtype;
+import io.github.dfa1.vortex.core.model.TimeUnit;
+import io.github.dfa1.vortex.core.model.ExtensionId;
+import io.github.dfa1.vortex.core.model.TimestampDtype;
import io.github.dfa1.vortex.reader.ExtensionDecoder;
diff --git a/reader/src/main/java/io/github/dfa1/vortex/reader/extension/UuidExtensionDecoder.java b/reader/src/main/java/io/github/dfa1/vortex/reader/extension/UuidExtensionDecoder.java
index 6828f70b..f82b7bd4 100644
--- a/reader/src/main/java/io/github/dfa1/vortex/reader/extension/UuidExtensionDecoder.java
+++ b/reader/src/main/java/io/github/dfa1/vortex/reader/extension/UuidExtensionDecoder.java
@@ -1,13 +1,13 @@
package io.github.dfa1.vortex.reader.extension;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.IoBounds;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.io.IoBounds;
+import io.github.dfa1.vortex.core.error.VortexException;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.ByteArray;
import io.github.dfa1.vortex.reader.array.FixedSizeListArray;
import io.github.dfa1.vortex.reader.array.MaskedArray;
-import io.github.dfa1.vortex.extension.ExtensionId;
+import io.github.dfa1.vortex.core.model.ExtensionId;
import io.github.dfa1.vortex.reader.ExtensionDecoder;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/ArrayStatsTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/ArrayStatsTest.java
index cc4f27a9..57e33611 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/ArrayStatsTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/ArrayStatsTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.fbs.FbsBuilder;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.proto.ProtoScalarValue;
+import io.github.dfa1.vortex.core.fbs.FbsBuilder;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.proto.ProtoScalarValue;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
@@ -51,7 +51,7 @@ void nullFbs_returnsEmpty() {
@Test
void fbsWithNoMinOrMax_returnsEmpty() {
// Given — ArrayStats table with no min/max byte vectors set
- io.github.dfa1.vortex.fbs.FbsArrayStats fbs = buildFbs(null, null);
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats fbs = buildFbs(null, null);
// When
ArrayStats sut = ArrayStats.fromFbs(fbs);
@@ -63,7 +63,7 @@ void fbsWithNoMinOrMax_returnsEmpty() {
@Test
void int64Scalar_decodes() {
// Given
- io.github.dfa1.vortex.fbs.FbsArrayStats fbs = buildFbs(
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats fbs = buildFbs(
ProtoScalarValue.ofInt64Value(-7L).encode(),
ProtoScalarValue.ofInt64Value(42L).encode());
@@ -78,7 +78,7 @@ void int64Scalar_decodes() {
@Test
void uint64Scalar_decodes() {
// Given
- io.github.dfa1.vortex.fbs.FbsArrayStats fbs = buildFbs(
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats fbs = buildFbs(
ProtoScalarValue.ofUint64Value(0L).encode(),
ProtoScalarValue.ofUint64Value(Long.MAX_VALUE).encode());
@@ -93,7 +93,7 @@ void uint64Scalar_decodes() {
@Test
void f32Scalar_decodes() {
// Given
- io.github.dfa1.vortex.fbs.FbsArrayStats fbs = buildFbs(
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats fbs = buildFbs(
ProtoScalarValue.ofF32Value(1.5f).encode(),
ProtoScalarValue.ofF32Value(3.25f).encode());
@@ -108,7 +108,7 @@ void f32Scalar_decodes() {
@Test
void f64Scalar_decodes() {
// Given
- io.github.dfa1.vortex.fbs.FbsArrayStats fbs = buildFbs(
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats fbs = buildFbs(
ProtoScalarValue.ofF64Value(-0.5).encode(),
ProtoScalarValue.ofF64Value(99.875).encode());
@@ -123,7 +123,7 @@ void f64Scalar_decodes() {
@Test
void boolScalar_decodes() {
// Given
- io.github.dfa1.vortex.fbs.FbsArrayStats fbs = buildFbs(
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats fbs = buildFbs(
ProtoScalarValue.ofBoolValue(false).encode(),
ProtoScalarValue.ofBoolValue(true).encode());
@@ -138,7 +138,7 @@ void boolScalar_decodes() {
@Test
void stringScalar_decodes() {
// Given
- io.github.dfa1.vortex.fbs.FbsArrayStats fbs = buildFbs(
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats fbs = buildFbs(
ProtoScalarValue.ofStringValue("alpha").encode(),
ProtoScalarValue.ofStringValue("omega").encode());
@@ -154,7 +154,7 @@ void stringScalar_decodes() {
void bytesScalar_decodesAsUtf8String() {
// Given — bytes scalar surfaces as UTF-8 String for stat display purposes.
// This is the contract zone-map pruning relies on (string compare across bytes/utf8).
- io.github.dfa1.vortex.fbs.FbsArrayStats fbs = buildFbs(
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats fbs = buildFbs(
ProtoScalarValue.ofBytesValue("aa".getBytes()).encode(),
ProtoScalarValue.ofBytesValue("zz".getBytes()).encode());
@@ -169,7 +169,7 @@ void bytesScalar_decodesAsUtf8String() {
@Test
void minOnly_setsMaxToNull() {
// Given
- io.github.dfa1.vortex.fbs.FbsArrayStats fbs = buildFbs(
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats fbs = buildFbs(
ProtoScalarValue.ofInt64Value(1L).encode(), null);
// When
@@ -183,7 +183,7 @@ void minOnly_setsMaxToNull() {
@Test
void emptyByteVector_treatedAsAbsent() {
// Given — zero-length min vector is structurally present but carries no scalar
- io.github.dfa1.vortex.fbs.FbsArrayStats fbs = buildFbs(new byte[0], new byte[0]);
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats fbs = buildFbs(new byte[0], new byte[0]);
// When
ArrayStats sut = ArrayStats.fromFbs(fbs);
@@ -195,7 +195,7 @@ void emptyByteVector_treatedAsAbsent() {
@Test
void malformedScalarBytes_throwsVortexException() {
// Given — varint tag with no continuation byte: ProtoReader hits EOF inside readVarint
- io.github.dfa1.vortex.fbs.FbsArrayStats fbs = buildFbs(new byte[]{(byte) 0x80}, null);
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats fbs = buildFbs(new byte[]{(byte) 0x80}, null);
// When / Then
assertThatThrownBy(() -> ArrayStats.fromFbs(fbs))
@@ -204,19 +204,19 @@ void malformedScalarBytes_throwsVortexException() {
}
}
- private static io.github.dfa1.vortex.fbs.FbsArrayStats buildFbs(byte[] minBytes, byte[] maxBytes) {
+ private static io.github.dfa1.vortex.core.fbs.FbsArrayStats buildFbs(byte[] minBytes, byte[] maxBytes) {
FbsBuilder b = new FbsBuilder(64);
- int minOff = minBytes == null ? 0 : io.github.dfa1.vortex.fbs.FbsArrayStats.createMinVector(b, minBytes);
- int maxOff = maxBytes == null ? 0 : io.github.dfa1.vortex.fbs.FbsArrayStats.createMaxVector(b, maxBytes);
- io.github.dfa1.vortex.fbs.FbsArrayStats.startFbsArrayStats(b);
+ int minOff = minBytes == null ? 0 : io.github.dfa1.vortex.core.fbs.FbsArrayStats.createMinVector(b, minBytes);
+ int maxOff = maxBytes == null ? 0 : io.github.dfa1.vortex.core.fbs.FbsArrayStats.createMaxVector(b, maxBytes);
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats.startFbsArrayStats(b);
if (minBytes != null) {
- io.github.dfa1.vortex.fbs.FbsArrayStats.addMin(b, minOff);
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats.addMin(b, minOff);
}
if (maxBytes != null) {
- io.github.dfa1.vortex.fbs.FbsArrayStats.addMax(b, maxOff);
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats.addMax(b, maxOff);
}
- int root = io.github.dfa1.vortex.fbs.FbsArrayStats.endFbsArrayStats(b);
+ int root = io.github.dfa1.vortex.core.fbs.FbsArrayStats.endFbsArrayStats(b);
b.finish(root);
- return io.github.dfa1.vortex.fbs.FbsArrayStats.getRootAsFbsArrayStats(b.dataSegment());
+ return io.github.dfa1.vortex.core.fbs.FbsArrayStats.getRootAsFbsArrayStats(b.dataSegment());
}
}
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/FlatSegmentBoundsSecurityTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/FlatSegmentBoundsSecurityTest.java
index aa87cb95..9eeb49cf 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/FlatSegmentBoundsSecurityTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/FlatSegmentBoundsSecurityTest.java
@@ -1,12 +1,12 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.fbs.FbsBuilder;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.fbs.FbsArray;
-import io.github.dfa1.vortex.fbs.FbsArrayNode;
-import io.github.dfa1.vortex.fbs.FbsBuffer;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.fbs.FbsBuilder;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.fbs.FbsArray;
+import io.github.dfa1.vortex.core.fbs.FbsArrayNode;
+import io.github.dfa1.vortex.core.fbs.FbsBuffer;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/FlatSegmentDecoderDecodeTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/FlatSegmentDecoderDecodeTest.java
index 7bc67b6c..126f79f2 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/FlatSegmentDecoderDecodeTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/FlatSegmentDecoderDecodeTest.java
@@ -1,9 +1,9 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.fbs.FbsArrayNode;
-import io.github.dfa1.vortex.fbs.FbsBuffer;
-import io.github.dfa1.vortex.fbs.FbsBuilder;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.fbs.FbsArrayNode;
+import io.github.dfa1.vortex.core.fbs.FbsBuffer;
+import io.github.dfa1.vortex.core.fbs.FbsBuilder;
+import io.github.dfa1.vortex.core.model.DType;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.UnknownArray;
import org.junit.jupiter.api.Test;
@@ -12,7 +12,7 @@
import java.lang.foreign.MemorySegment;
import java.util.List;
-import static io.github.dfa1.vortex.encoding.PTypeIO.LE_INT;
+import static io.github.dfa1.vortex.core.io.PTypeIO.LE_INT;
import static org.assertj.core.api.Assertions.assertThat;
/// Successful flat-segment decode path — complements [FlatSegmentBoundsSecurityTest] (which only
@@ -59,12 +59,12 @@ private static byte[] arrayFlatBufferOneBuffer(int padding, long length) {
int rootBuffers = FbsArrayNode.createBuffersVector(b, new int[]{0});
int root = FbsArrayNode.createFbsArrayNode(b, 0, 0, rootChildren, rootBuffers, 0);
- io.github.dfa1.vortex.fbs.FbsArray.startBuffersVector(b, 1);
+ io.github.dfa1.vortex.core.fbs.FbsArray.startBuffersVector(b, 1);
FbsBuffer.createFbsBuffer(b, padding, 0, 0, length);
int buffers = b.endVector();
- int array = io.github.dfa1.vortex.fbs.FbsArray.createFbsArray(b, root, buffers);
- io.github.dfa1.vortex.fbs.FbsArray.finishFbsArrayBuffer(b, array);
+ int array = io.github.dfa1.vortex.core.fbs.FbsArray.createFbsArray(b, root, buffers);
+ io.github.dfa1.vortex.core.fbs.FbsArray.finishFbsArrayBuffer(b, array);
return b.sizedByteArray();
}
}
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/LayoutDepthBombSecurityTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/LayoutDepthBombSecurityTest.java
index 15f5984f..1773c453 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/LayoutDepthBombSecurityTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/LayoutDepthBombSecurityTest.java
@@ -1,14 +1,14 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.fbs.FbsBuilder;
+import io.github.dfa1.vortex.core.fbs.FbsBuilder;
import static io.github.dfa1.vortex.reader.MalformedFiles.buildFooter;
import static io.github.dfa1.vortex.reader.MalformedFiles.buildI64Dtype;
import static io.github.dfa1.vortex.reader.MalformedFiles.buildPostscript;
import static io.github.dfa1.vortex.reader.MalformedFiles.slice;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.core.VortexFormat;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.io.VortexFormat;
-import io.github.dfa1.vortex.fbs.FbsLayout;
+import io.github.dfa1.vortex.core.fbs.FbsLayout;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedFiles.java b/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedFiles.java
index 8dd7e466..3f14eed2 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedFiles.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedFiles.java
@@ -1,15 +1,15 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.fbs.FbsBuilder;
-import io.github.dfa1.vortex.fbs.FbsArraySpec;
-import io.github.dfa1.vortex.fbs.FbsFooter;
-import io.github.dfa1.vortex.fbs.FbsLayout;
-import io.github.dfa1.vortex.fbs.FbsLayoutSpec;
-import io.github.dfa1.vortex.fbs.FbsPostscript;
-import io.github.dfa1.vortex.fbs.FbsPostscriptSegment;
-import io.github.dfa1.vortex.fbs.FbsPrimitive;
-import io.github.dfa1.vortex.fbs.FbsSegmentSpec;
-import io.github.dfa1.vortex.fbs.FbsType;
+import io.github.dfa1.vortex.core.fbs.FbsBuilder;
+import io.github.dfa1.vortex.core.fbs.FbsArraySpec;
+import io.github.dfa1.vortex.core.fbs.FbsFooter;
+import io.github.dfa1.vortex.core.fbs.FbsLayout;
+import io.github.dfa1.vortex.core.fbs.FbsLayoutSpec;
+import io.github.dfa1.vortex.core.fbs.FbsPostscript;
+import io.github.dfa1.vortex.core.fbs.FbsPostscriptSegment;
+import io.github.dfa1.vortex.core.fbs.FbsPrimitive;
+import io.github.dfa1.vortex.core.fbs.FbsSegmentSpec;
+import io.github.dfa1.vortex.core.fbs.FbsType;
import java.nio.ByteBuffer;
@@ -28,9 +28,9 @@ private MalformedFiles() {
/// @return the finished DType FlatBuffer
static ByteBuffer buildI64Dtype() {
var fbb = new FbsBuilder(64);
- int prim = FbsPrimitive.createFbsPrimitive(fbb, io.github.dfa1.vortex.fbs.FbsPType.I64, false);
- int off = io.github.dfa1.vortex.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsPrimitive, prim);
- io.github.dfa1.vortex.fbs.FbsDType.finishFbsDTypeBuffer(fbb, off);
+ int prim = FbsPrimitive.createFbsPrimitive(fbb, io.github.dfa1.vortex.core.fbs.FbsPType.I64, false);
+ int off = io.github.dfa1.vortex.core.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsPrimitive, prim);
+ io.github.dfa1.vortex.core.fbs.FbsDType.finishFbsDTypeBuffer(fbb, off);
return slice(fbb);
}
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedFooterSecurityTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedFooterSecurityTest.java
index 9fbb1638..25978dc3 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedFooterSecurityTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedFooterSecurityTest.java
@@ -4,8 +4,8 @@
import static io.github.dfa1.vortex.reader.MalformedFiles.buildI64Dtype;
import static io.github.dfa1.vortex.reader.MalformedFiles.buildFlatLayout;
import static io.github.dfa1.vortex.reader.MalformedFiles.buildPostscript;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.core.VortexFormat;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.io.VortexFormat;
import org.junit.jupiter.api.io.TempDir;
import org.junit.jupiter.params.ParameterizedTest;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedHttpResponseTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedHttpResponseTest.java
index 78b8600f..8e50a6a5 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedHttpResponseTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedHttpResponseTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.error.VortexException;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedTrailerSecurityTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedTrailerSecurityTest.java
index 9f7f9128..3148302d 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedTrailerSecurityTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/MalformedTrailerSecurityTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.core.VortexFormat;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.io.VortexFormat;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserBigSegmentTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserBigSegmentTest.java
index c90f2a53..2c6006b3 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserBigSegmentTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserBigSegmentTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.fbs.FbsBuilder;
-import io.github.dfa1.vortex.fbs.FbsArraySpec;
-import io.github.dfa1.vortex.fbs.FbsLayoutSpec;
+import io.github.dfa1.vortex.core.fbs.FbsBuilder;
+import io.github.dfa1.vortex.core.fbs.FbsArraySpec;
+import io.github.dfa1.vortex.core.fbs.FbsLayoutSpec;
import org.junit.jupiter.api.Test;
import java.nio.ByteBuffer;
@@ -15,19 +15,19 @@ private static ByteBuffer buildMinimalFooter(long segOffset, long segLength) {
var fbb = new FbsBuilder(256);
// Empty array_specs + layout_specs vectors (required tables, no entries).
- int asv = io.github.dfa1.vortex.fbs.FbsFooter.createArraySpecsVector(fbb, new int[]{
+ int asv = io.github.dfa1.vortex.core.fbs.FbsFooter.createArraySpecsVector(fbb, new int[]{
FbsArraySpec.createFbsArraySpec(fbb, fbb.createString("vortex.flat"))
});
- int lsv = io.github.dfa1.vortex.fbs.FbsFooter.createLayoutSpecsVector(fbb, new int[]{
+ int lsv = io.github.dfa1.vortex.core.fbs.FbsFooter.createLayoutSpecsVector(fbb, new int[]{
FbsLayoutSpec.createFbsLayoutSpec(fbb, fbb.createString("vortex.flat"))
});
// One segment_spec with the big length.
- io.github.dfa1.vortex.fbs.FbsFooter.startSegmentSpecsVector(fbb, 1);
- io.github.dfa1.vortex.fbs.FbsSegmentSpec.createFbsSegmentSpec(fbb, segOffset, segLength, 6, 0, 0);
+ io.github.dfa1.vortex.core.fbs.FbsFooter.startSegmentSpecsVector(fbb, 1);
+ io.github.dfa1.vortex.core.fbs.FbsSegmentSpec.createFbsSegmentSpec(fbb, segOffset, segLength, 6, 0, 0);
int ssv = fbb.endVector();
- int off = io.github.dfa1.vortex.fbs.FbsFooter.createFbsFooter(fbb, asv, lsv, ssv, 0, 0);
+ int off = io.github.dfa1.vortex.core.fbs.FbsFooter.createFbsFooter(fbb, asv, lsv, ssv, 0, 0);
fbb.finish(off);
return fbb.dataSegment().asByteBuffer().order(java.nio.ByteOrder.LITTLE_ENDIAN);
}
@@ -40,8 +40,8 @@ void convertFooter_preservesSegmentLengthAbove2GB() {
long bigLength = 0xC000_0000L;
long bigOffset = 0x1_0000_0000L; // 4 GB into the file
ByteBuffer fbsFooterBytes = buildMinimalFooter(bigOffset, bigLength);
- io.github.dfa1.vortex.fbs.FbsFooter fbsFooter =
- io.github.dfa1.vortex.fbs.FbsFooter.getRootAsFbsFooter(java.lang.foreign.MemorySegment.ofBuffer(fbsFooterBytes));
+ io.github.dfa1.vortex.core.fbs.FbsFooter fbsFooter =
+ io.github.dfa1.vortex.core.fbs.FbsFooter.getRootAsFbsFooter(java.lang.foreign.MemorySegment.ofBuffer(fbsFooterBytes));
// When
Footer footer = PostscriptParser.convertFooter(fbsFooter);
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserBlobBoundsTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserBlobBoundsTest.java
index 519acb5c..88463d0b 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserBlobBoundsTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserBlobBoundsTest.java
@@ -1,15 +1,15 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.fbs.FbsBuilder;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.fbs.FbsArraySpec;
-import io.github.dfa1.vortex.fbs.FbsFooter;
-import io.github.dfa1.vortex.fbs.FbsLayout;
-import io.github.dfa1.vortex.fbs.FbsLayoutSpec;
-import io.github.dfa1.vortex.fbs.FbsPostscript;
-import io.github.dfa1.vortex.fbs.FbsPostscriptSegment;
-import io.github.dfa1.vortex.fbs.FbsPrimitive;
-import io.github.dfa1.vortex.fbs.FbsType;
+import io.github.dfa1.vortex.core.fbs.FbsBuilder;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.fbs.FbsArraySpec;
+import io.github.dfa1.vortex.core.fbs.FbsFooter;
+import io.github.dfa1.vortex.core.fbs.FbsLayout;
+import io.github.dfa1.vortex.core.fbs.FbsLayoutSpec;
+import io.github.dfa1.vortex.core.fbs.FbsPostscript;
+import io.github.dfa1.vortex.core.fbs.FbsPostscriptSegment;
+import io.github.dfa1.vortex.core.fbs.FbsPrimitive;
+import io.github.dfa1.vortex.core.fbs.FbsType;
import org.junit.jupiter.api.Test;
import java.lang.foreign.MemorySegment;
@@ -167,9 +167,9 @@ private static MemorySegment buildFooter() {
private static MemorySegment buildI64Dtype() {
var fbb = new FbsBuilder(64);
- int prim = FbsPrimitive.createFbsPrimitive(fbb, io.github.dfa1.vortex.fbs.FbsPType.I64, false);
- int off = io.github.dfa1.vortex.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsPrimitive, prim);
- io.github.dfa1.vortex.fbs.FbsDType.finishFbsDTypeBuffer(fbb, off);
+ int prim = FbsPrimitive.createFbsPrimitive(fbb, io.github.dfa1.vortex.core.fbs.FbsPType.I64, false);
+ int off = io.github.dfa1.vortex.core.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsPrimitive, prim);
+ io.github.dfa1.vortex.core.fbs.FbsDType.finishFbsDTypeBuffer(fbb, off);
return slice(fbb);
}
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserParseBlobsBoundsTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserParseBlobsBoundsTest.java
index 8a975e6d..16bd9dd7 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserParseBlobsBoundsTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserParseBlobsBoundsTest.java
@@ -2,15 +2,15 @@
import java.lang.foreign.MemorySegment;
-import io.github.dfa1.vortex.fbs.FbsBuilder;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.fbs.FbsArraySpec;
-import io.github.dfa1.vortex.fbs.FbsDecimal;
-import io.github.dfa1.vortex.fbs.FbsFooter;
-import io.github.dfa1.vortex.fbs.FbsLayout;
-import io.github.dfa1.vortex.fbs.FbsLayoutSpec;
-import io.github.dfa1.vortex.fbs.FbsType;
+import io.github.dfa1.vortex.core.fbs.FbsBuilder;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.fbs.FbsArraySpec;
+import io.github.dfa1.vortex.core.fbs.FbsDecimal;
+import io.github.dfa1.vortex.core.fbs.FbsFooter;
+import io.github.dfa1.vortex.core.fbs.FbsLayout;
+import io.github.dfa1.vortex.core.fbs.FbsLayoutSpec;
+import io.github.dfa1.vortex.core.fbs.FbsType;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
@@ -217,8 +217,8 @@ private static MemorySegment nestedLayout(int depth) {
private static MemorySegment decimalDtype(int precision, byte scale) {
var fbb = new FbsBuilder(64);
int dec = FbsDecimal.createFbsDecimal(fbb, precision, scale, false);
- int off = io.github.dfa1.vortex.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsDecimal, dec);
- io.github.dfa1.vortex.fbs.FbsDType.finishFbsDTypeBuffer(fbb, off);
+ int off = io.github.dfa1.vortex.core.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsDecimal, dec);
+ io.github.dfa1.vortex.core.fbs.FbsDType.finishFbsDTypeBuffer(fbb, off);
return slice(fbb);
}
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserSegmentSpecBoundsTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserSegmentSpecBoundsTest.java
index d1d86281..4d18b41e 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserSegmentSpecBoundsTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/PostscriptParserSegmentSpecBoundsTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.error.VortexException;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/ReadRegistryTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/ReadRegistryTest.java
index bf0bdadd..f82b91cd 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/ReadRegistryTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/ReadRegistryTest.java
@@ -1,10 +1,10 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.error.VortexException;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.UnknownArray;
import io.github.dfa1.vortex.encoding.DTypes;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
import io.github.dfa1.vortex.reader.decode.ArrayNode;
import io.github.dfa1.vortex.reader.decode.DecodeContext;
import io.github.dfa1.vortex.reader.decode.EncodingDecoder;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/TrailerLengthBoundaryTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/TrailerLengthBoundaryTest.java
index 9bef76cc..a0502804 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/TrailerLengthBoundaryTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/TrailerLengthBoundaryTest.java
@@ -1,12 +1,12 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.core.VortexFormat;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.io.VortexFormat;
import org.junit.jupiter.api.Test;
import java.lang.foreign.MemorySegment;
-import static io.github.dfa1.vortex.encoding.PTypeIO.LE_SHORT;
+import static io.github.dfa1.vortex.core.io.PTypeIO.LE_SHORT;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatCode;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderIT.java b/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderIT.java
index 4424634b..fd0a06f3 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderIT.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderIT.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.core.VortexFormat;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.io.VortexFormat;
import io.github.dfa1.vortex.reader.array.ListArray;
import io.github.dfa1.vortex.reader.array.ListViewArray;
import org.junit.jupiter.api.Disabled;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderOpenOverloadTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderOpenOverloadTest.java
index 113e21b8..37166d1f 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderOpenOverloadTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderOpenOverloadTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.core.VortexFormat;
+import io.github.dfa1.vortex.core.io.VortexFormat;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderTailFetchTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderTailFetchTest.java
index cc59346a..f09ab7e7 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderTailFetchTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderTailFetchTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.core.VortexFormat;
+import io.github.dfa1.vortex.core.io.VortexFormat;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/VortexReaderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/VortexReaderTest.java
index e332cf34..cf331e94 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/VortexReaderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/VortexReaderTest.java
@@ -1,12 +1,12 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.core.VortexFormat;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.io.VortexFormat;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.UnknownArray;
import io.github.dfa1.vortex.reader.decode.DecodeContext;
import io.github.dfa1.vortex.reader.decode.EncodingDecoder;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/ZipBombSecurityTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/ZipBombSecurityTest.java
index 26462d38..3be93449 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/ZipBombSecurityTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/ZipBombSecurityTest.java
@@ -1,22 +1,22 @@
package io.github.dfa1.vortex.reader;
-import io.github.dfa1.vortex.fbs.FbsBuilder;
+import io.github.dfa1.vortex.core.fbs.FbsBuilder;
import static io.github.dfa1.vortex.reader.MalformedFiles.buildFooter;
import static io.github.dfa1.vortex.reader.MalformedFiles.buildI64Dtype;
import static io.github.dfa1.vortex.reader.MalformedFiles.buildFlatLayout;
import static io.github.dfa1.vortex.reader.MalformedFiles.buildPostscript;
import static io.github.dfa1.vortex.reader.MalformedFiles.slice;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.error.VortexException;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.LazyConstantLongArray;
import io.github.dfa1.vortex.reader.decode.ConstantEncodingDecoder;
import io.github.dfa1.vortex.reader.decode.PrimitiveEncodingDecoder;
-import io.github.dfa1.vortex.fbs.FbsArrayNode;
-import io.github.dfa1.vortex.fbs.FbsLayout;
+import io.github.dfa1.vortex.core.fbs.FbsArrayNode;
+import io.github.dfa1.vortex.core.fbs.FbsLayout;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
-import io.github.dfa1.vortex.proto.ProtoScalarValue;
+import io.github.dfa1.vortex.core.proto.ProtoScalarValue;
import java.io.OutputStream;
import java.nio.ByteBuffer;
@@ -35,7 +35,7 @@
* and trigger an 8 GB allocation on the first `iter.hasNext()` call.
*
* Both attacks are fixed: tests use small row counts safe for CI and assert the
- * expected post-fix behavior (no OOM; either completes or throws [io.github.dfa1.vortex.core.VortexException]).
+ * expected post-fix behavior (no OOM; either completes or throws [io.github.dfa1.vortex.core.error.VortexException]).
*/
class ZipBombSecurityTest {
@@ -182,7 +182,7 @@ private static byte[] buildOneBufferSegment(byte[] rawData) {
int nodeOff = FbsArrayNode.createFbsArrayNode(fbb, 0, 0, 0, bufIdxVec, 0);
// Array.buffers: one Buffer struct describing rawData
- io.github.dfa1.vortex.fbs.FbsArray.startBuffersVector(fbb, 1);
+ io.github.dfa1.vortex.core.fbs.FbsArray.startBuffersVector(fbb, 1);
// FlatBuffers builds inline structs in reverse; struct layout (LE):
// padding(u16) | alignmentExponent(u8) | compression(u8) | length(u32)
fbb.prep(4, 8);
@@ -192,8 +192,8 @@ private static byte[] buildOneBufferSegment(byte[] rawData) {
fbb.putShort((short) 0); // padding = 0
int bufsVec = fbb.endVector();
- int arrOff = io.github.dfa1.vortex.fbs.FbsArray.createFbsArray(fbb, nodeOff, bufsVec);
- io.github.dfa1.vortex.fbs.FbsArray.finishFbsArrayBuffer(fbb, arrOff);
+ int arrOff = io.github.dfa1.vortex.core.fbs.FbsArray.createFbsArray(fbb, nodeOff, bufsVec);
+ io.github.dfa1.vortex.core.fbs.FbsArray.finishFbsArrayBuffer(fbb, arrOff);
// Segment = rawData + FlatBuffer bytes + 4-byte LE fbLen
byte[] fbBytes = fbb.sizedByteArray();
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/ArrayLimitedTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/ArrayLimitedTest.java
index 943799ec..89f020c5 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/ArrayLimitedTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/ArrayLimitedTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/ArrayMaterializeTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/ArrayMaterializeTest.java
index a9fa6d09..2dd3be3d 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/ArrayMaterializeTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/ArrayMaterializeTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.io.PTypeIO;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/ChunkedRecordSmokeTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/ChunkedRecordSmokeTest.java
index 087d6c50..5d3420b5 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/ChunkedRecordSmokeTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/ChunkedRecordSmokeTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.io.PTypeIO;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/DateTimePartsArraysTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/DateTimePartsArraysTest.java
index 591e62a9..4025f9dc 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/DateTimePartsArraysTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/DateTimePartsArraysTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.error.VortexException;
import org.junit.jupiter.api.Test;
import static io.github.dfa1.vortex.reader.array.TestArrays.bools;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/DictRecordSmokeTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/DictRecordSmokeTest.java
index ef977927..1756871e 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/DictRecordSmokeTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/DictRecordSmokeTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.io.PTypeIO;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/DoubleArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/DoubleArrayTest.java
index 2377f9df..166bed65 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/DoubleArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/DoubleArrayTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/GenericArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/GenericArrayTest.java
index 9da982ad..5d388e03 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/GenericArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/GenericArrayTest.java
@@ -2,8 +2,8 @@
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
@@ -195,7 +195,7 @@ void getDecimal_unalignedBufferSize_throws() {
// When / Then
assertThatThrownBy(() -> sut.getDecimal(0))
- .isInstanceOf(io.github.dfa1.vortex.core.VortexException.class)
+ .isInstanceOf(io.github.dfa1.vortex.core.error.VortexException.class)
.hasMessageContaining("not a multiple");
}
}
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/IntArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/IntArrayTest.java
index 3307aaa8..f9c27e49 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/IntArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/IntArrayTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyAlpDoubleArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyAlpDoubleArrayTest.java
index cfebe422..fc90ef9d 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyAlpDoubleArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyAlpDoubleArrayTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyAlpFloatArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyAlpFloatArrayTest.java
index 31168b75..043c9546 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyAlpFloatArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyAlpFloatArrayTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyAlpRdArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyAlpRdArrayTest.java
index 3c12009b..6ce383d4 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyAlpRdArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyAlpRdArrayTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyConstantArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyConstantArrayTest.java
index c6d65e85..847be99d 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyConstantArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyConstantArrayTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.io.PTypeIO;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyDecimalArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyDecimalArrayTest.java
index fdd73548..6bfe53b4 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyDecimalArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyDecimalArrayTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyDecimalBytePartsArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyDecimalBytePartsArrayTest.java
index bd767ca1..f8763681 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyDecimalBytePartsArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyDecimalBytePartsArrayTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForByteArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForByteArrayTest.java
index ff3845f9..847c8f2e 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForByteArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForByteArrayTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForIntArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForIntArrayTest.java
index d1172e0f..17a6679d 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForIntArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForIntArrayTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForLongArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForLongArrayTest.java
index ed370c76..1b38d2f3 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForLongArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForLongArrayTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForShortArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForShortArrayTest.java
index 1c4b492a..6194d3db 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForShortArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyForShortArrayTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.io.PTypeIO;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyRleArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyRleArrayTest.java
index 44eb96ff..94954160 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyRleArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyRleArrayTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagByteArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagByteArrayTest.java
index 8b686b7a..8920df25 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagByteArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagByteArrayTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagIntArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagIntArrayTest.java
index 9ee670a5..7dd692c2 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagIntArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagIntArrayTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagLongArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagLongArrayTest.java
index e75e2098..730e5d56 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagLongArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagLongArrayTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagShortArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagShortArrayTest.java
index 649e1e0a..5a76b4a6 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagShortArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LazyZigZagShortArrayTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.io.PTypeIO;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/ListArraysTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/ListArraysTest.java
index 8def088a..dd7285b3 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/ListArraysTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/ListArraysTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LongArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LongArrayTest.java
index 1dc57c7e..de3bd89c 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/LongArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/LongArrayTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/OffsetArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/OffsetArrayTest.java
index 0a1809c4..109317b1 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/OffsetArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/OffsetArrayTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.model.DType;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/VarBinArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/VarBinArrayTest.java
index 2de1acfb..c883166c 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/VarBinArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/VarBinArrayTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/VarBinChunkedModeTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/VarBinChunkedModeTest.java
index 6b4369fb..71e2ba83 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/VarBinChunkedModeTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/VarBinChunkedModeTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/array/VarBinViewModeTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/array/VarBinViewModeTest.java
index fbe211d5..8593eee2 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/array/VarBinViewModeTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/array/VarBinViewModeTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.array;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.io.PTypeIO;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/AlpEncodingDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/AlpEncodingDecoderTest.java
index 84c26557..07d310d5 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/AlpEncodingDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/AlpEncodingDecoderTest.java
@@ -1,9 +1,9 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.proto.ProtoALPMetadata;
-import io.github.dfa1.vortex.proto.ProtoPatchesMetadata;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.proto.ProtoALPMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoPatchesMetadata;
import io.github.dfa1.vortex.reader.ReadRegistry;
import io.github.dfa1.vortex.reader.array.DoubleArray;
import io.github.dfa1.vortex.reader.array.FloatArray;
@@ -121,7 +121,7 @@ void decode_f32_broadcastNoPatches_returnsConstant() {
void decode_f64_patches_withU8Indices() {
// Given patches whose index child uses U8 storage — exercises the U8 arm of
// readUnsigned (the encoder always emits U32 indices)
- ProtoPatchesMetadata pm = new ProtoPatchesMetadata(1L, 0L, io.github.dfa1.vortex.proto.ProtoPType.U8, null, null, null);
+ ProtoPatchesMetadata pm = new ProtoPatchesMetadata(1L, 0L, io.github.dfa1.vortex.core.proto.ProtoPType.U8, null, null, null);
byte[] meta = new ProtoALPMetadata(2, 0, pm).encode(); // *0.01
ArrayNode enc = ArrayNode.of(EncodingId.VORTEX_PRIMITIVE, null, new ArrayNode[0], new int[]{0});
@@ -146,7 +146,7 @@ void decode_f64_patches_withU8Indices() {
@Test
void decode_patches_nonUnsignedIndexPtype_throws() {
// Given a signed (I32) patch-index ptype — readUnsigned rejects it
- ProtoPatchesMetadata pm = new ProtoPatchesMetadata(1L, 0L, io.github.dfa1.vortex.proto.ProtoPType.I32, null, null, null);
+ ProtoPatchesMetadata pm = new ProtoPatchesMetadata(1L, 0L, io.github.dfa1.vortex.core.proto.ProtoPType.I32, null, null, null);
byte[] meta = new ProtoALPMetadata(2, 0, pm).encode();
ArrayNode enc = ArrayNode.of(EncodingId.VORTEX_PRIMITIVE, null, new ArrayNode[0], new int[]{0});
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/ByteBoolEncodingDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/ByteBoolEncodingDecoderTest.java
index f8008fb2..0e5f86dd 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/ByteBoolEncodingDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/ByteBoolEncodingDecoderTest.java
@@ -4,7 +4,7 @@
import io.github.dfa1.vortex.reader.array.BoolArray;
import io.github.dfa1.vortex.encoding.DTypes;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DateTimePartsEncodingDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DateTimePartsEncodingDecoderTest.java
index 6a51314a..43bbff41 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DateTimePartsEncodingDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DateTimePartsEncodingDecoderTest.java
@@ -1,11 +1,11 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.model.EncodingId;
import io.github.dfa1.vortex.encoding.TestSegments;
-import io.github.dfa1.vortex.encoding.TimeUnit;
-import io.github.dfa1.vortex.proto.ProtoDateTimePartsMetadata;
+import io.github.dfa1.vortex.core.model.TimeUnit;
+import io.github.dfa1.vortex.core.proto.ProtoDateTimePartsMetadata;
import io.github.dfa1.vortex.reader.ReadRegistry;
import io.github.dfa1.vortex.reader.array.LongArray;
import org.junit.jupiter.api.Test;
@@ -25,9 +25,9 @@ class DateTimePartsEncodingDecoderTest {
private static MemorySegment i64Meta() {
return MemorySegment.ofArray(new ProtoDateTimePartsMetadata(
- io.github.dfa1.vortex.proto.ProtoPType.I64,
- io.github.dfa1.vortex.proto.ProtoPType.I64,
- io.github.dfa1.vortex.proto.ProtoPType.I64).encode());
+ io.github.dfa1.vortex.core.proto.ProtoPType.I64,
+ io.github.dfa1.vortex.core.proto.ProtoPType.I64,
+ io.github.dfa1.vortex.core.proto.ProtoPType.I64).encode());
}
private static DType timestampDType(TimeUnit unit, boolean nullable) {
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DecimalEncodingDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DecimalEncodingDecoderTest.java
index e71dc5fc..6e55fe4f 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DecimalEncodingDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DecimalEncodingDecoderTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
import io.github.dfa1.vortex.reader.ReadRegistry;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.LazyDecimalArray;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DeltaEncodingDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DeltaEncodingDecoderTest.java
index a6634772..59616f33 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DeltaEncodingDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DeltaEncodingDecoderTest.java
@@ -1,11 +1,11 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.io.PTypeIO;
import io.github.dfa1.vortex.encoding.TestSegments;
-import io.github.dfa1.vortex.proto.ProtoDeltaMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoDeltaMetadata;
import io.github.dfa1.vortex.reader.ReadRegistry;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.LongArray;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DictEncodingDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DictEncodingDecoderTest.java
index a752d700..bc9ee3e4 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DictEncodingDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/DictEncodingDecoderTest.java
@@ -1,12 +1,12 @@
package io.github.dfa1.vortex.reader.decode;
import io.github.dfa1.vortex.encoding.TestSegments;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.proto.ProtoDictMetadata;
-import io.github.dfa1.vortex.proto.ProtoVarBinMetadata;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.proto.ProtoDictMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoVarBinMetadata;
import io.github.dfa1.vortex.reader.ReadRegistry;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.ByteArray;
@@ -462,8 +462,8 @@ private static ArrayNode primitiveNode(int bufferIndex) {
return ArrayNode.of(EncodingId.VORTEX_PRIMITIVE, null, new ArrayNode[0], new int[]{bufferIndex});
}
- private static io.github.dfa1.vortex.proto.ProtoPType protoPType(PType core) {
- return io.github.dfa1.vortex.proto.ProtoPType.valueOf(core.name());
+ private static io.github.dfa1.vortex.core.proto.ProtoPType protoPType(PType core) {
+ return io.github.dfa1.vortex.core.proto.ProtoPType.valueOf(core.name());
}
// ── segment builders (little-endian) ───────────────────────────────────────
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/LazyRunEndArrayTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/LazyRunEndArrayTest.java
index a41f8a5f..eb6a51ad 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/LazyRunEndArrayTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/LazyRunEndArrayTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.error.VortexException;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.BoolArray;
import io.github.dfa1.vortex.reader.array.ByteArray;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/LeBitReaderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/LeBitReaderTest.java
index 4f2aa03b..ca717da6 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/LeBitReaderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/LeBitReaderTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.error.VortexException;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/NullEncodingDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/NullEncodingDecoderTest.java
index 325c0e57..ade733ec 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/NullEncodingDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/NullEncodingDecoderTest.java
@@ -4,7 +4,7 @@
import io.github.dfa1.vortex.reader.array.NullArray;
import io.github.dfa1.vortex.encoding.DTypes;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/PatchedEncodingDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/PatchedEncodingDecoderTest.java
index 00459fa8..bd3d4b7c 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/PatchedEncodingDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/PatchedEncodingDecoderTest.java
@@ -3,12 +3,12 @@
import io.github.dfa1.vortex.encoding.TestSegments;
import io.github.dfa1.vortex.reader.ReadRegistry;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.model.DType;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.IntArray;
import io.github.dfa1.vortex.reader.array.LongArray;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.proto.ProtoPatchedMetadata;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.proto.ProtoPatchedMetadata;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/PcoEncodingDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/PcoEncodingDecoderTest.java
index 082ab656..fe79f709 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/PcoEncodingDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/PcoEncodingDecoderTest.java
@@ -2,16 +2,16 @@
import io.github.dfa1.vortex.reader.ReadRegistry;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
import io.github.dfa1.vortex.reader.array.LongArray;
import io.github.dfa1.vortex.reader.array.MaskedArray;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
-import io.github.dfa1.vortex.proto.ProtoPcoChunkInfo;
-import io.github.dfa1.vortex.proto.ProtoPcoMetadata;
-import io.github.dfa1.vortex.proto.ProtoPcoPageInfo;
+import io.github.dfa1.vortex.core.proto.ProtoPcoChunkInfo;
+import io.github.dfa1.vortex.core.proto.ProtoPcoMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoPcoPageInfo;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/PcoTansDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/PcoTansDecoderTest.java
index e266690c..4eac89a8 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/PcoTansDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/PcoTansDecoderTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.io.PTypeIO;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/SegmentBroadcastTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/SegmentBroadcastTest.java
index e1b866fb..5ee33dd3 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/SegmentBroadcastTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/SegmentBroadcastTest.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.io.PTypeIO;
import org.junit.jupiter.api.Test;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/TestDecodeContexts.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/TestDecodeContexts.java
index e6b2c8df..f902c394 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/TestDecodeContexts.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/TestDecodeContexts.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.model.DType;
import io.github.dfa1.vortex.reader.ReadRegistry;
import java.lang.foreign.Arena;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/VarBinEncodingDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/VarBinEncodingDecoderTest.java
index 36f0c77d..edd6e99e 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/VarBinEncodingDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/VarBinEncodingDecoderTest.java
@@ -1,9 +1,9 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.EncodingId;
import io.github.dfa1.vortex.encoding.TestSegments;
-import io.github.dfa1.vortex.proto.ProtoVarBinMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoVarBinMetadata;
import io.github.dfa1.vortex.reader.ReadRegistry;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.VarBinArray;
@@ -21,7 +21,7 @@ class VarBinEncodingDecoderTest {
private static final ReadRegistry REGISTRY = TestRegistry.ofDecoders(SUT, new PrimitiveEncodingDecoder());
private static MemorySegment i32OffsetsMeta() {
- return MemorySegment.ofArray(new ProtoVarBinMetadata(io.github.dfa1.vortex.proto.ProtoPType.I32).encode());
+ return MemorySegment.ofArray(new ProtoVarBinMetadata(io.github.dfa1.vortex.core.proto.ProtoPType.I32).encode());
}
private static DecodeContext ctx(MemorySegment meta, MemorySegment bytes, MemorySegment offsets, long n) {
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/VarBinViewEncodingDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/VarBinViewEncodingDecoderTest.java
index 2cf9b37d..a944b680 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/VarBinViewEncodingDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/VarBinViewEncodingDecoderTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.io.PTypeIO;
import io.github.dfa1.vortex.reader.ReadRegistry;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.VarBinArray;
@@ -54,7 +54,7 @@ void decode_binaryDtype_inlineViews() {
void decode_wrongDtype_throws() {
// Given a primitive dtype
ArrayNode node = ArrayNode.of(EncodingId.VORTEX_VARBINVIEW, null, new ArrayNode[0], new int[]{0});
- DecodeContext ctx = new DecodeContext(node, new DType.Primitive(io.github.dfa1.vortex.core.PType.I32, false),
+ DecodeContext ctx = new DecodeContext(node, new DType.Primitive(io.github.dfa1.vortex.core.model.PType.I32, false),
0, new MemorySegment[]{Arena.ofAuto().allocate(16)}, ReadRegistry.empty(), Arena.ofAuto());
// When / Then
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/VariantEncodingDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/VariantEncodingDecoderTest.java
index 4e9e1895..8a3b0ffa 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/VariantEncodingDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/VariantEncodingDecoderTest.java
@@ -3,14 +3,14 @@
import io.github.dfa1.vortex.encoding.TestSegments;
import io.github.dfa1.vortex.reader.ReadRegistry;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.model.DType;
import io.github.dfa1.vortex.reader.array.Array;
import io.github.dfa1.vortex.reader.array.NullArray;
import io.github.dfa1.vortex.reader.array.VariantArray;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
-import io.github.dfa1.vortex.proto.ProtoPrimitive;
-import io.github.dfa1.vortex.proto.ProtoVariantMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoPrimitive;
+import io.github.dfa1.vortex.core.proto.ProtoVariantMetadata;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
@@ -28,7 +28,7 @@ class VariantEncodingDecoderTest {
private static final VariantEncodingDecoder SUT = new VariantEncodingDecoder();
- private static MemorySegment variantMetaWithShredded(io.github.dfa1.vortex.proto.ProtoDType shredded) {
+ private static MemorySegment variantMetaWithShredded(io.github.dfa1.vortex.core.proto.ProtoDType shredded) {
return MemorySegment.ofArray(new ProtoVariantMetadata(shredded).encode());
}
@@ -67,8 +67,8 @@ void decode_withoutShredded_returnsCoreStorageOnly() {
@Test
void decode_withShredded_decodesSecondChild() {
// Given
- io.github.dfa1.vortex.proto.ProtoDType shreddedProto = io.github.dfa1.vortex.proto.ProtoDType.ofPrimitive(
- new ProtoPrimitive(io.github.dfa1.vortex.proto.ProtoPType.I32, false));
+ io.github.dfa1.vortex.core.proto.ProtoDType shreddedProto = io.github.dfa1.vortex.core.proto.ProtoDType.ofPrimitive(
+ new ProtoPrimitive(io.github.dfa1.vortex.core.proto.ProtoPType.I32, false));
MemorySegment meta = variantMetaWithShredded(shreddedProto);
ArrayNode coreNode = nullChildNode();
@@ -151,15 +151,15 @@ void decode_wrongChildCount_throws() {
@Nested
class DtypeFromProto {
- private static io.github.dfa1.vortex.proto.ProtoDType prim(io.github.dfa1.vortex.proto.ProtoPType pt, boolean nullable) {
- return io.github.dfa1.vortex.proto.ProtoDType.ofPrimitive(new ProtoPrimitive(pt, nullable));
+ private static io.github.dfa1.vortex.core.proto.ProtoDType prim(io.github.dfa1.vortex.core.proto.ProtoPType pt, boolean nullable) {
+ return io.github.dfa1.vortex.core.proto.ProtoDType.ofPrimitive(new ProtoPrimitive(pt, nullable));
}
@Test
void nullType() {
// Given / When
DType result = VariantEncodingDecoder.dtypeFromProto(
- io.github.dfa1.vortex.proto.ProtoDType.ofNull(new io.github.dfa1.vortex.proto.ProtoNull()));
+ io.github.dfa1.vortex.core.proto.ProtoDType.ofNull(new io.github.dfa1.vortex.core.proto.ProtoNull()));
// Then null is always nullable
assertThat(result).isEqualTo(new DType.Null(true));
@@ -169,7 +169,7 @@ void nullType() {
void bool() {
// Given / When
DType result = VariantEncodingDecoder.dtypeFromProto(
- io.github.dfa1.vortex.proto.ProtoDType.ofBool(new io.github.dfa1.vortex.proto.ProtoBool(true)));
+ io.github.dfa1.vortex.core.proto.ProtoDType.ofBool(new io.github.dfa1.vortex.core.proto.ProtoBool(true)));
// Then
assertThat(result).isEqualTo(new DType.Bool(true));
@@ -178,7 +178,7 @@ void bool() {
@Test
void primitive() {
// Given / When
- DType result = VariantEncodingDecoder.dtypeFromProto(prim(io.github.dfa1.vortex.proto.ProtoPType.I64, false));
+ DType result = VariantEncodingDecoder.dtypeFromProto(prim(io.github.dfa1.vortex.core.proto.ProtoPType.I64, false));
// Then
assertThat(result).isEqualTo(DType.I64);
@@ -188,7 +188,7 @@ void primitive() {
void decimal() {
// Given / When
DType result = VariantEncodingDecoder.dtypeFromProto(
- io.github.dfa1.vortex.proto.ProtoDType.ofDecimal(new io.github.dfa1.vortex.proto.ProtoDecimal(10, 2, false)));
+ io.github.dfa1.vortex.core.proto.ProtoDType.ofDecimal(new io.github.dfa1.vortex.core.proto.ProtoDecimal(10, 2, false)));
// Then precision/scale narrow to byte
assertThat(result).isEqualTo(new DType.Decimal((byte) 10, (byte) 2, false));
@@ -198,7 +198,7 @@ void decimal() {
void utf8() {
// Given / When
DType result = VariantEncodingDecoder.dtypeFromProto(
- io.github.dfa1.vortex.proto.ProtoDType.ofUtf8(new io.github.dfa1.vortex.proto.ProtoUtf8(true)));
+ io.github.dfa1.vortex.core.proto.ProtoDType.ofUtf8(new io.github.dfa1.vortex.core.proto.ProtoUtf8(true)));
// Then
assertThat(result).isEqualTo(new DType.Utf8(true));
@@ -208,7 +208,7 @@ void utf8() {
void binary() {
// Given / When
DType result = VariantEncodingDecoder.dtypeFromProto(
- io.github.dfa1.vortex.proto.ProtoDType.ofBinary(new io.github.dfa1.vortex.proto.ProtoBinary(false)));
+ io.github.dfa1.vortex.core.proto.ProtoDType.ofBinary(new io.github.dfa1.vortex.core.proto.ProtoBinary(false)));
// Then
assertThat(result).isEqualTo(DType.BINARY);
@@ -217,10 +217,10 @@ void binary() {
@Test
void struct() {
// Given a two-field struct with mixed child types
- var proto = io.github.dfa1.vortex.proto.ProtoDType.ofStruct(new io.github.dfa1.vortex.proto.ProtoStruct(
+ var proto = io.github.dfa1.vortex.core.proto.ProtoDType.ofStruct(new io.github.dfa1.vortex.core.proto.ProtoStruct(
List.of("a", "b"),
- List.of(prim(io.github.dfa1.vortex.proto.ProtoPType.I32, false),
- io.github.dfa1.vortex.proto.ProtoDType.ofUtf8(new io.github.dfa1.vortex.proto.ProtoUtf8(true))),
+ List.of(prim(io.github.dfa1.vortex.core.proto.ProtoPType.I32, false),
+ io.github.dfa1.vortex.core.proto.ProtoDType.ofUtf8(new io.github.dfa1.vortex.core.proto.ProtoUtf8(true))),
false));
// When children are translated recursively
@@ -237,8 +237,8 @@ void struct() {
void list() {
// Given / When element type is translated recursively
DType result = VariantEncodingDecoder.dtypeFromProto(
- io.github.dfa1.vortex.proto.ProtoDType.ofList(new io.github.dfa1.vortex.proto.ProtoList(
- prim(io.github.dfa1.vortex.proto.ProtoPType.I32, false), true)));
+ io.github.dfa1.vortex.core.proto.ProtoDType.ofList(new io.github.dfa1.vortex.core.proto.ProtoList(
+ prim(io.github.dfa1.vortex.core.proto.ProtoPType.I32, false), true)));
// Then
assertThat(result).isEqualTo(new DType.List(DType.I32, true));
@@ -248,8 +248,8 @@ void list() {
void fixedSizeList() {
// Given / When
DType result = VariantEncodingDecoder.dtypeFromProto(
- io.github.dfa1.vortex.proto.ProtoDType.ofFixedSizeList(new io.github.dfa1.vortex.proto.ProtoFixedSizeList(
- prim(io.github.dfa1.vortex.proto.ProtoPType.F64, false), 4, false)));
+ io.github.dfa1.vortex.core.proto.ProtoDType.ofFixedSizeList(new io.github.dfa1.vortex.core.proto.ProtoFixedSizeList(
+ prim(io.github.dfa1.vortex.core.proto.ProtoPType.F64, false), 4, false)));
// Then size is carried through
assertThat(result).isEqualTo(
@@ -259,8 +259,8 @@ void fixedSizeList() {
@Test
void extension_withMetadata() {
// Given an extension with non-null metadata bytes
- var proto = io.github.dfa1.vortex.proto.ProtoDType.ofExtension(new io.github.dfa1.vortex.proto.ProtoExtension(
- "ip.address", prim(io.github.dfa1.vortex.proto.ProtoPType.I32, false), new byte[]{1, 2, 3}));
+ var proto = io.github.dfa1.vortex.core.proto.ProtoDType.ofExtension(new io.github.dfa1.vortex.core.proto.ProtoExtension(
+ "ip.address", prim(io.github.dfa1.vortex.core.proto.ProtoPType.I32, false), new byte[]{1, 2, 3}));
// When
DType result = VariantEncodingDecoder.dtypeFromProto(proto);
@@ -276,8 +276,8 @@ void extension_withMetadata() {
@Test
void extension_nullMetadata_becomesEmptyBuffer() {
// Given null metadata — must not NPE, maps to an empty read-only buffer
- var proto = io.github.dfa1.vortex.proto.ProtoDType.ofExtension(new io.github.dfa1.vortex.proto.ProtoExtension(
- "uuid", prim(io.github.dfa1.vortex.proto.ProtoPType.I64, false), null));
+ var proto = io.github.dfa1.vortex.core.proto.ProtoDType.ofExtension(new io.github.dfa1.vortex.core.proto.ProtoExtension(
+ "uuid", prim(io.github.dfa1.vortex.core.proto.ProtoPType.I64, false), null));
// When
DType.Extension result = (DType.Extension) VariantEncodingDecoder.dtypeFromProto(proto);
@@ -290,7 +290,7 @@ void extension_nullMetadata_becomesEmptyBuffer() {
void variant() {
// Given / When
DType result = VariantEncodingDecoder.dtypeFromProto(
- io.github.dfa1.vortex.proto.ProtoDType.ofVariant(new io.github.dfa1.vortex.proto.ProtoVariant(false)));
+ io.github.dfa1.vortex.core.proto.ProtoDType.ofVariant(new io.github.dfa1.vortex.core.proto.ProtoVariant(false)));
// Then
assertThat(result).isEqualTo(DType.VARIANT);
@@ -299,7 +299,7 @@ void variant() {
@Test
void noFieldSet_throws() {
// Given a proto DType with no oneof arm populated
- var empty = new io.github.dfa1.vortex.proto.ProtoDType(
+ var empty = new io.github.dfa1.vortex.core.proto.ProtoDType(
null, null, null, null, null, null, null, null, null, null, null, null);
// When / Then
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/ZigZagEncodingDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/ZigZagEncodingDecoderTest.java
index 5f305ff2..8519ad72 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/decode/ZigZagEncodingDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/decode/ZigZagEncodingDecoderTest.java
@@ -1,9 +1,9 @@
package io.github.dfa1.vortex.reader.decode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
import io.github.dfa1.vortex.encoding.TestSegments;
import io.github.dfa1.vortex.reader.ReadRegistry;
import io.github.dfa1.vortex.reader.array.Array;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/extension/DateExtensionDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/extension/DateExtensionDecoderTest.java
index 67ba31ec..458a1208 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/extension/DateExtensionDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/extension/DateExtensionDecoderTest.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.reader.extension;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.extension.ExtensionId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.ExtensionId;
import io.github.dfa1.vortex.reader.array.BoolArray;
import io.github.dfa1.vortex.reader.array.IntArray;
import io.github.dfa1.vortex.reader.array.MaskedArray;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/extension/ExtensionStorageTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/extension/ExtensionStorageTest.java
index 38cb5ff2..b0650446 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/extension/ExtensionStorageTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/extension/ExtensionStorageTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader.extension;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.TimeUnit;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.TimeUnit;
import io.github.dfa1.vortex.reader.array.DoubleArray;
import io.github.dfa1.vortex.reader.array.MaskedArray;
import org.junit.jupiter.api.Nested;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/extension/ExtensionTestSupport.java b/reader/src/test/java/io/github/dfa1/vortex/reader/extension/ExtensionTestSupport.java
index e1e8cf22..d6776e76 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/extension/ExtensionTestSupport.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/extension/ExtensionTestSupport.java
@@ -1,12 +1,12 @@
package io.github.dfa1.vortex.reader.extension;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.model.DType;
import io.github.dfa1.vortex.reader.array.IntArray;
import io.github.dfa1.vortex.reader.array.LongArray;
import io.github.dfa1.vortex.reader.array.MaterializedIntArray;
import io.github.dfa1.vortex.reader.array.MaterializedLongArray;
-import static io.github.dfa1.vortex.encoding.PTypeIO.LE_SHORT;
+import static io.github.dfa1.vortex.core.io.PTypeIO.LE_SHORT;
import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/extension/TimeExtensionDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/extension/TimeExtensionDecoderTest.java
index c30a9b67..6dbdabbd 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/extension/TimeExtensionDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/extension/TimeExtensionDecoderTest.java
@@ -1,10 +1,10 @@
package io.github.dfa1.vortex.reader.extension;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.TimeUnit;
-import io.github.dfa1.vortex.extension.ExtensionId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.TimeUnit;
+import io.github.dfa1.vortex.core.model.ExtensionId;
import io.github.dfa1.vortex.reader.array.BoolArray;
import io.github.dfa1.vortex.reader.array.IntArray;
import io.github.dfa1.vortex.reader.array.MaskedArray;
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/extension/TimestampExtensionDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/extension/TimestampExtensionDecoderTest.java
index 28856790..3b75e912 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/extension/TimestampExtensionDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/extension/TimestampExtensionDecoderTest.java
@@ -1,9 +1,9 @@
package io.github.dfa1.vortex.reader.extension;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.TimeUnit;
-import io.github.dfa1.vortex.extension.ExtensionId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.TimeUnit;
+import io.github.dfa1.vortex.core.model.ExtensionId;
import io.github.dfa1.vortex.reader.array.BoolArray;
import io.github.dfa1.vortex.reader.array.LongArray;
import io.github.dfa1.vortex.reader.array.MaskedArray;
@@ -46,7 +46,7 @@ void dtype_defaultIsMsUtcless() {
// Then — byte 0 = ms ordinal, bytes 1..3 = 0 (tz_len = 0)
assertThat(dtype.storageDType()).isEqualTo(DType.I64);
assertThat(dtype.metadata().get(java.lang.foreign.ValueLayout.JAVA_BYTE, 0)).isEqualTo((byte) TimeUnit.Milliseconds.ordinal());
- assertThat(dtype.metadata().get(io.github.dfa1.vortex.encoding.PTypeIO.LE_SHORT, 1)).isEqualTo((short) 0);
+ assertThat(dtype.metadata().get(io.github.dfa1.vortex.core.io.PTypeIO.LE_SHORT, 1)).isEqualTo((short) 0);
}
@Test
@@ -55,7 +55,7 @@ void dtype_withTimezoneEncodesIanaName() {
DType.Extension dtype = sut.dtype(TimeUnit.Microseconds, ZoneId.of("Europe/Paris"), false);
// Then — header tz_len matches the UTF-8 length; the actual bytes follow
- int tzLen = Short.toUnsignedInt(dtype.metadata().get(io.github.dfa1.vortex.encoding.PTypeIO.LE_SHORT, 1));
+ int tzLen = Short.toUnsignedInt(dtype.metadata().get(io.github.dfa1.vortex.core.io.PTypeIO.LE_SHORT, 1));
assertThat(tzLen).isEqualTo("Europe/Paris".getBytes().length);
assertThat(sut.timezone(dtype)).contains(ZoneId.of("Europe/Paris"));
}
diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/extension/UuidExtensionDecoderTest.java b/reader/src/test/java/io/github/dfa1/vortex/reader/extension/UuidExtensionDecoderTest.java
index 15f373c9..0be863ec 100644
--- a/reader/src/test/java/io/github/dfa1/vortex/reader/extension/UuidExtensionDecoderTest.java
+++ b/reader/src/test/java/io/github/dfa1/vortex/reader/extension/UuidExtensionDecoderTest.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.reader.extension;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.extension.ExtensionId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.ExtensionId;
import io.github.dfa1.vortex.reader.array.BoolArray;
import io.github.dfa1.vortex.reader.array.ByteArray;
import io.github.dfa1.vortex.reader.array.FixedSizeListArray;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/ChunkImpl.java b/writer/src/main/java/io/github/dfa1/vortex/writer/ChunkImpl.java
index 188f4d3e..40978d0c 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/ChunkImpl.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/ChunkImpl.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.writer;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
import io.github.dfa1.vortex.writer.encode.NullableData;
import java.util.LinkedHashMap;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/ExtensionEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/ExtensionEncoder.java
index 9c45fe61..f38e6298 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/ExtensionEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/ExtensionEncoder.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.writer;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.extension.ExtensionId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.ExtensionId;
import java.util.Collection;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/VortexWriter.java b/writer/src/main/java/io/github/dfa1/vortex/writer/VortexWriter.java
index 73844e98..f116c112 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/VortexWriter.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/VortexWriter.java
@@ -1,17 +1,17 @@
package io.github.dfa1.vortex.writer;
-import io.github.dfa1.vortex.fbs.FbsBuilder;
+import io.github.dfa1.vortex.core.fbs.FbsBuilder;
import io.github.dfa1.vortex.writer.encode.DateTimePartsData;
import io.github.dfa1.vortex.writer.encode.FixedSizeListData;
import io.github.dfa1.vortex.writer.encode.ListData;
import io.github.dfa1.vortex.writer.encode.ListViewData;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexFormat;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.io.VortexFormat;
+import io.github.dfa1.vortex.core.model.EncodingId;
import io.github.dfa1.vortex.writer.encode.EncodeContext;
import io.github.dfa1.vortex.writer.encode.EncodeNode;
-import io.github.dfa1.vortex.proto.ProtoScalarValue;
+import io.github.dfa1.vortex.core.proto.ProtoScalarValue;
import io.github.dfa1.vortex.writer.encode.EncodeResult;
import io.github.dfa1.vortex.writer.encode.NullableData;
import io.github.dfa1.vortex.writer.encode.StructData;
@@ -35,15 +35,15 @@
import io.github.dfa1.vortex.writer.encode.SparseEncodingEncoder;
import io.github.dfa1.vortex.writer.encode.VarBinEncodingEncoder;
import io.github.dfa1.vortex.writer.encode.ZstdEncodingEncoder;
-import io.github.dfa1.vortex.fbs.FbsArraySpec;
-import io.github.dfa1.vortex.fbs.FbsExtension;
-import io.github.dfa1.vortex.fbs.FbsFooter;
-import io.github.dfa1.vortex.fbs.FbsLayout;
-import io.github.dfa1.vortex.fbs.FbsLayoutSpec;
-import io.github.dfa1.vortex.fbs.FbsPostscript;
-import io.github.dfa1.vortex.fbs.FbsPostscriptSegment;
-import io.github.dfa1.vortex.fbs.FbsSegmentSpec;
-import io.github.dfa1.vortex.fbs.FbsType;
+import io.github.dfa1.vortex.core.fbs.FbsArraySpec;
+import io.github.dfa1.vortex.core.fbs.FbsExtension;
+import io.github.dfa1.vortex.core.fbs.FbsFooter;
+import io.github.dfa1.vortex.core.fbs.FbsLayout;
+import io.github.dfa1.vortex.core.fbs.FbsLayoutSpec;
+import io.github.dfa1.vortex.core.fbs.FbsPostscript;
+import io.github.dfa1.vortex.core.fbs.FbsPostscriptSegment;
+import io.github.dfa1.vortex.core.fbs.FbsSegmentSpec;
+import io.github.dfa1.vortex.core.fbs.FbsType;
import java.io.Closeable;
import java.io.IOException;
@@ -274,25 +274,25 @@ private static long arrayLength(Object data) {
private static ByteBuffer buildDType(DType dtype) {
var fbb = new FbsBuilder(128);
int off = serializeDType(fbb, dtype);
- io.github.dfa1.vortex.fbs.FbsDType.finishFbsDTypeBuffer(fbb, off);
+ io.github.dfa1.vortex.core.fbs.FbsDType.finishFbsDTypeBuffer(fbb, off);
return fbb.dataSegment().asByteBuffer().order(ByteOrder.LITTLE_ENDIAN);
}
private static int serializeDType(FbsBuilder fbb, DType dtype) {
return switch (dtype) {
case DType.Null _ -> {
- io.github.dfa1.vortex.fbs.FbsNull.startFbsNull(fbb);
- int inner = io.github.dfa1.vortex.fbs.FbsNull.endFbsNull(fbb);
- yield io.github.dfa1.vortex.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsNull, inner);
+ io.github.dfa1.vortex.core.fbs.FbsNull.startFbsNull(fbb);
+ int inner = io.github.dfa1.vortex.core.fbs.FbsNull.endFbsNull(fbb);
+ yield io.github.dfa1.vortex.core.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsNull, inner);
}
case DType.Bool b -> {
- int inner = io.github.dfa1.vortex.fbs.FbsBool.createFbsBool(fbb, b.nullable());
- yield io.github.dfa1.vortex.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsBool, inner);
+ int inner = io.github.dfa1.vortex.core.fbs.FbsBool.createFbsBool(fbb, b.nullable());
+ yield io.github.dfa1.vortex.core.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsBool, inner);
}
case DType.Primitive p -> {
- int inner = io.github.dfa1.vortex.fbs.FbsPrimitive.createFbsPrimitive(
+ int inner = io.github.dfa1.vortex.core.fbs.FbsPrimitive.createFbsPrimitive(
fbb, p.ptype().ordinal(), p.nullable());
- yield io.github.dfa1.vortex.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsPrimitive, inner);
+ yield io.github.dfa1.vortex.core.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsPrimitive, inner);
}
case DType.Struct s -> {
// Build child DType tables first (FlatBuffers bottom-up requirement)
@@ -304,26 +304,26 @@ private static int serializeDType(FbsBuilder fbb, DType dtype) {
for (int i = 0; i < nameOffsets.length; i++) {
nameOffsets[i] = fbb.createString(s.fieldNames().get(i));
}
- int namesVec = io.github.dfa1.vortex.fbs.FbsStruct_.createNamesVector(fbb, nameOffsets);
- int dtypesVec = io.github.dfa1.vortex.fbs.FbsStruct_.createDtypesVector(fbb, fieldOffsets);
- int inner = io.github.dfa1.vortex.fbs.FbsStruct_.createFbsStruct_(
+ int namesVec = io.github.dfa1.vortex.core.fbs.FbsStruct_.createNamesVector(fbb, nameOffsets);
+ int dtypesVec = io.github.dfa1.vortex.core.fbs.FbsStruct_.createDtypesVector(fbb, fieldOffsets);
+ int inner = io.github.dfa1.vortex.core.fbs.FbsStruct_.createFbsStruct_(
fbb, namesVec, dtypesVec, s.nullable());
- yield io.github.dfa1.vortex.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsStruct_, inner);
+ yield io.github.dfa1.vortex.core.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsStruct_, inner);
}
case DType.Utf8 u -> {
- int inner = io.github.dfa1.vortex.fbs.FbsUtf8.createFbsUtf8(fbb, u.nullable());
- yield io.github.dfa1.vortex.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsUtf8, inner);
+ int inner = io.github.dfa1.vortex.core.fbs.FbsUtf8.createFbsUtf8(fbb, u.nullable());
+ yield io.github.dfa1.vortex.core.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsUtf8, inner);
}
case DType.List l -> {
int elemTypeOff = serializeDType(fbb, l.elementType());
- int inner = io.github.dfa1.vortex.fbs.FbsList.createFbsList(fbb, elemTypeOff, l.nullable());
- yield io.github.dfa1.vortex.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsList, inner);
+ int inner = io.github.dfa1.vortex.core.fbs.FbsList.createFbsList(fbb, elemTypeOff, l.nullable());
+ yield io.github.dfa1.vortex.core.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsList, inner);
}
case DType.FixedSizeList fsl -> {
int elemTypeOff = serializeDType(fbb, fsl.elementType());
- int inner = io.github.dfa1.vortex.fbs.FbsFixedSizeList.createFbsFixedSizeList(
+ int inner = io.github.dfa1.vortex.core.fbs.FbsFixedSizeList.createFbsFixedSizeList(
fbb, elemTypeOff, fsl.fixedSize(), fsl.nullable());
- yield io.github.dfa1.vortex.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsFixedSizeList, inner);
+ yield io.github.dfa1.vortex.core.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsFixedSizeList, inner);
}
case DType.Extension e -> {
int idOff = fbb.createString(e.extensionId());
@@ -334,11 +334,11 @@ private static int serializeDType(FbsBuilder fbb, DType dtype) {
metaOff = FbsExtension.createMetadataVector(fbb, metaBytes);
}
int inner = FbsExtension.createFbsExtension(fbb, idOff, storageDtypeOff, metaOff);
- yield io.github.dfa1.vortex.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsExtension, inner);
+ yield io.github.dfa1.vortex.core.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsExtension, inner);
}
case DType.Variant v -> {
- int inner = io.github.dfa1.vortex.fbs.FbsVariant.createFbsVariant(fbb, v.nullable());
- yield io.github.dfa1.vortex.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsVariant, inner);
+ int inner = io.github.dfa1.vortex.core.fbs.FbsVariant.createFbsVariant(fbb, v.nullable());
+ yield io.github.dfa1.vortex.core.fbs.FbsDType.createFbsDType(fbb, FbsType.FbsVariant, inner);
}
default -> throw new UnsupportedOperationException("unsupported DType: " + dtype);
};
@@ -442,7 +442,7 @@ public void writeChunk(Map columns) throws IOException {
// (ExtEncoding → PrimitiveEncoding) and lets Registry skip its unwrap path.
if (colDtype instanceof DType.Extension extDtype && data instanceof java.util.Collection> coll) {
ExtensionEncoder impl =
- io.github.dfa1.vortex.extension.ExtensionId.parse(extDtype.extensionId())
+ io.github.dfa1.vortex.core.model.ExtensionId.parse(extDtype.extensionId())
.map(defaultRegistry::lookup)
.orElse(null);
if (impl != null) {
@@ -625,21 +625,21 @@ private ByteBuffer buildArrayFlatBuffer(EncodeResult result, long nullCount) {
// Stats for the root node only (build vectors before the ArrayStats table). null_count is
// always recorded; min/max only when the encoder produced them.
int minVec = result.hasStats()
- ? io.github.dfa1.vortex.fbs.FbsArrayStats.createMinVector(fbb, result.statsMin()) : 0;
+ ? io.github.dfa1.vortex.core.fbs.FbsArrayStats.createMinVector(fbb, result.statsMin()) : 0;
int maxVec = result.hasStats()
- ? io.github.dfa1.vortex.fbs.FbsArrayStats.createMaxVector(fbb, result.statsMax()) : 0;
+ ? io.github.dfa1.vortex.core.fbs.FbsArrayStats.createMaxVector(fbb, result.statsMax()) : 0;
// forceDefaults only while building ArrayStats, so null_count = 0 is serialised (flatbuffers
// omits a scalar equal to its default otherwise) — matching the Rust writer and letting the
// reader prune IS NULL on zero-null chunks. Reset immediately so the Array/ArrayNode tables
// keep their normal (offset-default-omitting) layout.
fbb.forceDefaults(true);
- io.github.dfa1.vortex.fbs.FbsArrayStats.startFbsArrayStats(fbb);
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats.startFbsArrayStats(fbb);
if (result.hasStats()) {
- io.github.dfa1.vortex.fbs.FbsArrayStats.addMin(fbb, minVec);
- io.github.dfa1.vortex.fbs.FbsArrayStats.addMax(fbb, maxVec);
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats.addMin(fbb, minVec);
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats.addMax(fbb, maxVec);
}
- io.github.dfa1.vortex.fbs.FbsArrayStats.addNullCount(fbb, nullCount);
- int statsOff = io.github.dfa1.vortex.fbs.FbsArrayStats.endFbsArrayStats(fbb);
+ io.github.dfa1.vortex.core.fbs.FbsArrayStats.addNullCount(fbb, nullCount);
+ int statsOff = io.github.dfa1.vortex.core.fbs.FbsArrayStats.endFbsArrayStats(fbb);
fbb.forceDefaults(false);
int rootNodeOff = buildArrayNodeFlatBuffer(fbb, result.rootNode(), statsOff);
@@ -648,7 +648,7 @@ private ByteBuffer buildArrayFlatBuffer(EncodeResult result, long nullCount) {
// FbsLayout (LE): padding(u16) | alignment_exponent(u8) | compression(u8) | length(u32)
// FlatBuffers builds backward: iterate in reverse.
var bufs = result.buffers();
- io.github.dfa1.vortex.fbs.FbsArray.startBuffersVector(fbb, bufs.size());
+ io.github.dfa1.vortex.core.fbs.FbsArray.startBuffersVector(fbb, bufs.size());
for (int i = bufs.size() - 1; i >= 0; i--) {
fbb.prep(4, 8);
fbb.putInt((int) bufs.get(i).byteSize());
@@ -658,8 +658,8 @@ private ByteBuffer buildArrayFlatBuffer(EncodeResult result, long nullCount) {
}
int bufVec = fbb.endVector();
- int arrayOff = io.github.dfa1.vortex.fbs.FbsArray.createFbsArray(fbb, rootNodeOff, bufVec);
- io.github.dfa1.vortex.fbs.FbsArray.finishFbsArrayBuffer(fbb, arrayOff);
+ int arrayOff = io.github.dfa1.vortex.core.fbs.FbsArray.createFbsArray(fbb, rootNodeOff, bufVec);
+ io.github.dfa1.vortex.core.fbs.FbsArray.finishFbsArrayBuffer(fbb, arrayOff);
return fbb.dataSegment().asByteBuffer().order(ByteOrder.LITTLE_ENDIAN);
}
@@ -675,17 +675,17 @@ private int buildArrayNodeFlatBuffer(FbsBuilder fbb, EncodeNode node, int statsO
int metaOff = 0;
if (node.metadata() != null && node.metadata().byteSize() > 0) {
byte[] metaBytes = node.metadata().toArray(java.lang.foreign.ValueLayout.JAVA_BYTE);
- metaOff = io.github.dfa1.vortex.fbs.FbsArrayNode.createMetadataVector(fbb, metaBytes);
+ metaOff = io.github.dfa1.vortex.core.fbs.FbsArrayNode.createMetadataVector(fbb, metaBytes);
}
int childVec = 0;
if (childOffsets.length > 0) {
- childVec = io.github.dfa1.vortex.fbs.FbsArrayNode.createChildrenVector(fbb, childOffsets);
+ childVec = io.github.dfa1.vortex.core.fbs.FbsArrayNode.createChildrenVector(fbb, childOffsets);
}
- int bufIdxVec = io.github.dfa1.vortex.fbs.FbsArrayNode.createBuffersVector(fbb, node.bufferIndices());
+ int bufIdxVec = io.github.dfa1.vortex.core.fbs.FbsArrayNode.createBuffersVector(fbb, node.bufferIndices());
int encIdx = encodingIdx.get(node.encodingId());
- return io.github.dfa1.vortex.fbs.FbsArrayNode.createFbsArrayNode(
+ return io.github.dfa1.vortex.core.fbs.FbsArrayNode.createFbsArrayNode(
fbb, encIdx, metaOff, childVec, bufIdxVec, statsOff);
}
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/WriteRegistry.java b/writer/src/main/java/io/github/dfa1/vortex/writer/WriteRegistry.java
index ce29796f..847fd6f8 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/WriteRegistry.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/WriteRegistry.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.writer;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.extension.ExtensionId;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.model.ExtensionId;
import io.github.dfa1.vortex.writer.encode.EncodingEncoder;
import java.util.Collections;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/AlpEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/AlpEncodingEncoder.java
index ce9306e5..d535b63b 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/AlpEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/AlpEncodingEncoder.java
@@ -1,12 +1,12 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.proto.ProtoALPMetadata;
-import io.github.dfa1.vortex.proto.ProtoPatchesMetadata;
-import io.github.dfa1.vortex.proto.ProtoScalarValue;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.proto.ProtoALPMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoPatchesMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoScalarValue;
import java.lang.foreign.MemorySegment;
import java.util.ArrayList;
@@ -388,7 +388,7 @@ private static EncodeResult encodeF32(float[] values, EncodeContext ctx) {
ProtoPatchesMetadata patches = new ProtoPatchesMetadata(
numPatches,
0L,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.U32.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.U32.ordinal()),
null, null, null);
byte[] metaBytes = new ProtoALPMetadata(expE, expF, patches).encode();
@@ -405,7 +405,7 @@ private static ProtoPatchesMetadata buildPatchesMeta(int numPatches) {
return new ProtoPatchesMetadata(
numPatches,
0L,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.U32.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.U32.ordinal()),
null, null, null);
}
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/AlpRdEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/AlpRdEncodingEncoder.java
index 24d4ce21..7ae3921a 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/AlpRdEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/AlpRdEncodingEncoder.java
@@ -1,10 +1,10 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.proto.ProtoALPRDMetadata;
-import io.github.dfa1.vortex.proto.ProtoPatchesMetadata;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.proto.ProtoALPRDMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoPatchesMetadata;
import java.lang.foreign.MemorySegment;
import java.util.ArrayList;
@@ -269,7 +269,7 @@ private static EncodeResult buildEncodeResult(
patchesMeta = new ProtoPatchesMetadata(
excPos.size(),
0L,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.U64.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.U64.ordinal()),
null, null, null);
children = new EncodeNode[]{leftNode, rightNode, idxNode, valNode};
}
@@ -278,7 +278,7 @@ private static EncodeResult buildEncodeResult(
rightBitWidth,
dict.length,
dictList,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.U16.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.U16.ordinal()),
patchesMeta
).encode();
EncodeNode root = new EncodeNode(
@@ -303,7 +303,7 @@ private static EncodeResult emptyResult(DType rightDtype, EncodeContext ctx) {
48,
0,
List.of(),
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.U16.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.U16.ordinal()),
null).encode();
EncodeNode root = new EncodeNode(
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ArrayStats.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ArrayStats.java
index 306cee07..416db985 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ArrayStats.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ArrayStats.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
import java.util.HashMap;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/BitpackedEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/BitpackedEncodingEncoder.java
index ff88df93..35fcbe35 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/BitpackedEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/BitpackedEncodingEncoder.java
@@ -1,15 +1,15 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.FastLanes;
-import io.github.dfa1.vortex.encoding.PrimitiveArrays;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.proto.ProtoBitPackedMetadata;
-import io.github.dfa1.vortex.proto.ProtoPatchesMetadata;
-import io.github.dfa1.vortex.proto.ProtoScalarValue;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.compute.FastLanes;
+import io.github.dfa1.vortex.core.compute.PrimitiveArrays;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.proto.ProtoBitPackedMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoPatchesMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoScalarValue;
import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
@@ -128,7 +128,7 @@ public EncodeResult encode(DType dtype, Object data, EncodeContext ctx) {
ProtoPatchesMetadata patches = new ProtoPatchesMetadata(
numPatches, 0L,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(idxPtype.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(idxPtype.ordinal()),
null, null, null);
byte[] metaBytes = new ProtoBitPackedMetadata(bitWidth, 0, patches).encode();
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/BoolEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/BoolEncodingEncoder.java
index de510b2a..78c11209 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/BoolEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/BoolEncodingEncoder.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.proto.ProtoScalarValue;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.proto.ProtoScalarValue;
import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ByteBoolEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ByteBoolEncodingEncoder.java
index 08133a0b..75c6b63e 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ByteBoolEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ByteBoolEncodingEncoder.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.EncodingId;
import java.lang.foreign.MemorySegment;
import java.lang.foreign.ValueLayout;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/CascadingCompressor.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/CascadingCompressor.java
index bb406249..a7b493c0 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/CascadingCompressor.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/CascadingCompressor.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.EncodingId;
import java.lang.foreign.MemorySegment;
import java.util.ArrayList;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ChildSlot.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ChildSlot.java
index f8270823..4d292eb4 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ChildSlot.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ChildSlot.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.model.DType;
/// An open slot in a partially-assembled encoding tree.
/// The cascading compressor fills each slot recursively, then splices the result
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ChunkedEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ChunkedEncodingEncoder.java
index 0763ab83..975061c4 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ChunkedEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ChunkedEncodingEncoder.java
@@ -1,11 +1,11 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ConstantEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ConstantEncodingEncoder.java
index 1e2f8ce8..3fed04df 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ConstantEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ConstantEncodingEncoder.java
@@ -1,10 +1,10 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.proto.ProtoScalarValue;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.proto.ProtoScalarValue;
import java.lang.foreign.MemorySegment;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DateExtensionEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DateExtensionEncoder.java
index 09b0c202..4c042509 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DateExtensionEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DateExtensionEncoder.java
@@ -1,10 +1,10 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.TimeUnit;
-import io.github.dfa1.vortex.extension.ExtensionId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.TimeUnit;
+import io.github.dfa1.vortex.core.model.ExtensionId;
import io.github.dfa1.vortex.writer.ExtensionEncoder;
import java.lang.foreign.MemorySegment;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DateTimePartsEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DateTimePartsEncodingEncoder.java
index 5e65a5f8..7cdfd00b 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DateTimePartsEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DateTimePartsEncodingEncoder.java
@@ -1,11 +1,11 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.TimeUnit;
-import io.github.dfa1.vortex.proto.ProtoDateTimePartsMetadata;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.model.TimeUnit;
+import io.github.dfa1.vortex.core.proto.ProtoDateTimePartsMetadata;
import java.lang.foreign.MemorySegment;
import java.util.ArrayList;
@@ -15,8 +15,8 @@
public final class DateTimePartsEncodingEncoder implements EncodingEncoder {
private static final long SECONDS_PER_DAY = 86_400L;
- private static final io.github.dfa1.vortex.proto.ProtoPType I64_PROTO =
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.I64.ordinal());
+ private static final io.github.dfa1.vortex.core.proto.ProtoPType I64_PROTO =
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.I64.ordinal());
/// Public no-arg constructor required by [java.util.ServiceLoader].
public DateTimePartsEncodingEncoder() {
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DecimalBytePartsEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DecimalBytePartsEncodingEncoder.java
index 8fa40902..d35eea59 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DecimalBytePartsEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DecimalBytePartsEncodingEncoder.java
@@ -1,10 +1,10 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.model.EncodingId;
import java.lang.foreign.MemorySegment;
-import io.github.dfa1.vortex.proto.ProtoDecimalBytePartsMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoDecimalBytePartsMetadata;
import java.util.List;
@@ -33,7 +33,7 @@ public EncodeResult encode(DType dtype, Object data, EncodeContext ctx) {
EncodeResult mspResult = ctx.lookupEncoder(EncodingId.VORTEX_PRIMITIVE).encode(mspDtype, longs, ctx);
ProtoDecimalBytePartsMetadata proto = new ProtoDecimalBytePartsMetadata(
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.I64.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.I64.ordinal()),
0);
MemorySegment metaBuf = MemorySegment.ofArray(proto.encode());
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DecimalEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DecimalEncodingEncoder.java
index 3cc772d6..440c6921 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DecimalEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DecimalEncodingEncoder.java
@@ -1,9 +1,9 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.proto.ProtoDecimalMetadata;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.proto.ProtoDecimalMetadata;
import java.lang.foreign.MemorySegment;
import java.util.List;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DeltaEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DeltaEncodingEncoder.java
index 207d49ef..bea74c82 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DeltaEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DeltaEncodingEncoder.java
@@ -1,12 +1,12 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.FastLanes;
-import io.github.dfa1.vortex.encoding.PrimitiveArrays;
-import io.github.dfa1.vortex.proto.ProtoDeltaMetadata;
-import io.github.dfa1.vortex.proto.ProtoScalarValue;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.compute.FastLanes;
+import io.github.dfa1.vortex.core.compute.PrimitiveArrays;
+import io.github.dfa1.vortex.core.proto.ProtoDeltaMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoScalarValue;
import java.lang.foreign.MemorySegment;
import java.util.List;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DictEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DictEncodingEncoder.java
index d482ffa2..205645f5 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DictEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/DictEncodingEncoder.java
@@ -1,13 +1,13 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.proto.ProtoDictMetadata;
-import io.github.dfa1.vortex.proto.ProtoScalarValue;
-import io.github.dfa1.vortex.proto.ProtoVarBinMetadata;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.proto.ProtoDictMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoScalarValue;
+import io.github.dfa1.vortex.core.proto.ProtoVarBinMetadata;
import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
@@ -144,13 +144,13 @@ private static EncodeResult encodeUtf8(String[] strings, EncodeContext ctx) {
byte[] metaBytes = new ProtoDictMetadata(
dictSize,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(codePType.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(codePType.ordinal()),
null,
null
).encode();
byte[] varBinMetaBytes = new ProtoVarBinMetadata(
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.I64.ordinal())
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.I64.ordinal())
).encode();
EncodeNode offsetsNode = EncodeNode.leaf(EncodingId.VORTEX_PRIMITIVE, 1);
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodeContext.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodeContext.java
index b9f0adbc..719d2bd6 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodeContext.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodeContext.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.error.VortexException;
import io.github.dfa1.vortex.writer.WriteRegistry;
import java.lang.foreign.Arena;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodeNode.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodeNode.java
index 6a508f4f..be4af6f2 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodeNode.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodeNode.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
import java.lang.foreign.MemorySegment;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodeResult.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodeResult.java
index a8fe1374..5949508c 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodeResult.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodeResult.java
@@ -1,6 +1,6 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
import java.lang.foreign.MemorySegment;
import java.util.List;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodingEncoder.java
index 48035beb..434707ef 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/EncodingEncoder.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.model.DType;
/// Write-side surface of an encoding. Exposes only the metadata required to pick an
/// encoder for a dtype and the [#encode(DType, Object, EncodeContext)] entry
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ExtEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ExtEncodingEncoder.java
index 013e2daa..40e9117c 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ExtEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ExtEncodingEncoder.java
@@ -1,8 +1,8 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
import java.util.List;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/FixedSizeListEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/FixedSizeListEncodingEncoder.java
index 5628ac31..240c4972 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/FixedSizeListEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/FixedSizeListEncodingEncoder.java
@@ -1,10 +1,10 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
+import io.github.dfa1.vortex.core.model.DType;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/FrameOfReferenceEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/FrameOfReferenceEncodingEncoder.java
index f2e918c8..600a6f8e 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/FrameOfReferenceEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/FrameOfReferenceEncodingEncoder.java
@@ -1,12 +1,12 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.PrimitiveArrays;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.proto.ProtoScalarValue;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.compute.PrimitiveArrays;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.proto.ProtoScalarValue;
import java.lang.foreign.MemorySegment;
import java.util.List;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/FsstEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/FsstEncodingEncoder.java
index 52a85e09..3468fe7f 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/FsstEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/FsstEncodingEncoder.java
@@ -1,10 +1,10 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.proto.ProtoFSSTMetadata;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.proto.ProtoFSSTMetadata;
import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
@@ -113,8 +113,8 @@ public EncodeResult encode(DType dtype, Object data, EncodeContext ctx) {
}
byte[] metaBytes = new ProtoFSSTMetadata(
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.I32.ordinal()),
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.I32.ordinal())
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.I32.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.I32.ordinal())
).encode();
EncodeNode uncompLensNode = EncodeNode.leaf(EncodingId.VORTEX_PRIMITIVE, 3);
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ListEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ListEncodingEncoder.java
index 880f8554..33a8992f 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ListEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ListEncodingEncoder.java
@@ -1,16 +1,16 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.io.PTypeIO;
-import io.github.dfa1.vortex.proto.ProtoListMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoListMetadata;
import java.lang.foreign.MemorySegment;
import java.util.ArrayList;
@@ -60,7 +60,7 @@ public EncodeResult encode(DType dtype, Object data, EncodeContext ctx) {
long elementsLen = ld.offsets()[(int) ld.outerLen()];
byte[] metaBytes = new ProtoListMetadata(
elementsLen,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.I64.ordinal())
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.I64.ordinal())
).encode();
EncodeNode root = new EncodeNode(
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ListViewEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ListViewEncodingEncoder.java
index 23f679b7..b36f7937 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ListViewEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/ListViewEncodingEncoder.java
@@ -1,16 +1,16 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
-import io.github.dfa1.vortex.encoding.PTypeIO;
+import io.github.dfa1.vortex.core.io.PTypeIO;
-import io.github.dfa1.vortex.proto.ProtoListViewMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoListViewMetadata;
import java.lang.foreign.MemorySegment;
import java.util.ArrayList;
@@ -68,8 +68,8 @@ public EncodeResult encode(DType dtype, Object data, EncodeContext ctx) {
long elementsLen = java.lang.reflect.Array.getLength(lvd.elements());
byte[] metaBytes = new ProtoListViewMetadata(
elementsLen,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.I32.ordinal()),
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.I32.ordinal())
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.I32.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.I32.ordinal())
).encode();
EncodeNode root = new EncodeNode(
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/MaskedEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/MaskedEncodingEncoder.java
index 62758601..a0c4cb63 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/MaskedEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/MaskedEncodingEncoder.java
@@ -1,10 +1,10 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.VortexException;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.error.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.EncodingId;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/NullEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/NullEncodingEncoder.java
index f5a69344..8b97307d 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/NullEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/NullEncodingEncoder.java
@@ -1,7 +1,7 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.EncodingId;
import java.util.List;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/PatchedEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/PatchedEncodingEncoder.java
index 099bf95c..021b20fa 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/PatchedEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/PatchedEncodingEncoder.java
@@ -1,13 +1,13 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.FastLanes;
-import io.github.dfa1.vortex.encoding.PrimitiveArrays;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.proto.ProtoPatchedMetadata;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.compute.FastLanes;
+import io.github.dfa1.vortex.core.compute.PrimitiveArrays;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.proto.ProtoPatchedMetadata;
import java.lang.foreign.MemorySegment;
import java.util.List;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/PcoEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/PcoEncodingEncoder.java
index 9a1f4569..7f164ec1 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/PcoEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/PcoEncodingEncoder.java
@@ -1,12 +1,12 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.proto.ProtoPcoChunkInfo;
-import io.github.dfa1.vortex.proto.ProtoPcoMetadata;
-import io.github.dfa1.vortex.proto.ProtoPcoPageInfo;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.proto.ProtoPcoChunkInfo;
+import io.github.dfa1.vortex.core.proto.ProtoPcoMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoPcoPageInfo;
import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/PrimitiveEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/PrimitiveEncodingEncoder.java
index 825cda7e..55d7abd7 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/PrimitiveEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/PrimitiveEncodingEncoder.java
@@ -1,10 +1,10 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.proto.ProtoScalarValue;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.proto.ProtoScalarValue;
import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
@@ -86,7 +86,7 @@ private static MemorySegment encodePrimitive(PType ptype, Object data, Arena are
};
}
- /// Computes the serialised min/max [io.github.dfa1.vortex.proto.ProtoScalarValue] pair for a raw
+ /// Computes the serialised min/max [io.github.dfa1.vortex.core.proto.ProtoScalarValue] pair for a raw
/// primitive array, in the same signed/unsigned/float shape the per-segment stats use. Returns
/// `null` for an empty array. Shared so the dictionary zone-map path computes per-chunk min/max
/// identically to the flat path.
@@ -290,7 +290,7 @@ public static byte[][] minMaxStats(PType ptype, Object data) {
};
}
- /// Computes the serialised SUM [io.github.dfa1.vortex.proto.ProtoScalarValue] for a raw primitive
+ /// Computes the serialised SUM [io.github.dfa1.vortex.core.proto.ProtoScalarValue] for a raw primitive
/// array, in the widened shape Rust uses for zone-map sums: signed ints → `i64`, unsigned ints
/// → `u64`, floats → `f64`. Returns `null` on integer overflow (Rust drops the zone's sum) and
/// for an empty array. Floats never overflow to `null` (they saturate to infinity).
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/RleEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/RleEncodingEncoder.java
index a9478147..40a9025f 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/RleEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/RleEncodingEncoder.java
@@ -1,12 +1,12 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.PrimitiveArrays;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.proto.ProtoRLEMetadata;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.compute.PrimitiveArrays;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.proto.ProtoRLEMetadata;
import java.lang.foreign.MemorySegment;
import java.lang.foreign.SegmentAllocator;
@@ -87,9 +87,9 @@ public EncodeResult encode(DType dtype, Object data, EncodeContext ctx) {
byte[] metaBytes = new ProtoRLEMetadata(
globalValuesCount,
paddedLen,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(indicesPtype.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(indicesPtype.ordinal()),
numChunks,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(offsetsPtype.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(offsetsPtype.ordinal()),
0L
).encode();
@@ -131,9 +131,9 @@ private static EncodeResult encodeEmpty(EncodeContext ctx) {
byte[] metaBytes = new ProtoRLEMetadata(
0L,
0L,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(indicesPtype.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(indicesPtype.ordinal()),
0L,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(offsetsPtype.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(offsetsPtype.ordinal()),
0L
).encode();
EncodeNode valuesNode = EncodeNode.leaf(EncodingId.VORTEX_PRIMITIVE, 0);
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/RunEndEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/RunEndEncodingEncoder.java
index 9b71328d..0d1c7b6c 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/RunEndEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/RunEndEncodingEncoder.java
@@ -1,11 +1,11 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.proto.ProtoRunEndMetadata;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.proto.ProtoRunEndMetadata;
import java.lang.foreign.MemorySegment;
import java.util.ArrayList;
@@ -90,7 +90,7 @@ public EncodeResult encode(DType dtype, Object data, EncodeContext ctx) {
}
byte[] metaBytes = new ProtoRunEndMetadata(
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(PType.U32.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(PType.U32.ordinal()),
numRuns,
0L
).encode();
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/SequenceEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/SequenceEncodingEncoder.java
index d5e41a49..75202fb1 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/SequenceEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/SequenceEncodingEncoder.java
@@ -1,12 +1,12 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
import java.lang.foreign.MemorySegment;
-import io.github.dfa1.vortex.proto.ProtoScalarValue;
-import io.github.dfa1.vortex.proto.ProtoSequenceMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoScalarValue;
+import io.github.dfa1.vortex.core.proto.ProtoSequenceMetadata;
import java.util.List;
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/SparseEncodingEncoder.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/SparseEncodingEncoder.java
index 1241ff68..0a79d9ef 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/SparseEncodingEncoder.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/SparseEncodingEncoder.java
@@ -1,13 +1,13 @@
package io.github.dfa1.vortex.writer.encode;
-import io.github.dfa1.vortex.core.DType;
-import io.github.dfa1.vortex.core.PType;
-import io.github.dfa1.vortex.core.VortexException;
-import io.github.dfa1.vortex.encoding.EncodingId;
-import io.github.dfa1.vortex.encoding.PTypeIO;
-import io.github.dfa1.vortex.proto.ProtoPatchesMetadata;
-import io.github.dfa1.vortex.proto.ProtoScalarValue;
-import io.github.dfa1.vortex.proto.ProtoSparseMetadata;
+import io.github.dfa1.vortex.core.model.DType;
+import io.github.dfa1.vortex.core.model.PType;
+import io.github.dfa1.vortex.core.error.VortexException;
+import io.github.dfa1.vortex.core.model.EncodingId;
+import io.github.dfa1.vortex.core.io.PTypeIO;
+import io.github.dfa1.vortex.core.proto.ProtoPatchesMetadata;
+import io.github.dfa1.vortex.core.proto.ProtoScalarValue;
+import io.github.dfa1.vortex.core.proto.ProtoSparseMetadata;
import java.lang.foreign.MemorySegment;
import java.util.ArrayList;
@@ -97,7 +97,7 @@ public CascadeStep encodeCascade(DType dtype, Object data, EncodeContext ctx) {
ProtoPatchesMetadata patchesMeta = new ProtoPatchesMetadata(
numPatches,
0L,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(idxPtype.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(idxPtype.ordinal()),
null,
null,
null
@@ -221,7 +221,7 @@ public EncodeResult encode(DType dtype, Object data, EncodeContext ctx) {
ProtoPatchesMetadata patchesMeta = new ProtoPatchesMetadata(
numPatches,
0L,
- io.github.dfa1.vortex.proto.ProtoPType.fromValue(idxPtype.ordinal()),
+ io.github.dfa1.vortex.core.proto.ProtoPType.fromValue(idxPtype.ordinal()),
null,
null,
null
diff --git a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/StructData.java b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/StructData.java
index 99c86fa3..52a25539 100644
--- a/writer/src/main/java/io/github/dfa1/vortex/writer/encode/StructData.java
+++ b/writer/src/main/java/io/github/dfa1/vortex/writer/encode/StructData.java
@@ -3,7 +3,7 @@
import java.util.List;
/// Input data for encoding a struct-typed column.
-/// `fieldArrays` is parallel to [io.github.dfa1.vortex.core.DType.Struct#fieldTypes()].
+/// `fieldArrays` is parallel to [io.github.dfa1.vortex.core.model.DType.Struct#fieldTypes()].
///
/// @param fieldArrays per-field data arrays in the same order as the struct's field types
public record StructData(List