I have this custom property type:
public class EmbeddedEntityIterable implements Serializable, ByteIterable {
@NotNull
@Override
public ByteIterable subIterable(int offset, int length) {
return null;
}
@Override
public int compareTo(@NotNull ByteIterable o) {
return 0;
}
}
How does Xodus use subIterable
and compareTo
? Is it safe just to return a NULL value on a @NotNull
method? This EmbeddedEntityIterable
is basically a Map<String,Comparable>
under the hood, that is also a representation of a very nested JSON object.