@Override public Terms terms(String field) throws IOException { // first, find where in the termVectors bytes the actual term vector for // this field is stored final int keySlot = fieldMap.indexOf(field); if (keySlot < 0) { return null; // we don't have it. } long readOffset = fieldMap.indexGet(keySlot); return new TermVector(termVectors, readOffset); }
@Override public TermsEnum iterator() throws IOException { reset();
@Override public TermsEnum iterator() throws IOException { reset();
@Override public TermsEnum iterator() throws IOException { reset();
@Override public TermsEnum iterator() throws IOException { reset();
@Override public Terms terms(String field) throws IOException { // first, find where in the termVectors bytes the actual term vector for // this field is stored final int keySlot = fieldMap.indexOf(field); if (keySlot < 0) { return null; // we don't have it. } long readOffset = fieldMap.indexGet(keySlot); return new TermVector(termVectors, readOffset); }
TermVector(BytesReference termVectors, long readOffset) throws IOException { this.perFieldTermVectorInput = termVectors.streamInput(); this.readOffset = readOffset; reset(); }
@Override public Terms terms(String field) throws IOException { // first, find where in the termVectors bytes the actual term vector for // this field is stored final int keySlot = fieldMap.indexOf(field); if (keySlot < 0) { return null; // we don't have it. } long readOffset = fieldMap.indexGet(keySlot); return new TermVector(termVectors, readOffset); }
TermVector(BytesReference termVectors, long readOffset) throws IOException { this.perFieldTermVectorInput = termVectors.streamInput(); this.readOffset = readOffset; reset(); }
@Override public Terms terms(String field) throws IOException { // first, find where in the termVectors bytes the actual term vector for // this field is stored final int keySlot = fieldMap.indexOf(field); if (keySlot < 0) { return null; // we don't have it. } long readOffset = fieldMap.indexGet(keySlot); return new TermVector(termVectors, readOffset); }
public TermVector(BytesReference termVectors, long readOffset) throws IOException { this.perFieldTermVectorInput = StreamInput.wrap(termVectors.toBytesArray()); this.readOffset = readOffset; reset(); }
TermVector(BytesReference termVectors, long readOffset) throws IOException { this.perFieldTermVectorInput = termVectors.streamInput(); this.readOffset = readOffset; reset(); }
@Override public TermsEnum iterator() throws IOException { reset();
TermVector(BytesReference termVectors, long readOffset) throws IOException { this.perFieldTermVectorInput = termVectors.streamInput(); this.readOffset = readOffset; reset(); }
@Override public Terms terms(String field) throws IOException { // first, find where in the termVectors bytes the actual term vector for // this field is stored final int keySlot = fieldMap.indexOf(field); if (keySlot < 0) { return null; // we don't have it. } long readOffset = fieldMap.indexGet(keySlot); return new TermVector(termVectors, readOffset); }