@@ -296,13 +296,11 @@ public int hashCode() {
296
296
}
297
297
298
298
// inherit javadocs
299
-
300
299
public byte [] getBytes (IndexReader reader , String field ) throws IOException {
301
300
return getBytes (reader , field , null );
302
301
}
303
302
304
303
// inherit javadocs
305
-
306
304
public byte [] getBytes (IndexReader reader , String field , ByteParser parser )
307
305
throws IOException {
308
306
return (byte []) caches .get (Byte .TYPE ).get (reader , new Entry (field , parser ));
@@ -347,13 +345,11 @@ protected Object createValue(IndexReader reader, Entry entryKey)
347
345
;
348
346
349
347
// inherit javadocs
350
-
351
348
public short [] getShorts (IndexReader reader , String field ) throws IOException {
352
349
return getShorts (reader , field , null );
353
350
}
354
351
355
352
// inherit javadocs
356
-
357
353
public short [] getShorts (IndexReader reader , String field , ShortParser parser )
358
354
throws IOException {
359
355
return (short []) caches .get (Short .TYPE ).get (reader , new Entry (field , parser ));
@@ -398,13 +394,11 @@ protected Object createValue(IndexReader reader, Entry entryKey)
398
394
;
399
395
400
396
// inherit javadocs
401
-
402
397
public int [] getInts (IndexReader reader , String field ) throws IOException {
403
398
return getInts (reader , field , null );
404
399
}
405
400
406
401
// inherit javadocs
407
-
408
402
public int [] getInts (IndexReader reader , String field , IntParser parser )
409
403
throws IOException {
410
404
return (int []) caches .get (Integer .TYPE ).get (reader , new Entry (field , parser ));
@@ -458,14 +452,12 @@ protected Object createValue(IndexReader reader, Entry entryKey)
458
452
459
453
460
454
// inherit javadocs
461
-
462
455
public float [] getFloats (IndexReader reader , String field )
463
456
throws IOException {
464
457
return getFloats (reader , field , null );
465
458
}
466
459
467
460
// inherit javadocs
468
-
469
461
public float [] getFloats (IndexReader reader , String field , FloatParser parser )
470
462
throws IOException {
471
463
@@ -524,7 +516,6 @@ public long[] getLongs(IndexReader reader, String field) throws IOException {
524
516
}
525
517
526
518
// inherit javadocs
527
-
528
519
public long [] getLongs (IndexReader reader , String field , FieldCache .LongParser parser )
529
520
throws IOException {
530
521
return (long []) caches .get (Long .TYPE ).get (reader , new Entry (field , parser ));
@@ -576,14 +567,12 @@ protected Object createValue(IndexReader reader, Entry entry)
576
567
;
577
568
578
569
// inherit javadocs
579
-
580
570
public double [] getDoubles (IndexReader reader , String field )
581
571
throws IOException {
582
572
return getDoubles (reader , field , null );
583
573
}
584
574
585
575
// inherit javadocs
586
-
587
576
public double [] getDoubles (IndexReader reader , String field , FieldCache .DoubleParser parser )
588
577
throws IOException {
589
578
return (double []) caches .get (Double .TYPE ).get (reader , new Entry (field , parser ));
@@ -636,7 +625,6 @@ protected Object createValue(IndexReader reader, Entry entryKey)
636
625
;
637
626
638
627
// inherit javadocs
639
-
640
628
public String [] getStrings (IndexReader reader , String field )
641
629
throws IOException {
642
630
return (String []) caches .get (String .class ).get (reader , new Entry (field , (Parser ) null ));
@@ -675,7 +663,6 @@ protected Object createValue(IndexReader reader, Entry entryKey)
675
663
;
676
664
677
665
// inherit javadocs
678
-
679
666
public StringIndex getStringIndex (IndexReader reader , String field )
680
667
throws IOException {
681
668
return (StringIndex ) caches .get (StringIndex .class ).get (reader , new Entry (field , (Parser ) null ));
@@ -705,7 +692,7 @@ protected Object createValue(IndexReader reader, Entry entryKey)
705
692
try {
706
693
do {
707
694
Term term = termEnum .term ();
708
- if (term == null || term .field () != field ) break ;
695
+ if (term == null || term .field () != field || t >= mterms . length ) break ;
709
696
710
697
// store term text
711
698
mterms [t ] = term .text ();
0 commit comments