Class/Object

org.nlp4l.lucene

RawReader

Related Docs: object RawReader | package lucene

Permalink

class RawReader extends AnyRef

Class representing a index reader. This holds a Lucene LeafReader internally.

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

Instance Constructors

  1. new RawReader(path: Path)

    Permalink

    Create a new RawReader instance with given index path.

    Create a new RawReader instance with given index path.

    path

    the path for index directory

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.

  7. var closed: Boolean

    Permalink
  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

  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

  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

  11. val dr: DirectoryReader

    Permalink
  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

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

    Permalink
  16. def fieldNames: Seq[String]

    Permalink
  17. def fields: Seq[FieldInfo]

    Permalink
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. 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

  21. def hasDeletions: Boolean

    Permalink

    Returns true if any documents have been deleted.

  22. def hashCode(): Int

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

    Permalink
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. lazy val liveDocs: Bits

    Permalink
  26. def maxDoc: Int

    Permalink

    Returns one greater than the largest possible document number.

  27. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def numDeletedDocs: Int

    Permalink

    Returns the number of deleted documents.

  31. def numDocs: Int

    Permalink

    Returns the number of documents in this index.

  32. lazy val numFields: Int

    Permalink
  33. val path: Path

    Permalink

    the path for index directory

  34. 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

  35. 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

  36. 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

  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. 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

  39. def toString(): String

    Permalink
    Definition Classes
    RawReader → AnyRef → Any
  40. 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)

  41. 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)

  42. 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

  43. 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

  44. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped