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 forOnlineAttributeWriterandBulkAttributeWriter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAttributeWriterBase.Factory<W extends AttributeWriterBase>Base interface for factories in implementing classes.static classAttributeWriterBase.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.Factorysuitable for serialization.default BulkAttributeWriterbulk()Case this toBulkAttributeWriter.voidclose()Close allocated resources of this writer.AttributeWriterBase.TypegetType()Retrieve type of the writer.java.net.URIgetUri()Retrieve URI of this writer.default OnlineAttributeWriteronline()Cast this toOnlineAttributeWriter.voidrollback()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.Typeof 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:
OnlineAttributeWriterfrom this writer
-
bulk
default BulkAttributeWriter bulk()
Case this toBulkAttributeWriter. This is just a syntactic sugar.- Returns:
BulkAttributeWriterfrom this writer
-
close
void close()
Close allocated resources of this writer. This is supposed to be idempotent.- Specified by:
closein interfacejava.lang.AutoCloseable
-
asFactory
AttributeWriterBase.Factory<? extends AttributeWriterBase> asFactory()
Convert instance of this writer toAttributeWriterBase.Factorysuitable for serialization.- Returns:
- the
AttributeWriterBase.Factoryrepresenting this reader
-
-