BitShuffle#shuffle does not allow to pass arbitrary type sizes (even if the underlying library does support that)

Aberta
#298 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
java
Domínio
backend

Direção de pesquisa

Start by locating the Java BitShuffle API and how it calls the external BitShuffle library; the issue does not name files or tests. Check how the existing methods handle type sizes, then identify tests covering shuffle and unshuffle. Done means the requested ByteBuffer overloads accept arbitrary type sizes and are verified for both operations.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

help wanted

For data encoding, sometimes integers with intermediate sizes (e.g. of 3 or 5 bytes) are used (e.g. to reduce bandwith). These arrays currently cannot be passed to the external BitShuffle library with snappy-java, because in snappy-java the typesize is predefined as constant. Since the external library actually supports arbitrary type sizes this is an unnecessary restriction.

How to fix:

Would be great to have the following methods:

public static int shuffle(ByteBuffer input, int typeSize, ByteBuffer shuffled) throws IOException {
    ...
}

public static int unshuffle(ByteBuffer shuffled, int typeSize, ByteBuffer output) throws IOException {
    ...
}
Linguagem predominante
Java
Estrelas
1.1k
Forks
261
Merge médio
2min
PRs com merge (30d)
2

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de xerial/snappy-java

Todas as issues de xerial/snappy-java

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.