Skip to content

Commit f6de8a1

Browse files
dfa1claude
andcommitted
feat: add stub encodings for masked/patched/variant
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8996ba3 commit f6de8a1

4 files changed

Lines changed: 75 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package io.github.dfa1.vortex.encoding;
2+
3+
import io.github.dfa1.vortex.core.DType;
4+
import io.github.dfa1.vortex.core.VortexException;
5+
import io.github.dfa1.vortex.core.array.Array;
6+
7+
/// Stub for {@code vortex.masked} — not yet implemented.
8+
public final class MaskedEncoding implements Encoding {
9+
10+
@Override
11+
public EncodingId encodingId() {
12+
return EncodingId.VORTEX_MASKED;
13+
}
14+
15+
@Override
16+
public EncodeResult encode(DType dtype, Object data) {
17+
throw new VortexException(EncodingId.VORTEX_MASKED, "not yet implemented");
18+
}
19+
20+
@Override
21+
public Array decode(DecodeContext ctx) {
22+
throw new VortexException(EncodingId.VORTEX_MASKED, "not yet implemented");
23+
}
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package io.github.dfa1.vortex.encoding;
2+
3+
import io.github.dfa1.vortex.core.DType;
4+
import io.github.dfa1.vortex.core.VortexException;
5+
import io.github.dfa1.vortex.core.array.Array;
6+
7+
/// Stub for {@code vortex.patched} — not yet implemented.
8+
public final class PatchedEncoding implements Encoding {
9+
10+
@Override
11+
public EncodingId encodingId() {
12+
return EncodingId.VORTEX_PATCHED;
13+
}
14+
15+
@Override
16+
public EncodeResult encode(DType dtype, Object data) {
17+
throw new VortexException(EncodingId.VORTEX_PATCHED, "not yet implemented");
18+
}
19+
20+
@Override
21+
public Array decode(DecodeContext ctx) {
22+
throw new VortexException(EncodingId.VORTEX_PATCHED, "not yet implemented");
23+
}
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package io.github.dfa1.vortex.encoding;
2+
3+
import io.github.dfa1.vortex.core.DType;
4+
import io.github.dfa1.vortex.core.VortexException;
5+
import io.github.dfa1.vortex.core.array.Array;
6+
7+
/// Stub for {@code vortex.variant} — not yet implemented.
8+
public final class VariantEncoding implements Encoding {
9+
10+
@Override
11+
public EncodingId encodingId() {
12+
return EncodingId.VORTEX_VARIANT;
13+
}
14+
15+
@Override
16+
public EncodeResult encode(DType dtype, Object data) {
17+
throw new VortexException(EncodingId.VORTEX_VARIANT, "not yet implemented");
18+
}
19+
20+
@Override
21+
public Array decode(DecodeContext ctx) {
22+
throw new VortexException(EncodingId.VORTEX_VARIANT, "not yet implemented");
23+
}
24+
}

core/src/main/resources/META-INF/services/io.github.dfa1.vortex.encoding.Encoding

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ io.github.dfa1.vortex.encoding.VarBinEncoding
2828
io.github.dfa1.vortex.encoding.VarBinViewEncoding
2929
io.github.dfa1.vortex.encoding.ZigZagEncoding
3030
io.github.dfa1.vortex.encoding.ZstdEncoding
31+
io.github.dfa1.vortex.encoding.MaskedEncoding
32+
io.github.dfa1.vortex.encoding.PatchedEncoding
33+
io.github.dfa1.vortex.encoding.VariantEncoding

0 commit comments

Comments
 (0)