Class/Object

org.nlp4l.lucene

IReader

Related Docs: object IReader | package lucene

Permalink

class IReader extends RawReader

Class representing schema-aware index reader. This is a RawReader with a Schema instance.

Linear Supertypes
RawReader, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IReader
  2. RawReader
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IReader(path: Path, schema: Schema)

    Permalink

    Create a new IReader instance with given index path and schema.

    Create a new IReader instance with given index path and schema.

    path

    the path for index directory

    schema

    the schema

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def close: Unit

    Permalink

    Close the index.

    Close the index.

    Definition Classes
    RawReader
  7. var closed: Boolean

    Permalink
    Definition Classes
    RawReader
  8. def docCount(fName: String): Long

    Permalink

    Returns the number of documents that have at least one term for this field, or -1 if this measure isn't stored by the codec.

    Returns the number of documents that have at least one term for this field, or -1 if this measure isn't stored by the codec.

    fName

    the field name

    Definition Classes
    RawReader
  9. def docFreq(fName: String, text: String): Int

    Permalink

    Returns the number of documents containing the term in the given field.

    Returns the number of documents containing the term in the given field.

    fName

    the field name

    text

    the string representation for the term

    Definition Classes
    RawReader
  10. def document(docId: Int): Option[Document]

    Permalink

    Returns the Document instance for the given document id.

    Returns the Document instance for the given document id.

    docId

    the Lucene's internal document id

    returns

    the Document or None if the corresponding document does not exist

    Definition Classes
    RawReader
  11. val dr: DirectoryReader

    Permalink
    Definition Classes
    RawReader
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def field(fName: String): Option[FieldInfo]

    Permalink

    Returns the FieldInfo instance holding information of the field with given field name.

    Returns the FieldInfo instance holding information of the field with given field name.

    fName

    the field name

    returns

    the FieldInfo instance or None if the corresponding field does not exist

    Definition Classes
    RawReader
  15. lazy val fieldMap: Map[String, FieldInfo]

    Permalink
    Definition Classes
    RawReader
  16. def fieldNames: Seq[String]

    Permalink
    Definition Classes
    RawReader
  17. def fields: Seq[FieldInfo]

    Permalink
    Definition Classes
    RawReader
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def getAnalyzer(fName: String): Option[Analyzer]

    Permalink

    Returns the analyzer for given field name.

    Returns the analyzer for given field name.

    fName

    the field name

    returns

    the analyzer or None if the requested field does not exist

  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def getFieldType(fName: String): Option[FieldType]

    Permalink

    Returns the field type for given field name.

    Returns the field type for given field name.

    fName

    the field name

    returns

    the field type or None if the requested field does not exist

  22. def getTermVector(docId: Int, fName: String): Option[TermVector]

    Permalink

    Returns the TermVector for the given document id and field name.

    Returns the TermVector for the given document id and field name.

    docId

    the document id

    fName

    the field name

    returns

    a new TermVector instance or None if the term vector is not stored in the index

    Definition Classes
    RawReader
  23. def hasDeletions: Boolean

    Permalink

    Returns true if any documents have been deleted.

    Returns true if any documents have been deleted.

    Definition Classes
    RawReader
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. val ir: LeafReader

    Permalink
    Definition Classes
    RawReader
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. lazy val liveDocs: Bits

    Permalink
    Definition Classes
    RawReader
  28. def maxDoc: Int

    Permalink

    Returns one greater than the largest possible document number.

    Returns one greater than the largest possible document number.

    Definition Classes
    RawReader
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def numDeletedDocs: Int

    Permalink

    Returns the number of deleted documents.

    Returns the number of deleted documents.

    Definition Classes
    RawReader
  33. def numDocs: Int

    Permalink

    Returns the number of documents in this index.

    Returns the number of documents in this index.

    Definition Classes
    RawReader
  34. lazy val numFields: Int

    Permalink
    Definition Classes
    RawReader
  35. val path: Path

    Permalink

    the path for index directory

    the path for index directory

    Definition Classes
    RawReader
  36. def subset(filter: Filter): DocSet

    Permalink

    Returns index subset with given filter.

    Returns index subset with given filter.

    filter

    the Filter instance

    returns

    a new DocSet instance

    Definition Classes
    RawReader
  37. def sumDocFreq(fName: String): Long

    Permalink

    Returns the sum of document frequency for all terms in this field, or -1 if this measure isn't stored by the codec.

    Returns the sum of document frequency for all terms in this field, or -1 if this measure isn't stored by the codec.

    fName

    the field name

    Definition Classes
    RawReader
  38. def sumTotalTermFreq(fName: String): Long

    Permalink

    Returns the sum of total term frequencies for all terms in this field, or -1 if this measure isn't stored by the codec (or if this fields omits term freq and positions).

    Returns the sum of total term frequencies for all terms in this field, or -1 if this measure isn't stored by the codec (or if this fields omits term freq and positions).

    fName

    the field name

    Definition Classes
    RawReader
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def termDocs(fName: String, text: String): Option[TermDocs]

    Permalink

    Returns the TermDocs instance holding document ids (and optionally, positions/offsets information) associated to given field and term.

    Returns the TermDocs instance holding document ids (and optionally, positions/offsets information) associated to given field and term.

    fName

    the field name

    text

    the string representation for the term.

    returns

    the TermDocs instance or None if the corresponding term does not exist

    Definition Classes
    RawReader
  41. def toString(): String

    Permalink
    Definition Classes
    RawReader → AnyRef → Any
  42. def topTermsByDocFreq(field: String, numTerms: Int = 20): Seq[(String, Int, Long)]

    Permalink

    Returns top high frequent terms (based document frequencies) and associated frequencies.

    Returns top high frequent terms (based document frequencies) and associated frequencies.

    field

    the field name

    numTerms

    max terms to be returned

    returns

    the Tuple of the term, document frequency, total term frequency associated to this term)

    Definition Classes
    RawReader
  43. def topTermsByTotalTermFreq(field: String, numTerms: Int = 20): Seq[(String, Int, Long)]

    Permalink

    Returns top high frequent terms (based total term frequencies) and associated frequencies.

    Returns top high frequent terms (based total term frequencies) and associated frequencies.

    field

    the field name

    numTerms

    max terms to be returned

    returns

    the Tuple of the term, document frequency, total term frequency associated to this term)

    Definition Classes
    RawReader
  44. def totalTermFreq(fName: String, text: String): Long

    Permalink

    Returns the total number of occurrences of term across all documents.

    Returns the total number of occurrences of term across all documents.

    fName

    the field name

    text

    the string representation for the term

    Definition Classes
    RawReader
  45. def universalset(): DocSet

    Permalink

    Returns whole index as DocSet.

    Returns whole index as DocSet.

    returns

    a new DocSet instance holding all document ids in the index

    Definition Classes
    RawReader
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from RawReader

Inherited from AnyRef

Inherited from Any

Ungrouped