greskell-core-0.1.2.4: Haskell binding for Gremlin graph query language - core data types and tools

MaintainerToshio Ito <debug.ito@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Data.Greskell.AsIterator

Description

Since: greskell-core-0.1.2.0

Synopsis

Documentation

class AsIterator a Source #

Types that are converted to an iterator by org.apache.tinkerpop.gremlin.util.iterator.IteratorUtils.asIterator method. In fact, that method can convert any type to an iterator, but greskell limits types to which the conversion is applicable.

Associated with this type-class is IteratorItem. IteratorItem type family is association of type a and the type of its item when type a is converted to an iterator.

IteratorItem rule of thumb:

  • Iterator and Iterable types like List, Stream and GraphTraversal are converted to their element types.
  • Map type is converted to its Map.Entry. In greskell, Map.Entry is expressed as GMapEntry.
  • Other types are converted to themselves.

Caveat:

  • Because Haskell's String is [Char], IteratorItem String returns Char, which is incorrect. Use Text if you want to deal with Strings in Gremlin.

Associated Types

type IteratorItem a Source #

Instances
AsIterator Bool Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Bool :: * Source #

AsIterator Char Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Char :: * Source #

AsIterator Double Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Double :: * Source #

AsIterator Float Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Float :: * Source #

AsIterator Int Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Int :: * Source #

AsIterator Int8 Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Int8 :: * Source #

AsIterator Int16 Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Int16 :: * Source #

AsIterator Int32 Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Int32 :: * Source #

AsIterator Int64 Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Int64 :: * Source #

AsIterator Integer Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Integer :: * Source #

AsIterator Natural Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Natural :: * Source #

AsIterator Word Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Word :: * Source #

AsIterator Word8 Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Word8 :: * Source #

AsIterator Word16 Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Word16 :: * Source #

AsIterator Word32 Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Word32 :: * Source #

AsIterator Word64 Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Word64 :: * Source #

AsIterator () Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem () :: * Source #

AsIterator Scientific Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Scientific :: * Source #

AsIterator Text Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Text :: * Source #

AsIterator Text Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem Text :: * Source #

AsIterator IntSet Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem IntSet :: * Source #

AsIterator [a] Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem [a] :: * Source #

AsIterator a => AsIterator (Maybe a) Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem (Maybe a) :: * Source #

Integral a => AsIterator (Ratio a) Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem (Ratio a) :: * Source #

AsIterator (IntMap v) Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem (IntMap v) :: * Source #

AsIterator (Seq a) Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem (Seq a) :: * Source #

AsIterator (Set a) Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem (Set a) :: * Source #

AsIterator (HashSet a) Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem (HashSet a) :: * Source #

AsIterator (Vector a) Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem (Vector a) :: * Source #

AsIterator (HashMap k v) Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem (HashMap k v) :: * Source #

AsIterator (Map k v) Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem (Map k v) :: * Source #

AsIterator (GMapEntry k v) Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem (GMapEntry k v) :: * Source #

AsIterator (GMap c k v) Source # 
Instance details

Defined in Data.Greskell.AsIterator

Associated Types

type IteratorItem (GMap c k v) :: * Source #