Package cz.o2.proxima.direct.core
Interface AttributeWriterBase
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Subinterfaces:
BulkAttributeWriter
,CachedView
,OnlineAttributeWriter
- All Known Implementing Classes:
AbstractAttributeWriter
,AbstractBulkAttributeWriter
,AbstractBulkFileSystemAttributeWriter
,AbstractOnlineAttributeWriter
,BulkBlobWriter
,BulkGCloudStorageWriter
,BulkS3Writer
,ElasticsearchWriter
,HadoopBulkAttributeWriter
,HttpWriter
,JdbcOnlineAttributeWriter
,KafkaWriter
,LocalCachedPartitionedView
,OpenTsdbWriter
,TransactionalCachedView
,TransactionalOnlineAttributeWriter
@Stable @NotThreadSafe public interface AttributeWriterBase extends java.lang.AutoCloseable
Base interface forOnlineAttributeWriter
andBulkAttributeWriter
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AttributeWriterBase.Factory<W extends AttributeWriterBase>
Base interface for factories in implementing classes.static class
AttributeWriterBase.Type
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AttributeWriterBase.Factory<? extends AttributeWriterBase>
asFactory()
Convert instance of this writer toAttributeWriterBase.Factory
suitable for serialization.default BulkAttributeWriter
bulk()
Case this toBulkAttributeWriter
.void
close()
Close allocated resources of this writer.AttributeWriterBase.Type
getType()
Retrieve type of the writer.java.net.URI
getUri()
Retrieve URI of this writer.default OnlineAttributeWriter
online()
Cast this toOnlineAttributeWriter
.void
rollback()
Rollback the writer to last committed position.
-
-
-
Method Detail
-
getUri
java.net.URI getUri()
Retrieve URI of this writer.- Returns:
- URI of this writer
-
getType
AttributeWriterBase.Type getType()
Retrieve type of the writer.- Returns:
AttributeWriterBase.Type
of the writer
-
rollback
void rollback()
Rollback the writer to last committed position.
-
online
default OnlineAttributeWriter online()
Cast this toOnlineAttributeWriter
. This is just a syntactic sugar.- Returns:
OnlineAttributeWriter
from this writer
-
bulk
default BulkAttributeWriter bulk()
Case this toBulkAttributeWriter
. This is just a syntactic sugar.- Returns:
BulkAttributeWriter
from this writer
-
close
void close()
Close allocated resources of this writer. This is supposed to be idempotent.- Specified by:
close
in interfacejava.lang.AutoCloseable
-
asFactory
AttributeWriterBase.Factory<? extends AttributeWriterBase> asFactory()
Convert instance of this writer toAttributeWriterBase.Factory
suitable for serialization.- Returns:
- the
AttributeWriterBase.Factory
representing this reader
-
-