Package org.eclipse.mat.parser.index
Class IndexWriter
java.lang.Object
org.eclipse.mat.parser.index.IndexWriter
Base implementations to write index files.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUsed to collect the objects by address.static classA writer for inbound references.static classUsed to write out a sorted array of ints.static classBuild index for mapping int to int array.static classWrite out a mapping of ints to int arrays.static classA collector of ArrayIntCompressed.static classCollect a mapping of int to int.static classA helper to write out an index to a file.static interfaceUsed to write out a key for an index.static classstatic classA collector for a int to long mapping.static classBuild a int to long index.static classA helper class to output a list of longs.static classStore sizes of objects by compressing the size to a 32-bit int. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNumber of entries in a page of intsstatic final intNumber of entries in a page of longs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long[]copyOf(long[] original, int newLength) static intmostSignificantBit(int x) static intmostSignificantBit(long x)
-
Field Details
-
PAGE_SIZE_INT
public static final int PAGE_SIZE_INTNumber of entries in a page of ints- See Also:
-
PAGE_SIZE_LONG
public static final int PAGE_SIZE_LONGNumber of entries in a page of longs- See Also:
-
-
Constructor Details
-
IndexWriter
public IndexWriter()
-
-
Method Details
-
copyOf
public static long[] copyOf(long[] original, int newLength) -
mostSignificantBit
public static int mostSignificantBit(int x) -
mostSignificantBit
public static int mostSignificantBit(long x)
-