Exemplo n.º 1
0
 public static void writeSortType(StreamOutput out, SortField.Type sortType) throws IOException {
   out.writeVInt(sortType.ordinal());
 }
Exemplo n.º 2
0
 // LUCENE 4 UPGRADE: We might want to maintain our own ordinal, instead of Lucene's ordinal
 public static SortField.Type readSortType(StreamInput in) throws IOException {
   return SortField.Type.values()[in.readVInt()];
 }