Documentation of 'org.apache.lucene.search.ExtendedFieldCache' Java class
ExtendedFieldCache
org.apache.lucene.search

Interface ExtendedFieldCache

    • Method Detail

      • getLongs

        long[] getLongs(IndexReader reader,
                        java.lang.String field)
                 throws java.io.IOException
        Checks the internal cache for an appropriate entry, and if none is found, reads the terms in field as longs and returns an array of size reader.maxDoc() of the value each document has in the given field.
        Parameters:
        reader - Used to get field values.
        field - Which field contains the longs.
        Returns:
        The values in the given field for each document.
        Throws:
        java.io.IOException - If any error occurs.
      • getLongs

        long[] getLongs(IndexReader reader,
                        java.lang.String field,
                        ExtendedFieldCache.LongParser parser)
                 throws java.io.IOException
        Checks the internal cache for an appropriate entry, and if none is found, reads the terms in field as longs and returns an array of size reader.maxDoc() of the value each document has in the given field.
        Parameters:
        reader - Used to get field values.
        field - Which field contains the longs.
        parser - Computes integer for string values.
        Returns:
        The values in the given field for each document.
        Throws:
        java.io.IOException - If any error occurs.
      • getDoubles

        double[] getDoubles(IndexReader reader,
                            java.lang.String field)
                     throws java.io.IOException
        Checks the internal cache for an appropriate entry, and if none is found, reads the terms in field as integers and returns an array of size reader.maxDoc() of the value each document has in the given field.
        Parameters:
        reader - Used to get field values.
        field - Which field contains the doubles.
        Returns:
        The values in the given field for each document.
        Throws:
        java.io.IOException - If any error occurs.
      • getDoubles

        double[] getDoubles(IndexReader reader,
                            java.lang.String field,
                            ExtendedFieldCache.DoubleParser parser)
                     throws java.io.IOException
        Checks the internal cache for an appropriate entry, and if none is found, reads the terms in field as doubles and returns an array of size reader.maxDoc() of the value each document has in the given field.
        Parameters:
        reader - Used to get field values.
        field - Which field contains the doubles.
        parser - Computes integer for string values.
        Returns:
        The values in the given field for each document.
        Throws:
        java.io.IOException - If any error occurs.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.