All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rapid7.armor.columnfile.ColumnFileSection Maven / Gradle / Ivy

The newest version!
package com.rapid7.armor.columnfile;

import java.util.Arrays;

public enum ColumnFileSection {
  HEADER(-1),
  TOC(-1), // only in V2
  METADATA(1),
  ENTITY_DICTIONARY(2),
  VALUE_DICTIONARY(3),
  ENTITY_INDEX(4),
  ROWGROUP(5);

  private final int sectionID;

  ColumnFileSection(int i)
  {
    this.sectionID = i;
  }

  public static ColumnFileSection fromID(int sectionType)
  {
    return Arrays.stream(values()).filter(x -> x.sectionID == sectionType).findFirst().orElse(null);
  }

  public int getSectionID()
  {
    return sectionID;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy