public static void writeShortArray(short[] array, DataOutputStream out) throws IOException {
        out.writeInt(array.length);
        for (short v : array) {
            out.writeShort(v);
        }
    }
Misc utility functions to help serialization of {@link PredicateIndex}.

@author bjorncs
predicate-search/src/main/java/com/yahoo/search/predicate/serialization/SerializationHelper.java