public class FrameProcessors extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
closeAll(List<ReadableFrameChannel> readableFrameChannels,
List<WritableFrameChannel> writableFrameChannels,
Closeable... otherCloseables)
Helper method for implementing
FrameProcessor.cleanup(). |
static FrameCursor |
makeCursor(Frame frame,
FrameReader frameReader)
Returns a
FrameCursor for the provided Frame, allowing both sequential and random access. |
static FrameCursor |
makeCursor(Frame frame,
FrameReader frameReader,
VirtualColumns virtualColumns)
Returns a
FrameCursor for the provided Frame and VirtualColumns, allowing both sequential
and random access. |
static it.unimi.dsi.fastutil.ints.IntSortedSet |
rangeSet(int size)
Creates a mutable sorted set from 0 to "size" (exclusive).
|
static int |
selectRandom(it.unimi.dsi.fastutil.ints.IntSet ints)
Selects a random element from a set of ints.
|
static <T> FrameProcessor<T> |
withBaggage(FrameProcessor<T> processor,
Closeable baggage) |
public static <T> FrameProcessor<T> withBaggage(FrameProcessor<T> processor, Closeable baggage)
public static FrameCursor makeCursor(Frame frame, FrameReader frameReader)
FrameCursor for the provided Frame, allowing both sequential and random access.public static FrameCursor makeCursor(Frame frame, FrameReader frameReader, VirtualColumns virtualColumns)
FrameCursor for the provided Frame and VirtualColumns, allowing both sequential
and random access.public static it.unimi.dsi.fastutil.ints.IntSortedSet rangeSet(int size)
IllegalArgumentException - if size is negativepublic static int selectRandom(it.unimi.dsi.fastutil.ints.IntSet ints)
public static void closeAll(List<ReadableFrameChannel> readableFrameChannels, List<WritableFrameChannel> writableFrameChannels, Closeable... otherCloseables) throws IOException
FrameProcessor.cleanup().
The objects are closed in the order provided.IOExceptionCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.