Class ReplicationAPIBase.DirectoryFileStream
- java.lang.Object
-
- org.apache.solr.handler.admin.api.ReplicationAPIBase.DirectoryFileStream
-
- All Implemented Interfaces:
jakarta.ws.rs.core.StreamingOutput,SolrCore.RawWriter
- Direct Known Subclasses:
ReplicationAPIBase.LocalFsFileStream
- Enclosing class:
- ReplicationAPIBase
protected class ReplicationAPIBase.DirectoryFileStream extends Object implements SolrCore.RawWriter, jakarta.ws.rs.core.StreamingOutput
This class is used to read and send files in the lucene index
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcfileNameprotected Checksumchecksumprotected booleancompressprotected IndexDeletionPolicyWrapperdelPolicyprotected StringfileNameprotected org.apache.solr.common.util.FastOutputStreamfosprotected LongindexGenprotected intlenprotected longoffsetprotected StringsLenprotected StringsOffsetprotected StringtlogFileNameprotected booleanuseChecksum
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateOutputStream(OutputStream out)protected voidextendReserveAndReleaseCommitPoint()protected voidinitWrite()protected StringvalidateFilenameOrError(String fileName)voidwrite(OutputStream out)protected voidwriteNothingAndFlush()Used to write a marker for EOF-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.core.SolrCore.RawWriter
getContentType
-
-
-
-
Field Detail
-
fos
protected org.apache.solr.common.util.FastOutputStream fos
-
indexGen
protected Long indexGen
-
delPolicy
protected IndexDeletionPolicyWrapper delPolicy
-
fileName
protected String fileName
-
cfileName
protected String cfileName
-
tlogFileName
protected String tlogFileName
-
sOffset
protected String sOffset
-
sLen
protected String sLen
-
compress
protected final boolean compress
-
useChecksum
protected boolean useChecksum
-
offset
protected long offset
-
len
protected int len
-
checksum
protected Checksum checksum
-
-
Method Detail
-
initWrite
protected void initWrite() throws IOException- Throws:
IOException
-
createOutputStream
protected void createOutputStream(OutputStream out)
-
extendReserveAndReleaseCommitPoint
protected void extendReserveAndReleaseCommitPoint()
-
write
public void write(OutputStream out) throws IOException
- Specified by:
writein interfaceSolrCore.RawWriter- Specified by:
writein interfacejakarta.ws.rs.core.StreamingOutput- Throws:
IOException
-
writeNothingAndFlush
protected void writeNothingAndFlush() throws IOExceptionUsed to write a marker for EOF- Throws:
IOException
-
-