org.kitesdk.data
Interface RefineableView<E>

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

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

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

Since:
0.11.0

Method Summary
 RefineableView<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.
 RefineableView<E> fromAfter(String name, Comparable value)
          Creates a sub-View, restricted to entities whose name field is greater than to the given value.
 RefineableView<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.
 RefineableView<E> toBefore(String name, Comparable value)
          Creates a sub-View, restricted to entities whose name field is less than to the given value.
 RefineableView<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
getDataset, includes, newReader, newWriter
 

Method Detail

with

RefineableView<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 no values are specified, then 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

RefineableView<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

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

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

to

RefineableView<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

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

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


Copyright © 2013–2014. All rights reserved.