Package io.crate.operation.reference.doc.lucene

Examples of io.crate.operation.reference.doc.lucene.LongColumnReference


        return new FieldDataType("long");
    }

    @Test
    public void testFieldCacheExpression() throws Exception {
        LongColumnReference longColumn = new LongColumnReference(fieldName().name());
        longColumn.startCollect(ctx);
        longColumn.setNextReader(readerContext);
        IndexSearcher searcher = new IndexSearcher(readerContext.reader());
        TopDocs topDocs = searcher.search(new MatchAllDocsQuery(), 20);
        long l = Long.MIN_VALUE;
        for (ScoreDoc doc : topDocs.scoreDocs) {
            longColumn.setNextDocId(doc.doc);
            assertThat(longColumn.value(), is(l));
            l++;
        }
    }
View Full Code Here

TOP

Related Classes of io.crate.operation.reference.doc.lucene.LongColumnReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.