Trait/Object

com.github.mjakubowski84.parquet4s

Filter

Related Docs: object Filter | package parquet4s

Permalink

trait Filter extends AnyRef

Filter provides a way to define filtering predicates with a simple algebra. Use filters to process your files while it is read from a file system and BEFORE its content is transferred to your application.
You can filter by values of leaf fields of your schema. Check here which field types are supported. Refer to fields/columns using case class Col. Define filtering conditions using simple algebraic operators, like equality or greater then (check Col's fields. Combine filter by means of simple algebraic operators &&, || and !.
You can also define filters for partitions. Keep in mind that partition value can be only a String.

Example:
  1. Given schema:

    case class User(id: Long, age: Int, gender: String)

    Search for males in age below 40 (exclusive) or above 50 (inclusive)

    Col("gender") === "male" && (Col("age") < 40 || Col("age") >= 50)
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Filter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def toPredicate(valueCodecConfiguration: ValueCodecConfiguration): FilterPredicate

    Permalink
    Attributes
    protected[com.github.mjakubowski84.parquet4s]

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def &&(other: Filter): Filter

    Permalink

    returns

    New filter that passes data that match this and `other` filter.

  4. final def ==(arg0: Any): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  18. def unary_!: Filter

    Permalink

    returns

    Returns new filter that reverts this

  19. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def ||(other: Filter): Filter

    Permalink

    returns

    New filter that passes data that match this or `other` filter.

Inherited from AnyRef

Inherited from Any

Ungrouped