Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Enums
  • Fields
  • Methods
  • Constructors
  • Enum Constants
  • Terminally Deprecated Elements
    Element
    Description
    org.apache.jackrabbit.oak.plugins.document.bundlor.BundlingConfigInitializer
    use BundlingConfigInitializer instead
  • Deprecated Interfaces
    Interface
    Description
    org.apache.jackrabbit.api.JackrabbitNodeTypeManager
    Use standard JCR 2.0 API methods defined by NodeTypeManager instead.
    org.apache.jackrabbit.api.XASession
    An XA-enabled session should directly implement the XAResource interface
    org.apache.jackrabbit.oak.index.indexer.document.flatfile.SortStrategy
    depending on what type of store it is use IndexStoreSortStrategy or IncrementalIndexStoreSortStrategy instead
    org.apache.jackrabbit.oak.plugins.lock.LockConstants
    Use LockConstants instead
    org.apache.jackrabbit.oak.plugins.name.NamespaceConstants
    Use NamespaceConstants instead.
    org.apache.jackrabbit.oak.plugins.nodetype.NodeTypeConstants
    Use NodeTypeConstants instead
    org.apache.jackrabbit.oak.plugins.version.VersionConstants
    Use VersionConstants instead
    org.apache.jackrabbit.oak.spi.commit.ConflictHandler
    Use ThreeWayConflictHandler instead.
    org.apache.jackrabbit.oak.spi.commit.PartialConflictHandler
    Use ThreeWayConflictHandler instead.
    org.apache.jackrabbit.oak.spi.security.authentication.LoginModuleStatsCollector
    Since Oak 1.38.0 in favor of SecurityConfiguration.getMonitors(StatisticsProvider)
    org.apache.lucene.search.FieldCache.ByteParser
    org.apache.lucene.search.FieldCache.ShortParser
  • Deprecated Classes
    Class
    Description
    org.apache.jackrabbit.oak.index.indexer.document.flatfile.FlatFileStoreUtils
    Use IndexStoreUtils instead
    org.apache.jackrabbit.oak.plugins.commit.DefaultConflictHandler
    Use DefaultThreeWayConflictHandler instead.
    org.apache.jackrabbit.oak.plugins.tree.factories.RootFactory
    Please use RootProvider instead
    org.apache.jackrabbit.oak.plugins.tree.factories.TreeFactory
    Please use TreeProvider instead
    org.apache.jackrabbit.oak.security.SecurityProviderImpl
    Replaced by org.apache.jackrabbit.oak.security.internal.SecurityProviderBuilder
    org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalGroupRef
     
    org.apache.jackrabbit.oak.spi.security.authentication.LoginModuleStats
    Since Oak 1.40.0. A full implementation of LoginModuleMonitor and LoginModuleMBean has been added to oak-core.
    org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy
    This implementation class will be hidden in Lucene 5.0. Use Analyzer.GLOBAL_REUSE_STRATEGY instead!
    org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy
    This implementation class will be hidden in Lucene 5.0. Use Analyzer.PER_FIELD_REUSE_STRATEGY instead!
    org.apache.lucene.codecs.lucene3x.Lucene3xCodec
    Only for reading existing 3.x indexes
    org.apache.lucene.codecs.lucene3x.Lucene3xSegmentInfoFormat
    (4.0) This is only used to read indexes created before 4.0.
    org.apache.lucene.codecs.lucene3x.Lucene3xSegmentInfoReader
    Only for reading existing 3.x indexes
    org.apache.lucene.codecs.lucene40.Lucene40Codec
    Only for reading old 4.0 segments
    org.apache.lucene.codecs.lucene40.Lucene40DocValuesFormat
    Only for reading old 4.0 and 4.1 segments
    org.apache.lucene.codecs.lucene40.Lucene40FieldInfosFormat
    Only for reading old 4.0 and 4.1 segments
    org.apache.lucene.codecs.lucene40.Lucene40NormsFormat
    Only for reading old 4.0 and 4.1 segments
    org.apache.lucene.codecs.lucene40.Lucene40PostingsBaseFormat
    Only for reading old 4.0 segments
    org.apache.lucene.codecs.lucene40.Lucene40PostingsFormat
    Only for reading old 4.0 segments
    org.apache.lucene.codecs.lucene40.Lucene40PostingsReader
    Only for reading old 4.0 segments
    org.apache.lucene.codecs.lucene40.Lucene40SegmentInfoFormat
    Only for reading old 4.0-4.5 segments, and supporting IndexWriter.addIndexes
    org.apache.lucene.codecs.lucene40.Lucene40SegmentInfoReader
    Only for reading old 4.0-4.5 segments
    org.apache.lucene.codecs.lucene40.Lucene40SegmentInfoWriter
    org.apache.lucene.codecs.lucene40.Lucene40SkipListReader
    Only for reading old 4.0 segments
    org.apache.lucene.codecs.lucene41.Lucene41Codec
    Only for reading old 4.0 segments
    org.apache.lucene.codecs.lucene42.Lucene42Codec
    Only for reading old 4.2 segments
    org.apache.lucene.codecs.lucene42.Lucene42DocValuesFormat
    Only for reading old 4.2 segments
    org.apache.lucene.codecs.lucene42.Lucene42FieldInfosFormat
    Only for reading old 4.2-4.5 segments
    org.apache.lucene.codecs.lucene45.Lucene45Codec
    Only for reading old 4.3-4.5 segments
    org.apache.lucene.document.ByteDocValuesField
    use NumericDocValuesField instead.
    org.apache.lucene.document.DerefBytesDocValuesField
    Use BinaryDocValuesField instead.
    org.apache.lucene.document.IntDocValuesField
    use NumericDocValuesField instead.
    org.apache.lucene.document.LongDocValuesField
    use NumericDocValuesField instead.
    org.apache.lucene.document.PackedLongDocValuesField
    use NumericDocValuesField instead.
    org.apache.lucene.document.ShortDocValuesField
    use NumericDocValuesField instead.
    org.apache.lucene.document.SortedBytesDocValuesField
    Use SortedDocValuesField instead.
    org.apache.lucene.document.StraightBytesDocValuesField
    Use BinaryDocValuesField instead.
    org.apache.lucene.search.FieldComparator.ByteComparator
    org.apache.lucene.search.FieldComparator.ShortComparator
    org.apache.lucene.util.IndexableBinaryStringTools
    Implement TermToBytesRefAttribute and store bytes directly instead. This class will be removed in Lucene 5.0
  • Deprecated Enums
    Enum
    Description
    org.apache.jackrabbit.oak.plugins.document.bundlor.BundlingConfigInitializer
    use BundlingConfigInitializer instead
    org.apache.lucene.document.Field.Index
    This is here only to ease transition from the pre-4.0 APIs.
    org.apache.lucene.document.Field.TermVector
    This is here only to ease transition from the pre-4.0 APIs.
  • Deprecated Fields
    Field
    Description
    org.apache.jackrabbit.oak.Oak.OakDefaultComponents.INSTANCE
    create a new instance of Oak.OakDefaultComponents instead.
    org.apache.jackrabbit.oak.spi.security.user.UserConstants.NT_REP_MEMBERS
    org.apache.lucene.search.FieldCache.DEFAULT_BYTE_PARSER
    org.apache.lucene.search.FieldCache.DEFAULT_DOUBLE_PARSER
    org.apache.lucene.search.FieldCache.DEFAULT_FLOAT_PARSER
    org.apache.lucene.search.FieldCache.DEFAULT_INT_PARSER
    org.apache.lucene.search.FieldCache.DEFAULT_LONG_PARSER
    org.apache.lucene.search.FieldCache.DEFAULT_SHORT_PARSER
    org.apache.lucene.search.FuzzyQuery.defaultMinSimilarity
    pass integer edit distances instead.
    org.apache.lucene.store.FSDirectory.DEFAULT_READ_CHUNK_SIZE
    This constant is no longer used since Lucene 4.5.
    org.apache.lucene.util.Constants.JRE_IS_MINIMUM_JAVA6
    With Lucene 4.0, we are always on Java 6
  • Deprecated Methods
    Method
    Description
    org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean.checkpoint(long)
    Use CheckpointMBean instead
    org.apache.jackrabbit.oak.api.jmx.IndexStatsMBean.getExecutionTime()
    org.apache.jackrabbit.oak.api.jmx.IndexStatsMBean.resetConsolidatedExecutionStats()
    org.apache.jackrabbit.oak.api.jmx.RepositoryManagementMBean.checkpoint(long)
    Use CheckpointMBean instead
    org.apache.jackrabbit.oak.index.indexer.document.DocumentStoreIndexerBase.buildFlatFileStore()
    replaced by DocumentStoreIndexerBase.buildStore()
    org.apache.jackrabbit.oak.index.indexer.document.flatfile.FlatFileStore.getFlatFileStorePath()
    use FlatFileStore.getStorePath() instead
    org.apache.jackrabbit.oak.jcr.Jcr.with(PartialConflictHandler)
    Use Jcr.with(ThreeWayConflictHandler) instead
    org.apache.jackrabbit.oak.jcr.Jcr.withAsyncIndexing()
    Use Jcr.withAsyncIndexing(String, long) instead
    org.apache.jackrabbit.oak.Oak.with(ConflictHandler)
    Use Oak.with(ThreeWayConflictHandler) instead
    org.apache.jackrabbit.oak.Oak.withAsyncIndexing()
    Use Oak.withAsyncIndexing(String, long) instead
    org.apache.jackrabbit.oak.plugins.commit.ConflictHook.of(ConflictHandler)
    Use ConflictHook.of(ThreeWayConflictHandler) instead.
    org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBuilder.getLeaseCheck()
    This method does not distinguish between LeaseCheckMode.LENIENT and LeaseCheckMode.STRICT and returns true for both modes. Use DocumentNodeStoreBuilder.getLeaseCheckMode() instead.
    org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBuilder.getNodeCachePredicate()
    Use DocumentNodeStoreBuilder.getNodeCachePathPredicate() instead.
    org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBuilder.setLeaseCheck(boolean)
    use DocumentNodeStoreBuilder.setLeaseCheckMode(LeaseCheckMode) instead.
    org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBuilder.setNodeCachePredicate(Predicate<String>)
    Use DocumentNodeStoreBuilder.setNodeCachePathPredicate(Predicate) instead.
    org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreMBean.getRevisionComparatorState()
    org.apache.jackrabbit.oak.plugins.document.MissingLastRevSeeker.isRecoveryNeeded(ClusterNodeInfoDocument)
    use ClusterNodeInfoDocument.isRecoveryNeeded(long) instead.
    org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager.generateUUID()
    Use UUIDUtils.generateUUID()
    org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager.generateUUID(String)
    Use UUIDUtils.generateUUID(String)
    org.apache.jackrabbit.oak.plugins.identifier.IdentifierManager.isValidUUID(String)
    Use UUIDUtils.isValidUUID(String) (String)}
    org.apache.jackrabbit.oak.plugins.tree.factories.RootFactory.createSystemRoot(NodeStore, CommitHook, String, SecurityProvider, QueryEngineSettings, QueryIndexProvider)
    with Oak 1.7.2 due to the usage of deprecated QueryEngineSettings
    org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStore.deleteChunks(List<String>, long)
    org.apache.jackrabbit.oak.spi.nodetype.EffectiveNodeTypeProvider.isNodeType(String, Iterable<String>, String)
    use EffectiveNodeTypeProvider.isNodeType(String, Supplier, String) instead
    org.apache.jackrabbit.oak.spi.nodetype.EffectiveNodeTypeProvider.isNodeType(String, Iterator<String>, String)
    use EffectiveNodeTypeProvider.isNodeType(String, Iterable, String) instead
    org.apache.jackrabbit.oak.spi.query.Filter.getFulltextConditions()
    org.apache.jackrabbit.oak.spi.security.authentication.external.basic.DefaultSyncContext.joinPaths(String...)
    Since Oak 1.3.10. Please use PathUtils.concatRelativePaths(String...) instead.
    org.apache.lucene.document.Field.translateFieldType(Field.Store, Field.Index, Field.TermVector)
    This is here only to ease transition from the pre-4.0 APIs.
    org.apache.lucene.index.AtomicReader.hasNorms(String)
    (4.0) use AtomicReader.getFieldInfos() and check FieldInfo.hasNorms() for the field instead.
    org.apache.lucene.index.Fields.getUniqueTermCount()
    iterate fields and add their size() instead. this method is only provided as a transition mechanism to access this statistic for 3.x indexes, which do not have this statistic per-field.
    org.apache.lucene.index.IndexReader.open(IndexCommit)
    Use DirectoryReader.open(IndexCommit)
    org.apache.lucene.index.IndexReader.open(IndexCommit, int)
    Use DirectoryReader.open(IndexCommit,int)
    org.apache.lucene.index.IndexReader.open(IndexWriter, boolean)
    Use DirectoryReader.open(IndexWriter,boolean)
    org.apache.lucene.index.IndexReader.open(Directory)
    Use DirectoryReader.open(Directory)
    org.apache.lucene.index.IndexReader.open(Directory, int)
    Use DirectoryReader.open(Directory,int)
    org.apache.lucene.index.SegmentInfo.attributes()
    no longer supported
    org.apache.lucene.index.SegmentInfo.getAttribute(String)
    no longer supported
    org.apache.lucene.index.SegmentInfo.putAttribute(String, String)
    no longer supported
    org.apache.lucene.index.SegmentInfos.write3xInfo(Directory, SegmentInfo, IOContext)
    org.apache.lucene.search.FieldCache.getBytes(AtomicReader, String, boolean)
    (4.4) Index as a numeric field using IntField and then use FieldCache.getInts(AtomicReader, String, boolean) instead.
    org.apache.lucene.search.FieldCache.getBytes(AtomicReader, String, FieldCache.ByteParser, boolean)
    (4.4) Index as a numeric field using IntField and then use FieldCache.getInts(AtomicReader, String, boolean) instead.
    org.apache.lucene.search.FieldCache.getShorts(AtomicReader, String, boolean)
    (4.4) Index as a numeric field using IntField and then use FieldCache.getInts(AtomicReader, String, boolean) instead.
    org.apache.lucene.search.FieldCache.getShorts(AtomicReader, String, FieldCache.ShortParser, boolean)
    (4.4) Index as a numeric field using IntField and then use FieldCache.getInts(AtomicReader, String, boolean) instead.
    org.apache.lucene.search.FieldCacheRangeFilter.newByteRange(String, Byte, Byte, boolean, boolean)
    org.apache.lucene.search.FieldCacheRangeFilter.newByteRange(String, FieldCache.ByteParser, Byte, Byte, boolean, boolean)
    org.apache.lucene.search.FieldCacheRangeFilter.newShortRange(String, Short, Short, boolean, boolean)
    org.apache.lucene.search.FieldCacheRangeFilter.newShortRange(String, FieldCache.ShortParser, Short, Short, boolean, boolean)
    org.apache.lucene.search.FuzzyQuery.floatToEdits(float, int)
    pass integer edit distances instead.
    org.apache.lucene.search.IndexSearcher.document(int, Set<String>)
    Use IndexSearcher.doc(int, Set) instead.
    org.apache.lucene.store.Directory.IndexInputSlicer.openFullSlice()
    Only for reading CFS files from 3.x indexes.
    org.apache.lucene.store.FSDirectory.getReadChunkSize()
    This is no longer used since Lucene 4.5.
    org.apache.lucene.store.FSDirectory.setReadChunkSize(int)
    This is no longer used since Lucene 4.5.
    org.apache.lucene.store.IndexOutput.seek(long)
    (4.1) This method will be removed in Lucene 5.0
    org.apache.lucene.util.BytesRef.getUTF8SortedAsUTF16Comparator()
    This comparator is only a transition mechanism
    org.apache.lucene.util.CharsRef.getUTF16SortedAsUTF8Comparator()
    This comparator is only a transition mechanism
  • Deprecated Constructors
    Constructor
    Description
    org.apache.jackrabbit.oak.plugins.commit.ConflictValidator(Tree)
    org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy()
    Don't create instances of this class, use Analyzer.GLOBAL_REUSE_STRATEGY
    org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy()
    Don't create instances of this class, use Analyzer.PER_FIELD_REUSE_STRATEGY
    org.apache.lucene.analysis.AnalyzerWrapper()
    Use AnalyzerWrapper(Analyzer.ReuseStrategy) and specify a valid Analyzer.ReuseStrategy, probably retrieved from the wrapped analyzer using Analyzer.getReuseStrategy().
    org.apache.lucene.document.Field(String, byte[])
    Use StoredField instead.
    org.apache.lucene.document.Field(String, byte[], int, int)
    Use StoredField instead.
    org.apache.lucene.document.Field(String, Reader)
    Use TextField instead.
    org.apache.lucene.document.Field(String, Reader, Field.TermVector)
    Use TextField instead.
    org.apache.lucene.document.Field(String, String, Field.Store, Field.Index)
    Use StringField, TextField instead.
    org.apache.lucene.document.Field(String, String, Field.Store, Field.Index, Field.TermVector)
    Use StringField, TextField instead.
    org.apache.lucene.document.Field(String, TokenStream)
    Use TextField instead
    org.apache.lucene.document.Field(String, TokenStream, Field.TermVector)
    Use TextField instead
  • Deprecated Enum Constants
    Enum Constant
    Description
    org.apache.jackrabbit.oak.plugins.document.NodeDocument.SplitDocType.DEFAULT_NO_CHILD
    org.apache.jackrabbit.oak.plugins.document.NodeDocument.SplitDocType.PROP_COMMIT_ONLY
    org.apache.lucene.search.SortField.Type.BYTE
    org.apache.lucene.search.SortField.Type.SHORT
    org.apache.lucene.util.Version.LUCENE_30
    (4.0) Use latest
    org.apache.lucene.util.Version.LUCENE_31
    (4.0) Use latest
    org.apache.lucene.util.Version.LUCENE_32
    (4.0) Use latest
    org.apache.lucene.util.Version.LUCENE_33
    (4.0) Use latest
    org.apache.lucene.util.Version.LUCENE_34
    (4.0) Use latest
    org.apache.lucene.util.Version.LUCENE_35
    (4.0) Use latest
    org.apache.lucene.util.Version.LUCENE_36
    (4.0) Use latest
    org.apache.lucene.util.Version.LUCENE_40
    (4.1) Use latest
    org.apache.lucene.util.Version.LUCENE_41
    (4.2) Use latest
    org.apache.lucene.util.Version.LUCENE_42
    (4.3) Use latest
    org.apache.lucene.util.Version.LUCENE_43
    (4.4) Use latest
    org.apache.lucene.util.Version.LUCENE_44
    (4.5) Use latest
    org.apache.lucene.util.Version.LUCENE_45
    (4.6) Use latest
    org.apache.lucene.util.Version.LUCENE_46
    (4.7) Use latest
    org.apache.lucene.util.Version.LUCENE_CURRENT
    Use an actual version instead.

Copyright © 2012–2025 The Apache Software Foundation. All rights reserved.