org.kitesdk.data
Interface RefinableView<E>

Type Parameters:
E - The type of entities stored in the Dataset underlying this RefinableView.
All Superinterfaces:
View<E>
All Known Subinterfaces:
Dataset<E>, RandomAccessDataset<E>

@Immutable
public interface RefinableView<E>
extends View<E>

A RefinableView specifies a subset of a Dataset by one or more logical constraints.

Since:
0.11.0

Method Summary
 RefinableView<E> from(String name, Comparable value)
          Creates a sub-View, restricted to entities whose name field is greater than or equal to the given value.
 RefinableView<E> fromAfter(String name, Comparable value)
          Creates a sub-View, restricted to entities whose name field is greater than the given value.
 RefinableView<E> to(String name, Comparable value)
          Creates a sub-View, restricted to entities whose name field is less than or equal to the given value.
 RefinableView<E> toBefore(String name, Comparable value)
          Creates a sub-View, restricted to entities whose name field is less than the given value.
 RefinableView<E> with(String name, Object... values)
          Creates a sub-View, restricted to entities whose name field is equal to any of the given values.
 
Methods inherited from interface org.kitesdk.data.View
deleteAll, getDataset, includes, newReader, newWriter
 

Method Detail

with

RefinableView<E> with(String name,
                      Object... values)
Creates a sub-View, restricted to entities whose name field is equal to any of the given values. If you specify no values, the view is restricted to entities whose name field is non-null.

Parameters:
name - the field name of the entity
Returns:
the restricted view

from

RefinableView<E> from(String name,
                      Comparable value)
Creates a sub-View, restricted to entities whose name field is greater than or equal to the given value.

Parameters:
name - the field name of the entity
Returns:
the restricted view

fromAfter

RefinableView<E> fromAfter(String name,
                           Comparable value)
Creates a sub-View, restricted to entities whose name field is greater than the given value.

Parameters:
name - the field name of the entity
Returns:
the restricted view

to

RefinableView<E> to(String name,
                    Comparable value)
Creates a sub-View, restricted to entities whose name field is less than or equal to the given value.

Parameters:
name - the field name of the entity
Returns:
the restricted view

toBefore

RefinableView<E> toBefore(String name,
                          Comparable value)
Creates a sub-View, restricted to entities whose name field is less than the given value.

Parameters:
name - the field name of the entity
Returns:
the restricted view


Copyright © 2013–2014. All rights reserved.