Uses of Class
org.apache.lucene.replicator.nrt.FileMetaData
-
Uses of FileMetaData in org.apache.lucene.replicator.nrt
Modifier and TypeFieldDescriptionprotected final Map<String,
FileMetaData> CopyJob.files
final Map<String,
FileMetaData> CopyState.files
protected Map<String,
FileMetaData> Node.lastFileMetaData
File metadata for last sync that succeeded; we use this as a cacheprotected final List<Map.Entry<String,
FileMetaData>> CopyJob.toCopy
Modifier and TypeMethodDescriptionNode.readLocalFileMetaData
(String fileName) Opens the specified file, reads its identifying information, including file length, full index header (includes the unique segment ID) and the full footer (includes checksum), and returns the resultingFileMetaData
.Modifier and TypeMethodDescriptionReplicaNode.getFilesToCopy
(Map<String, FileMetaData> files) Compares incoming per-file identity (id, checksum, header, footer) versus what we have locally and returns the subset of the incoming files that need copyingModifier and TypeMethodDescriptionReplicaNode.getFilesToCopy
(Map<String, FileMetaData> files) Compares incoming per-file identity (id, checksum, header, footer) versus what we have locally and returns the subset of the incoming files that need copyingprotected CopyJob
ReplicaNode.launchPreCopyMerge
(AtomicBoolean finished, long newPrimaryGen, Map<String, FileMetaData> files) protected abstract CopyJob
ReplicaNode.newCopyJob
(String reason, Map<String, FileMetaData> files, Map<String, FileMetaData> prevFiles, boolean highPriority, CopyJob.OnceDone onceDone) Start a background copying job, to copy the specified files from the current primary node.protected abstract void
PrimaryNode.preCopyMergedSegmentFiles
(SegmentCommitInfo info, Map<String, FileMetaData> files) Called when a merge has finished, but before IW switches to the merged segmentModifierConstructorDescriptionCopyOneFile
(DataInput in, ReplicaNode dest, String name, FileMetaData metaData, byte[] buffer) ModifierConstructorDescriptionprotected
CopyJob
(String reason, Map<String, FileMetaData> files, ReplicaNode dest, boolean highPriority, CopyJob.OnceDone onceDone) CopyState
(Map<String, FileMetaData> files, long version, long gen, byte[] infosBytes, Set<String> completedMergeFiles, long primaryGen, SegmentInfos infos)