Package org.apache.solr.update
Class HdfsTransactionLog
- java.lang.Object
- 
- org.apache.solr.update.TransactionLog
- 
- org.apache.solr.update.HdfsTransactionLog
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable
 
 @Deprecated public class HdfsTransactionLog extends TransactionLog Deprecated.since 8.6Log Format: List{Operation, Version, ...} ADD, VERSION, DOC DELETE, VERSION, ID_BYTES DELETE_BY_QUERY, VERSION, String TODO: keep two files, one for [operation, version, id] and the other for the actual document data. That way we could throw away document log files more readily while retaining the smaller operation log files longer (and we can retrieve the stored fields from the latest documents from the index). This would require keeping all source fields stored of course. This would also allow to not log document data for requests with commit=true in them (since we know that if the request succeeds, all docs will be committed)
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classHdfsTransactionLog.HDFSLogReaderDeprecated.classHdfsTransactionLog.HDFSReverseReaderDeprecated.classHdfsTransactionLog.HDFSSortedLogReaderDeprecated.- 
Nested classes/interfaces inherited from class org.apache.solr.update.TransactionLogTransactionLog.FSReverseReader, TransactionLog.LogCodec, TransactionLog.LogReader, TransactionLog.ReverseReader, TransactionLog.SortedLogReader
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.solr.update.TransactionLogdeleteOnClose, END_MESSAGE
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.voidcloseOutput()Deprecated.Move to a read-only state, closing and releasing resources while keeping the log available for readsbooleanendsWithCommit()Deprecated.voidfinish(UpdateLog.SyncLevel syncLevel)Deprecated.longgetLogSize()Deprecated.TransactionLog.LogReadergetReader(long startingPos)Deprecated.Returns a reader that can be used while a log is still in use.TransactionLog.ReverseReadergetReverseReader()Deprecated.Returns a single threaded reverse readerTransactionLog.LogReadergetSortedReader(long startingPos)Deprecated.Objectlookup(long pos)Deprecated.StringtoString()Deprecated.longwriteCommit(CommitUpdateCommand cmd)Deprecated.- 
Methods inherited from class org.apache.solr.update.TransactionLogaddGlobalStrings, checkWriteHeader, decref, endRecord, forceClose, getLogSizeFromStream, incref, numRecords, position, try_incref, write, write, writeData, writeDelete, writeDeleteByQuery, writeLogHeader
 
- 
 
- 
- 
- 
Method Detail- 
endsWithCommitpublic boolean endsWithCommit() throws IOExceptionDeprecated.- Overrides:
- endsWithCommitin class- TransactionLog
- Throws:
- IOException
 
 - 
writeCommitpublic long writeCommit(CommitUpdateCommand cmd) Deprecated.- Overrides:
- writeCommitin class- TransactionLog
 
 - 
lookuppublic Object lookup(long pos) Deprecated.- Overrides:
- lookupin class- TransactionLog
 
 - 
closeOutputpublic void closeOutput() Deprecated.Description copied from class:TransactionLogMove to a read-only state, closing and releasing resources while keeping the log available for reads- Overrides:
- closeOutputin class- TransactionLog
 
 - 
getLogSizepublic long getLogSize() Deprecated.- Overrides:
- getLogSizein class- TransactionLog
 
 - 
finishpublic void finish(UpdateLog.SyncLevel syncLevel) Deprecated.- Overrides:
- finishin class- TransactionLog
 
 - 
closepublic void close() Deprecated.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- TransactionLog
 
 - 
toStringpublic String toString() Deprecated.- Overrides:
- toStringin class- TransactionLog
 
 - 
getReaderpublic TransactionLog.LogReader getReader(long startingPos) Deprecated.Returns a reader that can be used while a log is still in use. Currently only *one* LogReader may be outstanding, and that log may only be used from a single thread.- Overrides:
- getReaderin class- TransactionLog
 
 - 
getSortedReaderpublic TransactionLog.LogReader getSortedReader(long startingPos) Deprecated.- Overrides:
- getSortedReaderin class- TransactionLog
 
 - 
getReverseReaderpublic TransactionLog.ReverseReader getReverseReader() throws IOException Deprecated.Returns a single threaded reverse reader- Overrides:
- getReverseReaderin class- TransactionLog
- Throws:
- IOException
 
 
- 
 
-