Class ComplexDataParser.KeyedCellCollectionReader<T extends Comparable<T>>
java.lang.Object
com.terracottatech.store.definition.ComplexDataParser.KeyedCellCollectionReader<T>
- Type Parameters:
T
- Key Type param
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<KeyedCellCollection<T>>
- Enclosing class:
- ComplexDataParser
public static class ComplexDataParser.KeyedCellCollectionReader<T extends Comparable<T>>
extends Object
implements Closeable, Iterable<KeyedCellCollection<T>>
Class for reading a sequence of
KeyedCellCollection
s from an input reader.
Reader must be UTF capable to handle UTF characters.-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for unknown key types.KeyedCellCollectionReader
(Reader in, Type<T> keyType) Constructor where all the keyed cell collections will have the same known key type. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
KeyedCellCollectionReader
Constructor for unknown key types.- Parameters:
in
- Reader to use
-
KeyedCellCollectionReader
Constructor where all the keyed cell collections will have the same known key type.- Parameters:
in
- ReaderkeyType
- key type
-
-
Method Details
-
iterator
- Specified by:
iterator
in interfaceIterable<T extends Comparable<T>>
-
keyedCellCollectionStream
Return a stream of keyed cell collections.- Returns:
- stream of keyed cell collections
-
nextKeyedCellCollection
Fetch the nextKeyedCellCollection
from the input source.- Returns:
- the next keyed cell collection
- Throws:
ComplexDataParseException
- on parsing exception
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-