Interface Feature
- All Known Implementing Classes:
FusedADC
,InlineVectors
,LVQ
public interface Feature
A feature of an on-disk graph index. Information to use a feature is stored in the header on-disk.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
id()
int
static EnumMap
<FeatureId, Feature.State> singleState
(FeatureId id, Feature.State state) static EnumMap
<FeatureId, IntFunction<Feature.State>> singleStateFactory
(FeatureId id, IntFunction<Feature.State> stateFactory) void
writeHeader
(DataOutput out) void
writeInline
(DataOutput out, Feature.State state)
-
Method Details
-
id
FeatureId id() -
headerSize
int headerSize() -
inlineSize
int inlineSize() -
writeHeader
- Throws:
IOException
-
writeInline
- Throws:
IOException
-
singleStateFactory
static EnumMap<FeatureId,IntFunction<Feature.State>> singleStateFactory(FeatureId id, IntFunction<Feature.State> stateFactory) -
singleState
-