Package cz.o2.proxima.tools.io
Class ConsoleRandomReader
- java.lang.Object
-
- cz.o2.proxima.tools.io.ConsoleRandomReader
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ConsoleRandomReader extends java.lang.Object implements java.lang.AutoCloseable
A random access reader for console.
-
-
Constructor Summary
Constructors Constructor Description ConsoleRandomReader(EntityDescriptor desc, DirectDataOperator direct)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
<T> KeyValue<T>
get(java.lang.String key, java.lang.String attribute)
java.util.List<KeyValue>
list(java.lang.String key, java.lang.String prefix)
java.util.List<KeyValue>
list(java.lang.String key, java.lang.String prefix, java.lang.String offset)
java.util.List<KeyValue>
list(java.lang.String key, java.lang.String prefix, java.lang.String offset, int limit)
void
list(java.lang.String key, java.lang.String prefix, java.lang.String offset, int limit, java.util.function.Consumer<KeyValue<?>> consumer)
java.util.List<Pair<RandomOffset,java.lang.String>>
listKeys(java.lang.String start, int limit)
void
listKeys(java.util.function.Consumer<Pair<RandomOffset,java.lang.String>> consumer)
-
-
-
Constructor Detail
-
ConsoleRandomReader
public ConsoleRandomReader(EntityDescriptor desc, DirectDataOperator direct)
-
-
Method Detail
-
get
public <T> KeyValue<T> get(java.lang.String key, java.lang.String attribute)
-
list
public java.util.List<KeyValue> list(java.lang.String key, java.lang.String prefix)
-
list
public java.util.List<KeyValue> list(java.lang.String key, java.lang.String prefix, @Nullable java.lang.String offset)
-
list
public java.util.List<KeyValue> list(java.lang.String key, java.lang.String prefix, @Nullable java.lang.String offset, int limit)
-
list
public void list(java.lang.String key, java.lang.String prefix, @Nullable java.lang.String offset, int limit, java.util.function.Consumer<KeyValue<?>> consumer)
-
listKeys
public void listKeys(java.util.function.Consumer<Pair<RandomOffset,java.lang.String>> consumer)
-
listKeys
public java.util.List<Pair<RandomOffset,java.lang.String>> listKeys(java.lang.String start, int limit)
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-