forked from deephaven/deephaven-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28b25d1
commit 8876208
Showing
57 changed files
with
913 additions
and
734 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending | ||
// | ||
package io.deephaven.extensions.barrage; | ||
|
||
import io.deephaven.util.QueryConstants; | ||
|
||
public interface BarrageOptions { | ||
/** | ||
* @return whether we encode the validity buffer to express null values or {@link QueryConstants QueryConstants'} | ||
* NULL values. | ||
*/ | ||
boolean useDeephavenNulls(); | ||
|
||
/** | ||
* @return the conversion mode to use for object columns | ||
*/ | ||
ColumnConversionMode columnConversionMode(); | ||
|
||
/** | ||
* @return the ideal number of records to send per record batch | ||
*/ | ||
int batchSize(); | ||
|
||
/** | ||
* @return the maximum number of bytes that should be sent in a single message. | ||
*/ | ||
int maxMessageSize(); | ||
|
||
/** | ||
* Some Flight clients cannot handle modifications that have irregular column counts. These clients request that the | ||
* server wrap all columns in a list to enable each column having a variable length. | ||
* | ||
* @return true if the columns should be wrapped in a list | ||
*/ | ||
default boolean columnsAsList() { | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageTypeInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// | ||
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending | ||
// | ||
package io.deephaven.extensions.barrage; | ||
|
||
import org.apache.arrow.flatbuf.Field; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
/** | ||
* Describes type info used by factory implementations when creating a ChunkReader. | ||
*/ | ||
public class BarrageTypeInfo { | ||
/** | ||
* Factory method to create a TypeInfo instance. | ||
* | ||
* @param type the Java type to be read into the chunk | ||
* @param componentType the Java type of nested components | ||
* @param arrowField the Arrow type to be read into the chunk | ||
* @return a TypeInfo instance | ||
*/ | ||
public static BarrageTypeInfo make( | ||
@NotNull final Class<?> type, | ||
@Nullable final Class<?> componentType, | ||
@NotNull final Field arrowField) { | ||
return new BarrageTypeInfo(type, componentType, arrowField); | ||
} | ||
|
||
private final Class<?> type; | ||
@Nullable | ||
private final Class<?> componentType; | ||
private final Field arrowField; | ||
|
||
public BarrageTypeInfo( | ||
@NotNull final Class<?> type, | ||
@Nullable final Class<?> componentType, | ||
@NotNull final Field arrowField) { | ||
this.type = type; | ||
this.componentType = componentType; | ||
this.arrowField = arrowField; | ||
} | ||
|
||
public Class<?> type() { | ||
return type; | ||
} | ||
|
||
@Nullable | ||
public Class<?> componentType() { | ||
return componentType; | ||
} | ||
|
||
public Field arrowField() { | ||
return arrowField; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.