/** Creates a GeoDistance instance from an input stream */ public static GeoDistance readFromStream(StreamInput in) throws IOException { int ord = in.readVInt(); if (ord < 0 || ord >= values().length) { throw new IOException("Unknown GeoDistance ordinal [" + ord + "]"); } return GeoDistance.values()[ord]; }
/** Creates a GeoDistance instance from an input stream */ public static GeoDistance readFromStream(StreamInput in) throws IOException { int ord = in.readVInt(); if (ord < 0 || ord >= values().length) { throw new IOException("Unknown GeoDistance ordinal [" + ord + "]"); } return GeoDistance.values()[ord]; }
/** Creates a GeoDistance instance from an input stream */ public static GeoDistance readFromStream(StreamInput in) throws IOException { int ord = in.readVInt(); if (ord < 0 || ord >= values().length) { throw new IOException("Unknown GeoDistance ordinal [" + ord + "]"); } return GeoDistance.values()[ord]; }
/** Creates a GeoDistance instance from an input stream */ public static GeoDistance readFromStream(StreamInput in) throws IOException { int ord = in.readVInt(); if (ord < 0 || ord >= values().length) { throw new IOException("Unknown GeoDistance ordinal [" + ord + "]"); } return GeoDistance.values()[ord]; }